Contents
- 1. Overview: where link-level models sit
- 2. §7.7.1 CDL: the four-step procedure
- 3. Worked example: generating a CDL channel in Sionna
- 4. Worked configuration: 64TR base station × 4-element UE
- CDL: 64TR × 4UE
- TDL: same 64 × 4 ports + Kronecker correlation matrices
- 5. I/O format cheat sheet
- CDL constructor inputs
- TDL constructor inputs
- __call__ inputs and outputs (identical for CDL/TDL)
- 6. Coupling with the 5G NR OFDM modulation chain
- The mechanism: one channel snapshot per OFDM symbol
- Sampling-rate correspondence cheat sheet
- Frequency-domain chain (standard link-level approach): QPSK → OFDM → CDL → ZF → BER
- Time-domain chain (waveform level): OFDMModulator → TimeChannel → OFDMDemodulator
- Shape flow cheat sheet (demo grid: N=64N=64N=64, 14 symbols)
- Practical advice
- 7. Sionna CDL class walkthrough
- Class positioning and main flow
- _load_parameters: table loading and the LOS double-row convention
- _generate_rays: vectorized Eq. 7.7-0a
- _random_coupling: the shuffling trick of Step 2
- _create_topology / _create_rays: faking a single link
- Step 4: reusing ChannelCoefficientsGenerator
- 8. §7.7.2 TDL and Sionna’s SoS implementation
- Standard definition
- The SoS idea
- TDL class walkthrough
- 9. §7.7.3 Scaling of delays
- 10. §7.7.4 Spatial filter: generating TDL from CDL
- 11. §7.7.5 MIMO extensions
- 7.7.5.1 CDL route: angle scaling and translation
- 7.7.5.2 TDL route: applying a correlation matrix
- 12. §7.7.6 K-factor for LOS models
- 13. Consistency check: Sionna vs Clause 7.7
- 14. Cheat sheet
- 15. References
38.901 §7.7 Link-Level Channel Models (CDL/TDL): Generation Methods and Sionna Source Code Explained
This post follows 3GPP TR 38.901 g10 draft, Clause 7.7 “Channel models
for link-level evaluations”, introducing the CDL (Clustered Delay
Line) and TDL (Tapped Delay Line) models for link-level simulation,
and mapping them to Sionna 1.x
(sionna/phy/channel/tr38901/cdl.py, tdl.py).
Version note: Clause 7.7 of the g10 draft has six sub-clauses — 7.7.1 CDL, 7.7.2 TDL, 7.7.3 delay scaling, 7.7.4 spatial filter for generating TDL, 7.7.5 MIMO extensions (7.7.5.1 angle scaling / 7.7.5.2 correlation matrix), 7.7.6 K-factor for LOS models. The equations in 7.7 (7.7-0a, 7.7-0b, 7.7-1~7.7-6, etc.) are embedded OLE equation objects that plain text extraction cannot recover; this post presents them in LaTeX form reconstructed from the public content of the standard and from the Sionna implementation. The per-cluster parameters of the CDL tables (cASD/cASA/cZSD/cZSA/XPR) are single values per model in g10 (e.g. CDL-A: 5/11/3/3/10), not per-cluster arrays. Companion post: 38.901 §7.5 twelve-step channel generation covers the framework, call chain, and the full twelve-step generation procedure of system-level models.
1. Overview: where link-level models sit
System-level models (§7.5/§7.6) draw LOS state, path loss, LSPs, cluster delays, powers and angles per link for thousands of links — many random processes, heavy computation, and you need many realizations to see the instantaneous statistics of a single link. Link-level models take the opposite route: the PDP and angular distribution of one typical link are frozen into tables, and simulation only generates the time-correlated small-scale fading; no large-scale parameters are sampled. That is CDL/TDL:
┌─ Steps 1~4: rays ──┐
CDL tables │ │──► coefficient gen (reuses §7.5 Steps 10/11) ──► SISO/MIMO CIR
(§7.7.1) └────────────────────┘
│ ▲
│ §7.7.3 delay scaling │ §7.7.5.1 angle scaling (Eq. 7.7-5)
▼ │
CDL with any RMS delay spread ────────────┘
│
│ §7.7.4 spatial filtering (isotropic → beamforming)
▼
TDL tables (§7.7.2): same PDP as CDL, angles removed ──► SoS/Jakes time gen ──► §7.7.5.2 corr. matrix ──► MIMO-TDL
│
│ §7.7.6 K-factor adjustment (D/E models)
▼
LOS model with any K
Three key correspondences:
- The TDL tables are exactly the CDL tables under the isotropic-antenna assumption — Table 7.7.2-1 (TDL-A) rows match Table 7.7.1-1 (CDL-A) row by row (0/-13.4, 0.3819/0, 0.4025/-2.2, …); the AOD/AOA/ ZOD/ZOA columns are dropped and a “Fading distribution” column is added.
- CDL coefficient generation directly reuses §7.5 Steps 10/11 (as
the standard’s 7.7.1 Step 4 states), so in Sionna the
CDLclass and system-level classes (UMa, …) share the sameChannelCoefficientsGenerator. - Sionna module split:
cdl.py(CDL class: Steps 1~4 prep + reused coefficient generator),tdl.py(TDL class: standalone SoS time generation),channel_coefficients.py(Steps 10/11), andmodels/CDL-*.json/models/TDL-*.json(table data).
2. §7.7.1 CDL: the four-step procedure
Per the standard (g10 L3055-3072): CDL applies to 0.5–100 GHz with up to 2 GHz bandwidth; A/B/C are NLOS profiles, D/E are LOS; parameters are in Tables 7.7.1-1~5, 24 clusters per model (the first cluster of D/E is the specular component).
What the tables contain: cluster structure and ray powers
Each model ships one table with two parts:
- 24-row cluster table — six columns per cluster: normalized delay, power (dB), AOD, AOA, ZOD, ZOA;
- 5 per-cluster parameters (one value for the whole model):
| Model | cASD | cASA | cZSD | cZSA | XPR |
|---|---|---|---|---|---|
| CDL-A | 5° | 11° | 3° | 3° | 10 dB |
| CDL-B | 10° | 22° | 3° | 7° | 8 dB |
| CDL-C | 2° | 15° | 3° | 7° | 7 dB |
(D/E are LOS tables: the first cluster is marked Specular(LOS path) and comes with a K-factor.)
The 20 rays of a cluster carry equal power: — CDL
does not use the SCM sub-cluster power ratios of §7.5; rays
within a cluster differ only in angles and polarization. Sionna agrees:
_create_rays()
simply expands the per-cluster powers over the ray dimension.
Four steps:
Step 1: per-ray angles (Eq. 7.7-0a)
For each cluster , azimuth arrival angles are
where is the tabulated cluster AOA, the cluster-wise azimuth spread (a single value, 11° for CDL-A), and the 20 fixed ray-offset basis values of Table 7.5-3:
AOD (), ZOA (), ZOD () follow the same pattern. Step 1 contains no random numbers at all — the 20 ray angles are a deterministic affine map of the table values. All CDL randomness comes from Step 2 coupling and Step 10 phases.
Sionna counterpart:
cdl.py→_generate_rays()(the 20 offsets hard-coded asbasis_vector); table values are loaded by_load_parameters(). See the “_generate_rays: vectorized Eq. 7.7-0a” section below.
Step 2: random coupling within a cluster
Randomly pair AOD with AOA, ZOD with ZOA, and AOD with ZOD within each cluster — i.e. shuffle the four angle sequences independently. This breaks the deterministic “large offset ↔ large offset” pairing, exactly like SCM Step 8.
Sionna counterpart:
cdl.py→_random_coupling()→_shuffle_angles()(argsort shuffling). See the “_random_coupling: the shuffling trick of Step 2” section below.
Step 3: XPR (Eq. 7.7-0b)
Per-ray cross-polarization power ratio
with the tabulated per-cluster XPR (10 dB for CDL-A) and drawn independently per ray. Since , in the dB domain
i.e. each ray’s XPR is a log-normal jitter around the table value with a standard deviation of ≈0.38 dB (the g10 text gives only the formula, not this equivalent figure).
Sionna counterpart:
cdl.py→_load_parameters()reads only the constant , broadcast as-is by_create_rays(); the random term is not implemented (see consistency table row 3).
Step 4: coefficient generation
“Follow the same procedure as in Steps 10 and 11 in Clause 7.5, with the exception that all clusters are treated as weaker cluster, i.e. no further sub-clusters in delay should be generated.”
Random initial phases (Step 10) → per-ray/per-element coefficients summed per cluster (Step 11), but sub-cluster splitting is disabled — the delay spread of strong clusters is already represented by extra table clusters (e.g. CDL-A clusters 1/2/3 at delays 0/0.3819/0.4025 are sub-peaks of one physical cluster).
Sionna counterpart:
channel_coefficients.py→_step_10()+_step_11();subclustering=Falseis passed when constructing the generator incdl.py’s__init__(L262-269). See the “Step 4: reusingChannelCoefficientsGenerator” section below.
3. Worked example: generating a CDL channel in Sionna
Minimal loop — configure arrays → instantiate CDL → call it to get
time-varying path coefficients.
API note: in Sionna v2.x,
AntennaArraytakes the array parameters directly (num_rows / num_cols / polarization / polarization_type / antenna_pattern / carrier_frequency). The old docstring styleAntennaArray(antenna=Antenna(...))is obsolete and raises aTypeErrorif copied verbatim.polarization_type="cross"means ±45° cross-polarization;"VH"means vertical + horizontal.
from sionna.phy.channel.tr38901 import AntennaArray, CDL
# ---------- BS array ----------
# 4x4 dual-pol (±45°) UPA → port count = rows x cols x 2 = 32
bs_array = AntennaArray(
num_rows=4, num_cols=4, # 4 vertical rows x 4 horizontal cols;
# sets the aperture: larger aperture →
# higher angular resolution, narrower beam
polarization="dual", # orthogonal pol pair per position (ports x2)
polarization_type="cross", # ±45° slant pol (slant = −π/4, §7.3 pol angle);
# "VH" = vertical + horizontal instead
antenna_pattern="38.901", # BS element pattern per Table 7.3-1
# (65° horizontal 3-dB beam, 8 dBi peak);
# Step 11 multiplies it per ray angle
carrier_frequency=3.5e9, # carrier frequency → wavelength λ = c/f
# ≈ 8.57 cm; spacing (default 0.5λ) and
# Doppler f_D = v/λ both derive from it
)
# ---------- UT array: single-pol omni element (SISO rx side) ----------
ut_array = AntennaArray(
num_rows=1, num_cols=1,
polarization="single", # single pol → ports = rows x cols x 1
polarization_type="V", # vertical polarization (slant = 0)
antenna_pattern="omni", # isotropic: unit gain, no spatial selectivity
carrier_frequency=3.5e9,
)
# ---------- CDL channel ----------
cdl = CDL(
model="A", # "A".."E": A/B/C NLoS power profiles;
# D/E LOS (first cluster specular,
# table-defined K-factor)
delay_spread=300e-9, # target RMS delay spread [s] (§7.7.3):
# Eq. (7.7-1) rescales table delays only,
# never powers or angles
carrier_frequency=3.5e9,
ut_array=ut_array, # mobile-end array — source of Doppler
bs_array=bs_array, # base-station array
direction="downlink", # moving end at rx; "uplink" swaps
# the table aod/aoa and zod/zoa
)
# 64 independent realizations x 100 time samples (1 MHz sampling)
a, tau = cdl(batch_size=64, num_time_steps=100, sampling_frequency=1e6)
# a: [64, 1, 4, 1, 32, 23, 100] complex coefficients a_p(t);
# dims = [batch, num_rx=1, Nr, num_tx=1, Nt, M, T]; num_rx/num_tx=1
# are single-link placeholders; M=23 clusters (20 rays each already
# summed in Step 4)
# tau: [64, 1, 1, 23] cluster delays [s], ascending table order,
# shared across the batch
print(a.shape) # [64, 1, 4, 1, 32, 23, 100] complex path coefficients
print(tau.shape) # [64, 1, 1, 23] path delays [s]
Notes:
- num_paths = number of table clusters: Step 4 sums the 20 rays per
cluster before output, so the ray dimension is folded into the cluster
coefficients — the key output difference from system-level models
(which further split clusters into sub-clusters). The actual value
follows the bundled JSON tables: Clause 7.7.1 defines 24 clusters per
model, but the local Sionna v2.0.1
CDL-A.jsonhas 23 rows, hence 23 paths in the measured output. - Total output power is NOT 1: the cluster power table itself is
normalized (), but the coefficients are multiplied
per antenna pair by the element pattern and polarization-projection
gains (
_step_11_field_matrix), so deviates from 1 depending on the array configuration — measured: ≈ 2.07 for the example above (38.901 BS pattern), ≈ 0.55 with"omni"on the BS. To verify the table-power scaling, compare the normalized PDP shape against the table, not the absolute power:
# Average |a|^2 over all antenna-pair dims (1~4: num_rx/Nr/num_tx/Nt)
# and the time dim (6) → per-realization mean power per tap
pdp = (a.abs() ** 2).mean(dim=(1, 2, 3, 4, 6)) # [64, num_paths]
pdp = pdp / pdp.sum(-1, keepdim=True) # normalize before comparing
# against the table powers
- Typical delay spreads (Table 7.7.3-1): 10 / 30 / 100 / 300 /
1000 ns;
delay_spreadonly rescales normalized delays via Eq. (7.7-1) and never touches angles or powers. - Doppler comes from the UT velocity: if
ut_velocityis not given, speeds are sampled uniformly per realization frommin_speed/max_speed; keep the defaults for a static channel (ais then constant over time). - Single-link only: one TX/RX pair (multi-antenna at both ends); for multi-user scenarios instantiate per link or use the system-level models.
- A/B/C have no LoS; for D/E the first cluster is the specular
component and its K-factor follows the table (
_load_parametersstores it as_k_factor).
4. Worked configuration: 64TR base station × 4-element UE
A typical large-scale-MIMO link-level setup: BS with 64 TRX ports — 8 columns horizontally × 4 rows vertically, each position holding a ±45° cross-polarized element pair, i.e. ports; UE with 4 elements — four vertically arranged single-polarized (vertical) omni elements. Complete generation code for both the CDL and TDL paths follows (all measured on Sionna v2.0.1).
CDL: 64TR × 4UE
import torch
from sionna.phy.channel.tr38901 import AntennaArray, CDL
fc = 3.5e9 # carrier 3.5 GHz → wavelength λ = c/f ≈ 8.57 cm
# ---------- BS: 64TR ----------
# Geometry: 4 vertical rows x 8 horizontal cols = 32 positions, each
# holding a ±45° cross-pol element pair → 32 x 2 = 64 ports, the
# typical 64TR massive-MIMO AAU
bs_array = AntennaArray(
num_rows=4, num_cols=8, # 4 rows x 8 cols, default 0.5λ
# spacing (≈4.3 cm): 8 cols give
# azimuth resolution, 4 rows give
# elevation/downtilt resolution
polarization="dual", # 2 pols per position → 4x8x2 = 64 ports
polarization_type="cross", # ±45° slant pol (slant = −π/4),
# the standard BS form; the pol
# difference enters via the Step-11
# ψ projection
antenna_pattern="38.901", # Table 7.3-1 BS element: 65°
# horizontal beam, 8 dBi peak —
# applied per-ray at the angles of
# arrival (spatial selectivity)
carrier_frequency=fc,
)
bs_array.num_ant # 64 — the 64TR port count
# ---------- UE: vertical 4-element single-pol linear array ----------
ue_array = AntennaArray(
num_rows=4, num_cols=1, # 4 elements stacked vertically
# (rows are the inner index — see
# the port-numbering note below)
polarization="single", # single pol → 4x1x1 = 4 ports
polarization_type="V", # vertical polarization (slant = 0)
antenna_pattern="omni", # isotropic: no pattern selectivity
# on the UE side; port correlation
# comes only from array phase
# differences and pol projection
carrier_frequency=fc,
)
ue_array.num_ant # 4
# ---------- CDL-D: LOS profile ----------
cdl = CDL(
model="D", # D/E are LOS: cluster 1 is the
# specular component, the other 22
# are scattered; K-factor from table
delay_spread=300e-9, # RMS delay spread 300 ns (Table
# 7.7.3-1 "long" tier); Eq. 7.7-1
# rescales delays only
carrier_frequency=fc,
ut_array=ue_array, # moving end at the UE
bs_array=bs_array,
direction="downlink", # BS transmits, UE receives
min_speed=0.0, max_speed=3.0, # per-realization speed ~ U[0,3] m/s
# → Doppler f_D = v/λ ≈ 0–35 Hz,
# setting how fast a decorrelates
)
# 64 realizations x 100 time samples; 1 MHz → 100 µs observation window
a, tau = cdl(batch_size=64, num_time_steps=100, sampling_frequency=1e6)
# a: [64, 1, 4, 1, 64, 23, 100] complex coefficients — every antenna
# pair (4 UE x 64 BS ports), 23 cluster taps, 100 time instants
# tau: [64, 1, 1, 23] cluster delays [s] (CDL-D specular tap at delay 0)
print(a.shape) # [64, 1, 4, 1, 64, 23, 100] complex64
print(tau.shape) # [64, 1, 1, 23] float32, seconds
The BS array geometry, element pattern and ±45° polarization projection are all handled automatically by Step 11. Between the 4 UE ports the omni pattern contributes no spatial selectivity, so the correlation structure comes purely from angles and polarization projection — this is exactly where CDL beats TDL (angular information is native to the tables).
TDL: same 64 × 4 ports + Kronecker correlation matrices
TDL accepts no array objects — only port counts and optional
correlation matrices (§7.7.5.2). For the 64TR side we use the
Kronecker structure from TS36.101/TS38.141-1,
(polarization × horizontal × vertical). The catch is that the
construction order must match Sionna’s port numbering: PanelArray
ports are pol-major — the first 32 are the +45° polarization, the last
32 the −45°, and within each group the index is
(row inner, column outer), so the
innermost Kronecker factor corresponds to the rows:
import numpy as np
import torch
from sionna.phy.channel.tr38901 import TDL
def exp_corr(n, rho):
"""TS36.101 exponential correlation matrix R[i,j] = rho^|i-j|
(n ports, adjacent-element correlation rho).
Physical meaning: rho measures how concentrated the angular spectrum
is — the smaller the angular spread, the more similar the fades at
adjacent elements, and the closer rho to 1; rho = 0 degenerates to
independent (uncorrelated) ports. Correlation decays exponentially
with element separation, matching a uniform angular spectrum.
"""
i = np.arange(n)
return rho ** np.abs(i[:, None] - i[None, :])
# ---------- BS-side 64x64 transmit correlation ----------
# Kronecker structure R_tx = Γ ⊗ R_h ⊗ R_v (TS38.141-1 Annex G.2.3.2.1):
# polarization, horizontal and vertical correlations multiplied per dim
R_v = exp_corr(4, 0.8) # 4 vertical rows: moderately concentrated
# vertical spectrum → rho = 0.8
R_h = exp_corr(8, 0.9) # 8 horizontal cols: concentrated azimuth
# arrivals (e.g. street canyon) → rho = 0.9
G = np.array([[1.0, 0.5], # ±45° polarization correlation: diagonal =
[0.5, 1.0]]) # co-pol (always 1); off-diagonal 0.5 =
# cross-pol correlation coefficient (scenario/
# XPR dependent; calibrate against TS36.101)
# The kron nesting order MUST match Sionna's port numbering: PanelArray
# is pol-major — first 32 ports in polarization group 1, last 32 in
# group 2, and within a group index = row + col×4 (row varies fastest).
# kron(R_h, R_v) indexes exactly as col×4 + row; the outer kron(G, ·)
# then uses a 32-port polarization stride — bit-for-bit consistent
R_tx = np.kron(G, np.kron(R_h, R_v)) # 64x64
# ---------- UE-side 4x4 receive correlation ----------
R_rx = exp_corr(4, 0.7) # UE vertical 4-element line array, fairly
# concentrated vertical spectrum → rho = 0.7
# ---------- TDL-A: pure PDP + correlation, no angles ----------
# TDL has no array geometry/pattern: spatial behavior is injected only
# through correlation matrices (§7.7.5.2). Internally each tap is
# filtered as H ← R_rx^(1/2) · H · R_tx^(1/2)H (Cholesky square roots)
tdl = TDL(
model="A", # NLoS profile: same PDP as CDL-A,
# angles removed
delay_spread=300e-9, # Eq. (7.7-1) delay scaling, as CDL
carrier_frequency=fc,
num_rx_ant=4, num_tx_ant=64, # port counts (UE 4 / BS 64TR),
# NOT array objects
rx_corr_mat=torch.tensor(R_rx, dtype=torch.complex64),
tx_corr_mat=torch.tensor(R_tx, dtype=torch.complex64),
# mutually exclusive with
# spatial_corr_mat; passing them
# separately is cheaper than one
# big kron matrix
min_speed=0.0, max_speed=3.0, # per-batch speed ~ U[0,3] m/s → f_D = v/λ
)
a_tdl, tau_tdl = tdl(batch_size=64, num_time_steps=100, sampling_frequency=1e6)
# Output shapes identical to CDL — the same OFDMChannel accepts both:
# a: [64, 1, 4, 1, 64, 23, 100]; tau: [64, 1, 1, 23]
print(a_tdl.shape) # [64, 1, 4, 1, 64, 23, 100] complex64
print(tau_tdl.shape) # [64, 1, 1, 23]
Pitfall: TDL-D/E + correlation matrices inflate the specular power. The specular initial phase
phi_0is generated asrand((batch,1,1,1,1,1,1))(tdl.pyL413-418) — all antenna pairs share the same phase, i.e. the specular component is a rank-1 all-ones structure. The correlation filtering preserves power for the scattered component (measured: TDL-A + the Kronecker matrices above → total power ≈ 1.00), but for the coherent specular tap each pair’s power is scaled by — measured TDL-D total power with the same matrices: 31.5 (≈30×). MATLAB’snrTDLChannelapplies correlation filtering only to the scattered component and avoids this. With Sionna, if you need LOS TDL
- correlation, strip the specular tap from the filtering yourself or switch to CDL-D.
5. I/O format cheat sheet
CDL constructor inputs
| Parameter | Type / values | Description |
|---|---|---|
model | "A".."E" | A/B/C NLoS; D/E LOS (first cluster specular) |
delay_spread | float [s] | Target RMS delay spread, Eq. 7.7-1 scaling (Table 7.7.3-1 typicals 10–1000 ns) |
carrier_frequency | float [Hz] | Carrier frequency; sets the wavelength (Doppler & array phases) |
ut_array / bs_array | AntennaArray/PanelArray | TX/RX arrays; port count = rows×cols×(1 or 2 pols) |
direction | "downlink"/"uplink" | Which end is the moving one; for uplink the table aod/aoa, zod/zoa are swapped |
ut_orientation / bs_orientation | [3] (radians) | Mechanical angles [bearing, downtilt, slant] (§7.1); defaults UT=[π,0,0], BS=[0,0,0] |
ut_velocity | [3] [m/s] | Overrides the speed sampling when given |
min_speed / max_speed | float [m/s] | Per-realization uniform speed sampling (Doppler source) |
normalize_delays | bool | If False, skip delay scaling (use raw normalized table delays) |
TDL constructor inputs
| Parameter | Type / values | Description |
|---|---|---|
model | "A".."E", "A30"/"B100"/"C300" | The latter three are §7.7.4 pre-filtered versions with delay spread forced to 30/100/300 ns |
delay_spread | float [s] | Eq. 7.7-1 scaling (ignored for A30/B100/C300) |
carrier_frequency | float [Hz] | Carrier frequency |
num_rx_ant / num_tx_ant | int | Port counts (4 / 64 in the example); TDL has no notion of patterns |
num_sinusoids | int, default 20 | Number of SoS sinusoids ; statistical error |
los_angle_of_arrival | float [rad], default π/4 | Specular angle of arrival; sets the spectral line at (π/4 → 0.7 f_D) |
min_speed / max_speed | float [m/s] | Per-batch uniform Doppler speed sampling |
spatial_corr_mat | [Nr·Nt, Nr·Nt] | Full spatial correlation matrix (incl. polarization); mutually exclusive with the next two |
rx_corr_mat / tx_corr_mat | [Nr, Nr] / [Nt, Nt] | Kronecker-separated path |
__call__ inputs and outputs (identical for CDL/TDL)
| Name | Shape / type | Meaning |
|---|---|---|
input batch_size | int | Number of independent realizations |
input num_time_steps | int | Number of time samples |
input sampling_frequency | float [Hz] | Sampling rate; time axis |
output a | [b, 1, Nr, 1, Nt, M, T], complex64/128 | Tap coefficients ; num_rx=num_tx=1 are single-link placeholder dims |
output tau | [b, 1, 1, M], float32/64 | Tap delays [s], shared across the batch (CDL sorted ascending by table) |
- = number of clusters/taps (rows of the bundled JSON: v2.0.1 CDL-A has 23; TDL-D has 13 scattered taps + the specular merged into tap 0; the standard tables list 24).
- CIR reconstruction for one antenna pair and one tap:
; feed the
output directly to
OFDMChannelfor OFDM links. - Power normalization: TDL total output power ≈ 1 (NLoS); CDL output includes pattern/polarization-projection gains, so total power deviates from 1 with the array configuration (see measurements above).
6. Coupling with the 5G NR OFDM modulation chain
The produced by CDL/TDL is a continuous-time channel
impulse response (CIR); to plug it into a 5G NR link-level simulation it
must be “landed” on the OFDM resource grid. Sionna provides the bridge
class OFDMChannel (sionna/phy/channel/ofdm_channel.py), which takes a
CDL/TDL instance and a ResourceGrid directly. This section explains
how they connect, and how the channel model’s sampling_frequency
relates to the NR sampling rate.
The mechanism: one channel snapshot per OFDM symbol
The call chain is OFDMChannel → GenerateOFDMChannel → channel_model(...) → cir_to_ofdm_channel(...). Three key points, straight from the source:
- The sampling rate is set by the resource grid —
generate_ofdm_channel.pyL98:self._sampling_frequency = 1.0 / resource_grid.ofdm_symbol_duration. Thesampling_frequencypassed into the CDL/TDL__call__is the reciprocal of the OFDM symbol duration (CP included), not the NR FFT sampling rate. - Number of time steps = number of OFDM symbols —
L111-113:
h, tau = self._cir_sampler(batch_size, self._num_ofdm_symbols, self._sampling_frequency). The coefficients are sampled once per OFDM symbol (static within a symbol, updated across symbols by the Doppler evolution). - Delays are never discretized —
cir_to_ofdm_channeluses the continuous directly to compute the channel frequency response on every subcarrier:
with the baseband subcarrier frequencies
(subcarrier_frequencies).
So the answer to “how does the CDL sampling rate correspond to the NR
sampling rate” is: they are different quantities. The channel
model’s sampling_frequency is auto-set by OFDMChannel to
and only fixes the time grid on which the
Doppler evolution of is sampled
(channel_coefficients.py L299-305);
the NR time-domain sampling rate (i.e.
rg.bandwidth) only enters the picture on the time-domain path
(TimeChannel + OFDMModulator).
Sampling-rate correspondence cheat sheet
Example: ( kHz), , , 14 symbols (values measured locally with Sionna v2.0.1):
| Quantity | Formula | Value |
|---|---|---|
| OFDM symbol duration (with CP) | 35.417 μs (rg.ofdm_symbol_duration) | |
| Channel-coefficient update rate (passed to CDL/TDL) | 28235.3 Hz | |
| Channel time steps | num_ofdm_symbols | 14 |
| NR time-domain sampling rate (FFT rate) | = rg.bandwidth | 1.92 MHz |
| Time-domain sample interval | 520.8 ns | |
| Total time samples of the grid | 952 (rg.num_time_samples) |
- Conversion: — one channel snapshot covers exactly one full OFDM symbol (CP + FFT window).
- Doppler view: is normally far above the maximum Doppler shift (3.5 GHz, 3 m/s → Hz), so per-symbol updates track without aliasing; measured correlation between adjacent-symbol coefficients at zero velocity = 1.0 (frozen channel), as expected.
- CP constraint: frequency-selective delays must fit inside the CP, . Here taps (CDL-A, 100 ns delay spread, measured).
Frequency-domain chain (standard link-level approach): QPSK → OFDM → CDL → ZF → BER
The frequency-domain path is the standard way to run link-level BER
simulations: OFDMChannel applies a single-tap channel per RE (assuming
a sufficient CP, no ICI/ISI), with no actual IFFT/FFT needed. The
following code was run verbatim on Sionna v2.0.1 (with
torch.manual_seed(42): BER ≈ @ dB):
import numpy as np, torch
from sionna.phy.mapping import BinarySource, Mapper, Demapper
from sionna.phy.mimo import StreamManagement
from sionna.phy.ofdm import (ResourceGrid, ResourceGridMapper,
ResourceGridDemapper)
from sionna.phy.channel import OFDMChannel
from sionna.phy.channel.tr38901 import AntennaArray, CDL
torch.manual_seed(42)
# ---------- NR resource grid: mu=1 (SCS 30 kHz), demo FFT size 64 ----------
# A real 52-RB grid would use fft_size=512; this is structurally identical
rg = ResourceGrid(num_ofdm_symbols=14, fft_size=64, subcarrier_spacing=30e3,
num_tx=1, num_streams_per_tx=1,
cyclic_prefix_length=4, # CP samples per symbol
num_guard_carriers=(5, 6), dc_null=True, # left/right guards + nulled DC
pilot_pattern="kronecker", # comb pilots on symbols 2/11
pilot_ofdm_symbol_indices=[2, 11])
# ---------- CDL-A channel: SISO omni elements (BER demo) ----------
omni = lambda: AntennaArray(num_rows=1, num_cols=1, polarization="single",
polarization_type="V", antenna_pattern="omni",
carrier_frequency=3.5e9)
cdl = CDL(model="A", delay_spread=100e-9, carrier_frequency=3.5e9,
ut_array=omni(), bs_array=omni(), direction="downlink")
# ---------- Transmitter: bits → QPSK symbols → resource grid ----------
bits = BinarySource()([64, 1, 1, 2*rg.num_data_symbols]) # [b,1,1,1248] uniform bits
x_sym = Mapper("qam", num_bits_per_symbol=2)(bits) # [b,1,1,624] QPSK
x_freq = ResourceGridMapper(rg)(x_sym) # [b,1,1,14,64] with pilots/nulls
# ---------- Channel: OFDMChannel wraps the CDL, noise added in the same call ----------
# normalize_channel=True normalizes the channel to unit average energy per
# RE, so Eb/N0 is meaningful (raw CDL output carries pattern gains, total
# power != 1)
chan = OFDMChannel(cdl, rg, normalize_channel=True, return_channel=True)
EbN0 = 10**(15/10) # 15 dB
no = torch.tensor(1.0/(2*EbN0)) # QPSK: Es = 2·Eb; no = noise var per complex dim
y_freq, h_freq = chan(x_freq, no=no) # y:[b,1,1,14,64] h:[b,1,1,1,1,14,64]
# ---------- Receiver: single-tap ZF → extract data REs → demap → BER ----------
y_eq = y_freq / h_freq.squeeze(1).squeeze(1) # per RE: x̂ = y/h (SISO)
y_bits = ResourceGridDemapper(rg, StreamManagement(np.eye(1), 1))(y_eq)
out = Demapper("app", "qam", num_bits_per_symbol=2, hard_out=True)(y_bits, no)
bits_hat = out[0] # hard_out=True returns (bits_hat, llr)
ber = (bits_hat != bits).float().mean()
print(ber) # ≈ 7.3e-4 @ Eb/N0=15 dB (seed=42)
Notes:
OFDMChannelinputxhas shape[b, num_tx, num_tx_ant, num_ofdm_symbols, fft_size];num_tx_antmust equal the port count ofbs_array, andnum_rx_antof the output equals that ofut_array. For 64TR×4R:[b,1,64,14,64] → y [b,1,4,14,64].- For MIMO, replace ZF with the per-RE ( taken from
the
[rx_ant, tx_ant]dims ofh_freq). - Pilot REs never reach data demapping —
ResourceGridDemapperextracts only data positions; for channel-estimation scenarios (LS + interpolation) estimate on thepilot_patternpositions. - The CP must cover the maximum delay spread (measured: 1.85 taps < 4), otherwise the single-tap frequency-domain assumption (no ISI) breaks.
Time-domain chain (waveform level): OFDMModulator → TimeChannel → OFDMDemodulator
When a real time-domain waveform is needed (synchronization, PAPR, CP
removal logic), use the TimeChannel path — this is where the NR
sampling rate enters as the channel bandwidth:
from sionna.phy.ofdm import OFDMModulator, OFDMDemodulator
from sionna.phy.channel import TimeChannel, AWGN
mod = OFDMModulator(rg.cyclic_prefix_length)
x_time = mod(x_freq) # [b,1,1,952]: (64+4)×14 samples at 1.92 MHz
# TimeChannel: bandwidth = rg.bandwidth = N·Δf = 1.92 MHz (the NR sampling rate);
# internally the CIR is discretized by sinc interpolation: h_ℓ = Σ_p a_p·sinc(ℓ − W·τ_p)
tc = TimeChannel(cdl, bandwidth=rg.bandwidth,
num_time_samples=rg.num_time_samples,
maximum_delay_spread=3e-6) # → l_min=-6, l_max=12 (measured)
y_time = tc(x_time) # [b,1,1,952+12−(−6)] = [b,1,1,970]
y_time = AWGN()(y_time, no=no)
# OFDMDemodulator's l_min is used for phase compensation and must match
# the TimeChannel's l_min
demod = OFDMDemodulator(rg.fft_size, l_min=-6,
cyclic_prefix_length=rg.cyclic_prefix_length)
y_freq_t = demod(y_time) # back to frequency domain [b,1,1,14,64]
- Default come from
time_lag_discrete_time_channel: , . - The frequency response of the time-domain path (discrete taps + FFT,
time_to_ofdm_channel) is not exactly equal to the frequency-domain path (continuous ) — sinc interpolation truncates the tails (utils.py L443-449 Notes); measured maximum relative difference ≈ with a tight CP. Trust the frequency-domain path for BER.
Shape flow cheat sheet (demo grid: , 14 symbols)
| Stage | Block | Shape |
|---|---|---|
| Bits | BinarySource | [b,1,1,1248] |
| QPSK symbols | Mapper | [b,1,1,624] |
| Frequency grid | ResourceGridMapper | [b,1,1,14,64] |
| Time waveform | OFDMModulator | [b,1,1,952] |
| Channel, freq domain | OFDMChannel | y [b,1,1,14,64]; h [b,1,1,1,1,14,64] |
| Channel, time domain | TimeChannel | [b,1,1,970] (Nr=4 → [b,1,4,970]) |
| Back to frequency | OFDMDemodulator | [b,1,1,14,64] |
| Data REs | ResourceGridDemapper | [b,1,1,624] |
| Hard bits | Demapper | [b,1,1,1248] |
Practical advice
- Link-level BER/BLER: use
OFDMChannel(single-tap, frequency domain). Do not callCDL.__call__and stitch an FFT by hand —sampling_frequencyandnum_time_stepsare derived from the resource grid automatically. - Waveform / receiver-algorithm validation: use
TimeChannel+OFDMModulator/Demodulatorwithbandwidth = rg.bandwidth, and check the tap length fits the CP. - Studying time variation / Doppler spectra (no OFDM involved): call
CDL.__call__directly; thensampling_frequencyis yours to choose — is plenty.
7. Sionna CDL class walkthrough
Class positioning and main flow
CDL extends ChannelModel and only supports a single TX and a
single RX with multiple antennas (docstring L38-40). Output shapes:
a: [batch, num_rx=1, num_rx_ant, num_tx=1, num_tx_ant, num_paths, num_time_steps]
tau: [batch, num_rx=1, num_tx=1, num_paths]
__call__
(cdl.py)
has six substantive lines that mirror the standard’s four steps:
velocity = self._get_velocity(batch_size) # speed (for Doppler)
topology = self._create_topology(batch_size, velocity)
rays = self._create_rays(batch_size) # result of Steps 1+2+3
k_factor = self._get_k_factor(batch_size) # D/E models
h, delays = self._cir_gen(...) # Step 4 = Steps 10/11 reused
h = h.permute(0, 2, 4, 1, 5, 3, 6) # ChannelModel convention
_cir_gen is constructed with subclustering=False in __init__
(cdl.py L262-269)
— precisely Step 4’s “all clusters are weaker”.
_load_parameters: table loading and the LOS double-row convention
L402-535
reads models/CDL-{X}.json (keys: los/num_clusters/delays
(normalized by RMS delay spread)/powers (dB)/aod/aoa/zod/zoa/
cASD/cASA/cZSD/cZSA/xpr), column-for-column with the g10
tables. Three processing steps:
- Power normalization (L445-452): dB→linear, then
powers /= powers.sum()— total PDP energy equals 1. - LOS models (D/E): strip the first row (L470-497). The JSON
convention: the first two rows have zero delay and are the specular
component and the first NLOS cluster. The code extracts row 0’s
power/angles into
_los_*, renormalizes the remaining NLOS powers, and computes
(the code is los_power / norm_fact at L491) — which is exactly the
model K-factor definition of Eq. 7.7.6-2. For
CDL-D the first two rows are −0.2 dB (specular) / −13.5 dB (first
NLOS cluster), giving on the order of 8.6 dB.
3. Delay scaling (L505-507): delays *= delay_spread, i.e. §7.7.3.
Then L511-518 call _generate_rays (Step 1) on the four angle arrays,
and L520-526 swap aod↔aoa, zod↔zoa for uplink (the UT transmits, so
“BS-side angles” become arrival angles).
_generate_rays: vectorized Eq. 7.7-0a
L745-783
hard-codes the 20 Table 7.5-3 offsets as basis_vector, then one
broadcast line:
ray_angles = angles.unsqueeze(1) + c * basis_vector.unsqueeze(0)
# [num_clusters, 1] + scalar * [1, 20] -> [num_clusters, 20]
Deep dive: why is “zero random numbers” enough for CDL rays? It feels suspicious that every realization shares the same ray angles. But link-level simulation evaluates an algorithm on one typical link: its time evolution and MIMO structure. The angular distribution is deliberately frozen in the table; realization-to-realization variation is provided by Step 2 coupling (shuffling) and Step 10 random phases. Across the batch dimension, samples share the table but shuffle and phase independently — statistically equivalent to repeatedly drawing realizations of “the same PDP/angular profile”. MATLAB
nrCDLChanneldoes the same.
_random_coupling: the shuffling trick of Step 2
L817-857
→ _shuffle_angles
(L785-815):
random_numbers = normal(angles.shape, ...) # Gaussian draws
shuffled_indices = torch.argsort(random_numbers, dim=-1) # a random permutation
shuffled_angles = torch.gather(angles, dim=-1, index=shuffled_indices)
aoa/aod/zoa/zod each shuffle independently — “argsort of random numbers”
is the standard vectorizable way to generate a random permutation
(easier to compile than randperm), identical to the system-level
rays.py Step 8. Shape [batch, 1, 1, num_clusters, 20], shuffling
along the last (ray) dimension: coupling stays inside each cluster.
_create_topology / _create_rays: faking a single link
CDL has no real geometry (no BS/UT coordinates), but the Step 10/11
generator demands Topology and Rays structures. Sionna broadcasts
one link over the batch dimension:
_create_rays(L685-733): delays/powers reshaped to[1,1,1,num_clusters]thenexpand(batch,1,1,-1); angles expanded similarly before random coupling; XPR broadcast as a constantself._xpr(L718-721)._create_topology(L594-683): LOS angles reshaped[1,1,1]and broadcast;losindicator all-true/ all-false across the batch (the model choice fixes LOS/NLOS, no sampling);distance_3d = 0(L634-641);moving_endfollowsdirection(downlink ⇒ UT is RX ⇒ “rx”).
Deep dive: what does
distance_3d = 0throw away? The LOS specular component in Step 11 carries the propagation phase (channel_coefficients.py L992-999). With zero distance this factor is identically 1 — the specular component loses its distance-dependent phase. This is the link-level convention: for a single fixed link the absolute phase is a common phase absorbed by channel estimation, and CDL tables contain no geometry anyway; delay effects are fully carried by thetauoutput. System-level models are the ones that need real distances.
Deep dive: constant XPR vs the random term of Eq. 7.7-0b. The standard requires per-ray ; Sionna CDL passes the constant (
_load_parametersL466-468) with no term. The random term exists only on the system-level path (rays.py). Effect: per-realization polarization power-ratio jitter is missing — the XPR mean is right but the variance is too small. An explicit deviation from the standard (see the consistency table).
Step 4: reusing ChannelCoefficientsGenerator
Its __call__ (L282-317) runs _step_10 (four random initial phases
per ray, shape [batch,1,1,num_clusters,20,4] for the four polarization
combinations), then _step_11. The CDL-relevant branches:
NLOS coefficients (_step_11_nlos
L841-876):
each ray coefficient = polarization field matrix × array response ×
Doppler phase, times
power_scaling = sqrt(rays.powers / h_full.shape[4]) # √(P_n / 20)
Deep dive: why divide by the 20 rays? Cluster must end up with power , formed by summing 20 rays with independent phases. Setting each ray amplitude to gives expected sum power (cross terms vanish in expectation thanks to random phases). This is the “power split equally among rays” convention — the standard’s Step 11 says exactly this.
Cluster summation (_step_11_reduce_nlos
L878-957):
with subclustering=False the else branch L943-946 applies —
h_full.sum(dim=4) sums the 20 rays directly, no sub-cluster
splitting of the two strongest clusters (system-level only; indices
_sub_cl_1_ind etc. hard-code Table 7.5-5). Clusters are then sorted by
ascending delay.
LOS composition and K-factor power split (_step_11
L1010-1060):
h_los_los_comp = h_los_los_comp * sqrt(K / (K + 1)) # specular
h_los_nlos_comp = h_nlos * sqrt(1 / (K + 1)) # all NLOS
h_los_cl = h_los_los_comp + h_los_nlos_comp[:, :, :, 0:1, ...] # merged into delay-0 cluster
h_los = cat([h_los_cl, h_los_nlos_comp[:, :, :, 1:]], dim=3)
h = torch.where(los_indicator, h_los, h_nlos)
Deep dive: how the specular component is merged into the delay-0 cluster. For CDL-D/E the specular component and the first NLOS cluster both have zero delay (the table’s first two rows) — physically one Rician tap: . The specular term has unit amplitude (field × array × Doppler), the NLOS part is energy-normalized to 1, so after scaling the total CIR energy stays . Note the here is the model K (specular / all NLOS power, Eq. 7.7.6-2), so the actual Rician K of the delay-0 tap is a correspondingly amplified value — matching MATLAB
nrCDLChannel, which also defines the model K against all Laplacian clusters and merges the specular component into the first tap.
That closes the CDL loop: tables → rays (Eq. 7.7-0a) → coupling (Step 2) → Steps 10/11 (with the K split).
8. §7.7.2 TDL and Sionna’s SoS implementation
Standard definition
g10 L3902-3907: TDL targets “simplified evaluations (e.g. non-MIMO)”, 0.5–100 GHz, up to 2 GHz bandwidth; A/B/C NLOS, D/E LOS; the PDPs of Tables 7.7.2-1~5 are identical to the corresponding CDL tables (see the overview). The prescribed time behavior:
- every tap is Rayleigh fading (first tap Rician for D/E), with a classical Jakes Doppler spectrum and maximum Doppler shift ;
- for D/E, the first tap additionally contains a spectral peak at whose amplitude makes the tap’s fading distribution hit the specified K-factor.
The standard only prescribes second-order statistics (PDP + spectrum
shape + distributions); how time samples are generated is an
implementation freedom. Sionna chooses sum-of-sinusoids (SoS),
citing Xiao/Zheng/Beaulieu 2006, “Novel Sum-of-Sinusoids Simulation
Models for Rayleigh and Rician Fading Channels” (docstring L28 cites it
via the key SoS; code comments [TDL]/[SoS] refer to the same paper).
Sionna counterpart:
tdl.py→__call__()(SoS time-domain generation, steps ①~⑥); the specular spectral line is at L408-431, Doppler shifts come from_compute_doppler(). See the “TDLclass walkthrough” section below.
The SoS idea
Deep dive: why can finitely many sinusoids reproduce the Jakes spectrum? The continuous Jakes model integrates waves arriving from uniformly distributed azimuths: . Naive equal-spaced sampling makes every simulated link identical (deterministic overlap). SoS adds a random jitter to the sampled angles, , plus independent initial phases per link/antenna pair. As , converges to the correct complex Gaussian process (zero mean, autocorrelation — the Jakes-spectrum dual); with finite (Sionna default 20) the statistical error is , fine in practice.
TDL class walkthrough
TDL is also single-TX/single-RX with multiple antennas, with the same
output shapes as CDL. __init__
(tdl.py L194-300):
models A/B/C/D/E/A30/B100/C300; A30/B100/C300 force delay_spread to
30/100/300 ns (L226-240, reason in §7.7.4 below); pre-computes the
constant table (L264-276) and Cholesky square roots of the
correlation matrices (L278-300, see §7.7.5.2).
__call__
(L356-465)
step by step:
① Doppler shift (L367-375):
doppler = rand((batch,1,1,1,1,1,1,1)) * (max_doppler - min_doppler) + min_doppler
(_compute_doppler L471-489) is drawn uniformly
in , one value per batch link,
shared by all RX/TX antenna pairs of that link — consistent Doppler
within a link.
② Sinusoid angles (L377-385, paper Eq. 7):
theta = rand((b,1,1,1,1,num_clusters,1,L)) * (2π/L) - π/L # jitter θ
alpha = self._alpha_const + theta # α_l = 2πl/L + θ
The num_clusters dimension means each tap gets its own jittered
angle set.
③ Initial phases (L387-394, paper Eqs. 6a-c):
phi = rand((b,1,num_rx_ant,1,num_tx_ant,num_clusters,1,L)) * 2π - π
Deep dive: why draw φ independently per antenna pair? If all elements shared one set, every element’s would be identical (same angles, same Doppler) — spatial rank 1. Independent draws over
(rx_ant, tx_ant)make each antenna pair an i.i.d. SoS process — this is the TDL default “no spatial correlation (IID)” assumption. Correlation is not produced by angular geometry but filtered in afterwards via a correlation matrix (step ⑥). This is the essential difference from system-level models.
④ Sum and power scaling (L396-406):
argument = doppler * sample_times * cos(alpha) + phi
h = (1/√L) * Σ_l exp(j·argument) # [...,M,T,L] -> sum over L -> [...,M,T]
h = √(mean_powers) * h # tap n scaled by √P_n
⑤ LOS specular term (L408-431, paper Eq. 11): D/E add to the first tap
los_angle_of_arrival (default π/4) sets the specular Doppler factor
— this realizes the standard’s “spectral
peak at ”: at ,
, so the specular line sits exactly
at . The first tap becomes Rician.
⑥ Delays and correlation: scale_delays branch (L433-439, see
§7.7.3); correlation application in §7.7.5.2.
⑦ Parameter loading (_load_parameters
L491-544):
for LOS models the JSON first row is the specular power (same convention
as CDL); _los_power is stored separately, delays drops row 0, and
the PDP (specular included) is normalized. The k_factor property
(L312-316) returns
Detail: this is the actual Rician K of the first tap (specular / first-tap scattered power), not the “model K” of Eq. 7.7.6-2 (specular / all scattered power). In TDL-D the first tap’s scattered power (−13.5 dB) dominates, so the two differ numerically (13.3 dB vs ≈8.6 dB). TDL generation uses the absolute table powers with no global K rescaling, so the property reports the ratio actually entering the first tap; CDL instead uses the model K for the global √(K/(K+1)) split. Both paths are self-consistent, but the definitions differ — mind this when reading
tdl.k_factor.
9. §7.7.3 Scaling of delays
Eq. 7.7-1 (g10 L4334-4340):
Table delays are already normalized (),
so the implementation is simply .
Table 7.7.3-1 gives the five typical values: 10 / 30 / 100 / 300 /
1000 ns; Table 7.7.3-2 lists scenario×frequency references (reproduced
verbatim in the cdl.py/tdl.py docstrings).
Sionna: CDL does delays = delays * delay_spread in cdl.py →
_load_parameters()
(gated by normalize_delays); TDL branches on scale_delays
in tdl.py → __call__()
and the delays
property — scale_delays=true
(TDL-A~E): JSON delays are normalized, multiplied by delay_spread;
scale_delays=false (A30/B100/C300): JSON delays are absolute
ns (e.g. TDL-A30: 0,10,…,290, 12 taps), converted by ×1e-9, and the
delay_spread setter
warns that it cannot be changed (L348-354).
10. §7.7.4 Spatial filter: generating TDL from CDL
Standard L4481-4503: TDL is “CDL under isotropic antennas”; with directive patterns you can filter a CDL into a new TDL. Example filters:
- Example 1, isotropic (Eq. 7.7-2): — no filtering;
- Example 2, brick-wall window (Eq. 7.7-3): inside beamwidth around the pointing direction, 0 outside;
- Example 3: ITU-R M.2135 simplified pattern.
Power transform (Eq. 7.7-4):
Four-step procedure (L4497-4503): ① pick a CDL model (optionally angle-scaled first per 7.7.5.1); ② define TX/RX filters in LCS; ③ transform filters into GCS so the pointing direction is centered on the dominant path (strongest cluster angles) or an arbitrary direction; ④ compute new tap powers via Eq. 7.7-4 and renormalize.
Sionna: no runtime spatial-filter interface. The standard’s idea
is replaced by pre-computation — the repo ships
TDL-A30.json / TDL-B100.json / TDL-C300.json, i.e. CDL-A/B/C
passed through brick-wall windows of 30°/100°/300°, with delay spread
fixed to 30/100/300 ns (hence tdl.py →
__init__()
forces it and the JSONs set scale_delays=false). Custom filters mean
processing CDL-*.json yourself per Eq. 7.7-4 and emitting a new JSON.
A deviation from the standard (see the table).
11. §7.7.5 MIMO extensions
7.7.5.1 CDL route: angle scaling and translation
Standard L4508-4524. Fixed CDL angles bias PMI statistics and make fixed precoders look artificially good. Eq. 7.7-5 translates and scales the ray angles (offsets included):
- : mean/RMS spread of the tabulated ray angles (Annex A definitions, offsets included);
- : desired values;
- typical spreads: ASD {5,10,15,25}°, ASA {30,45,60}°, ZSA {5,10,15}°, ZSD {1,3,5}°;
- azimuth results wrapped to [0,360), zenith clipped to [0,180].
Deep dive: why scale ray angles, not cluster angles? Cluster angles are only 24 points; scaling them cannot change intra-cluster spreads. Eq. 7.7-5 acts on all 20 ray angles per cluster (output of Eq. 7.7-0a), adjusting the second moment of the combined inter-cluster + intra-cluster Laplacian distribution in one affine map.
Sionna: the CDL class (cdl.py) does not implement Eq. 7.7-5
— no angle_scaling parameter, no corresponding function; angles stay
at table values (MATLAB nrCDLChannel has it). A deviation.
7.7.5.2 TDL route: applying a correlation matrix
Standard L4525-4535: TDL coefficients are IID by default; for MIMO, apply per-tap correlation matrices. Construction options: ① zero correlation; ② the TS 36.101/104 method (α/β/γ correlation parameters for BS/UT/polarization directions; representative values {0, 0.7, 0.9, 0.99}); ③ per-tap matrices derived from scaled CDLs or system-level models.
TS36.101 single-polarized ULA entries (ρ = α or
β); dual-polarized arrays combine into the Kronecker structure (TS
38.141-1 Annex G.2.3.2.1, quoted in the tdl.py docstring L46-56):
with the polarization correlation matrix (1×1 single-pol, 2×2 one side cross-pol, 4×4 both sides).
Sionna offers two equivalent paths, both in tdl.py (Cholesky
pre-computed in
__init__()):
Path A: full matrix spatial_corr_mat (__call__() L442-450):
h = h.permute(0,1,3,5,6,2,4) # [b,rx,tx,M,T] → [...,M,T, rx_ant, tx_ant]
h = flatten_last_dims(h, 2) # merge antenna-pair dims → [...,M,T, rx_ant*tx_ant]
h = h.unsqueeze(-1) # column vector [...,N,1]
h = torch.matmul(self._spatial_corr_mat_sqrt, h) # R^{1/2}·h
h = h.squeeze(-1)
h = split_dim(h, [rx_ant, tx_ant], -1) # split back
h = h.permute(0,1,5,2,6,3,4) # ChannelModel convention
Path B: separate rx_corr_mat / tx_corr_mat (__call__() L451-459):
h = torch.matmul(self._rx_corr_mat_sqrt, h) # left-multiply Rrx^{1/2}
h = torch.matmul(h, self._tx_corr_mat_sqrt.mH) # right-multiply Rtx^{1/2·H}
Deep dive: the math and the dimension flow. Stack a tap’s channel matrix column-wise into . Under the Kronecker assumption , so . Path A multiplies the flattened vector by directly (the user builds the full matrix including Γ). Path B exploits and the mixed-product property, giving — matrix products act on the element dimensions separately, cheaper and most intuitive for single polarization.
mHis PyTorch’s conjugate transpose. The flatten order (flatten_last_dims: rx then tx) must match the Kronecker order used when buildingspatial_corr_mat, otherwise the correlation structure is transposed.cholesky_ex(non-raising variant, L282) keeps CUDA-graph compatibility.
Division-of-labor reminder: KroneckerModel/PerColumnModel in
spatial_correlation.py are post-processing tools for the OFDM
frequency-domain channel; the TDL *_corr_mat parameters filter
during time-domain coefficient generation. Independent mechanisms —
do not conflate.
12. §7.7.6 K-factor for LOS models
Standard L4536-4544: users may change the K of CDL/TDL-D/E. For target [dB], the Laplacian cluster (CDL) / Rayleigh tap (TDL) powers are scaled per Eq. 7.7.6-1:
(total power preserved; are table powers.) The model K is defined by Eq. 7.7.6-2:
After scaling, the delay spread must be renormalized: ① compute the actual RMS DS after the K adjustment; ② divide all delays by it so DS = 1 (then rescale per 7.7.3).
Sionna: neither CDL nor TDL exposes a user K-factor entry (no
k_factor constructor argument); only the model’s own K is used. CDL’s
_k_factor is computed in cdl.py →
_load_parameters()
from the JSON’s first two rows per Eq. 7.7.6-2, broadcast over the batch
by _get_k_factor(),
and feeds the √(K/(K+1)) split in channel_coefficients.py →
_step_11();
TDL composes the first Rician tap straight from the absolute table
powers, and its k_factor
property reports the first-tap Rician K. Changing K means editing the
JSON powers (recomputing per 7.7.6-1). A deviation.
13. Consistency check: Sionna vs Clause 7.7
| # | Standard | Sionna status | Verdict |
|---|---|---|---|
| 1 | 7.7.1 Step1 Eq. 7.7-0a | _generate_rays hard-codes Table 7.5-3 offsets | ✅ consistent (deterministic offsets) |
| 2 | 7.7.1 Step2 random coupling | _random_coupling: independent argsort shuffles of the four angle arrays | ✅ consistent |
| 3 | 7.7.1 Step3 Eq. 7.7-0b random XPR | CDL uses constant , no | ⚠️ random jitter missing (only on system-level path) |
| 4 | 7.7.1 Step4 reuse Steps 10/11, no sub-clusters | subclustering=False, h_full.sum(dim=4) | ✅ consistent |
| 5 | 7.7.2 time behavior (Jakes/Rician first tap, f_S=0.7f_D) | SoS + los_angle_of_arrival=π/4 specular line | ✅ statistically equivalent (generation method not prescribed) |
| 6 | 7.7.3 Eq. 7.7-1 | delays * delay_spread; A30/B100/C300 absolute ns | ✅ consistent |
| 7 | 7.7.4 runtime spatial filtering | only pre-computed A30/B100/C300 | ⚠️ no generic filter interface |
| 8 | 7.7.5.1 Eq. 7.7-5 angle scaling | not implemented | ❌ missing feature |
| 9 | 7.7.5.2 Kronecker correlation | spatial_corr_mat / rx+tx_corr_mat + Cholesky | ✅ consistent (TS38141-1 form; αβγ matrices must be user-supplied) |
| 10 | 7.7.6 user K-factor adjustment | not implemented; only model K; CDL’s √(K/(K+1)) split is correct | ⚠️ missing feature |
| 11 | 7.7.6-2 model-K definition | CDL _k_factor = specular/all-NLOS ✅; TDL k_factor property = specular/first-tap (Rician K) | ⚠️ definitions differ between the two models (see TDL “Detail”) |
| 12 | specular propagation phase | distance_3d=0 ⇒ exp(j2πd/λ)≡1 | ✅ link-level convention (delay carried by tau) |
14. Cheat sheet
| Standard item | Sionna location |
|---|---|
| CDL main flow (Steps 1~4) | cdl.py __call__ L359-396 |
| CDL table data | models/CDL-{A..E}.json |
| Eq. 7.7-0a ray generation | cdl.py _generate_rays L745-783 |
| Step 2 random coupling | cdl.py _random_coupling L817-857 |
| LOS double rows / K-factor (Eq. 7.7.6-2) | cdl.py _load_parameters L470-497 |
| Eq. 7.7-1 delay scaling | cdl.py L505-507; tdl.py L433-437 |
| Step 4 coefficient gen (Steps 10/11) | channel_coefficients.py _step_10/_step_11 L1010-1060 |
| √(P/20) ray power split | channel_coefficients.py L867-874 |
| K/(K+1) specular-scatter split | channel_coefficients.py L1046-1054 |
| TDL table data | models/TDL-{A..E}.json, TDL-{A30,B100,C300}.json |
| SoS time generation | tdl.py __call__ L356-465 |
| Specular line (f_S=0.7f_D) | tdl.py L408-431 + los_angle_of_arrival |
| Kronecker correlation matrix | tdl.py L278-300 (Cholesky), L442-459 (two paths) |
| brick-wall filter results | TDL-A30/B100/C300.json (scale_delays=false) |
15. References
- 3GPP TR 38.901 g10, Channel Model for Frequency Range 1 and 2, Clause 7.7 (line numbers refer to the extracted draft text).
- Sionna 1.x sources:
src/sionna/phy/channel/tr38901/cdl.py,tdl.py,channel_coefficients.py,models/. - C. Xiao, N. C. Beaulieu, Y. Zheng, “Novel Sum-of-Sinusoids Simulation
Models for Rayleigh and Rician Fading Channels”, IEEE TWC 2006
(the [SoS] reference of
tdl.py). - 3GPP TS 36.101 / TS 38.141-1 Annex G.2.3.2.1 (Kronecker correlation).
- MATLAB
nrCDLChannel/nrTDLChanneldocumentation (implementation conventions for comparison). - Companion post: 38.901 §7.5 twelve-step channel generation (framework, call chain, and the full twelve-step generation procedure).
Comments
Loading comments…
Want to leave a note? Sign in first — comments are open to every signed-in reader.