Contents

38.901 §7.7 Link-Level Channel Models (CDL/TDL): Generation Methods and Sionna Source Code Explained

Sionna Source Code
#Sionna#38.901#CDL#TDL#Link-level simulation

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.

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:

  1. 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.
  2. CDL coefficient generation directly reuses §7.5 Steps 10/11 (as the standard’s 7.7.1 Step 4 states), so in Sionna the CDL class and system-level classes (UMa, …) share the same ChannelCoefficientsGenerator.
  3. 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), and models/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):
ModelcASDcASAcZSDcZSAXPR
CDL-A5°11°3°3°10 dB
CDL-B10°22°3°7°8 dB
CDL-C2°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: Pn,m=Pn/20P_{n,m}=P_n/20 — CDL does not use the SCM sub-cluster power ratios Fm,nF_{m,n} 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 nn, azimuth arrival angles are

ϕn,mAOA=ϕnAOA+cASA⋅αm,m=1,…,20\phi_{n,m}^{\mathrm{AOA}}=\phi_{n}^{\mathrm{AOA}}+c_{\mathrm{ASA}}\cdot\alpha_m,\qquad m=1,\dots,20

where ϕnAOA\phi_n^{\mathrm{AOA}} is the tabulated cluster AOA, cASAc_{\mathrm{ASA}} the cluster-wise azimuth spread (a single value, 11° for CDL-A), and αm\alpha_m the 20 fixed ray-offset basis values of Table 7.5-3:

±0.0447, ±0.1413, ±0.2492, ±0.3715, ±0.5129, ±0.6797, ±0.8844, ±1.1481, ±1.5195, ±2.1551\pm0.0447,\ \pm0.1413,\ \pm0.2492,\ \pm0.3715,\ \pm0.5129,\ \pm0.6797,\ \pm0.8844,\ \pm1.1481,\ \pm1.5195,\ \pm2.1551

AOD (cASDc_{\mathrm{ASD}}), ZOA (cZSAc_{\mathrm{ZSA}}), ZOD (cZSDc_{\mathrm{ZSD}}) 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 as basis_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

κn,m=10X/10⋅exp⁡ ⁣(zn,m11.514),zn,m∼N(0,1)\kappa_{n,m}=10^{X/10}\cdot\exp\!\left(\frac{z_{n,m}}{11.514}\right),\qquad z_{n,m}\sim\mathcal{N}(0,1)

with XX the tabulated per-cluster XPR (10 dB for CDL-A) and zn,mz_{n,m} drawn independently per ray. Since 11.514=5ln⁡1011.514=5\ln 10, in the dB domain

κdB=10log⁡10κn,m=X+10ln⁡10⋅zn,m11.514=X+0.377 zn,m\kappa_{\mathrm{dB}}=10\log_{10}\kappa_{n,m}=X+\frac{10}{\ln 10}\cdot\frac{z_{n,m}}{11.514}=X+0.377\,z_{n,m}

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 10X/1010^{X/10}, broadcast as-is by _create_rays(); the exp⁡(z/11.514)\exp(z/11.514) 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=False is passed when constructing the generator in cdl.py’s __init__ (L262-269). See the “Step 4: reusing ChannelCoefficientsGenerator” 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, AntennaArray takes the array parameters directly (num_rows / num_cols / polarization / polarization_type / antenna_pattern / carrier_frequency). The old docstring style AntennaArray(antenna=Antenna(...)) is obsolete and raises a TypeError if 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.json has 23 rows, hence 23 paths in the measured output.
  • Total output power is NOT 1: the cluster power table itself is normalized (∑nPn=1\sum_n P_n = 1), but the coefficients aa are multiplied per antenna pair by the element pattern and polarization-projection gains (_step_11_field_matrix), so ∑pE∣ap∣2\sum_p \mathbb{E}|a_p|^2 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_spread only rescales normalized delays via Eq. (7.7-1) and never touches angles or powers.
  • Doppler comes from the UT velocity: if ut_velocity is not given, speeds are sampled uniformly per realization from min_speed/max_speed; keep the defaults for a static channel (a is 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_parameters stores 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. 4×8×2=644\times8\times2=64 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, Rtx=Γ⊗Rh⊗Rv\mathbf{R}_{\text{tx}}=\boldsymbol{\Gamma}\otimes\mathbf{R}_h\otimes\mathbf{R}_v (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 i=row+col×4i = \text{row} + \text{col}\times 4 (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_0 is generated as rand((batch,1,1,1,1,1,1)) (tdl.py L413-418) — all antenna pairs share the same phase, i.e. the specular component is a rank-1 all-ones structure. The correlation filtering R1/2HR1/2H\mathbf{R}^{1/2}\mathbf{H}\mathbf{R}^{1/2\mathsf H} 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 1TRrx1Nr⋅1TRtx1Nt\frac{\mathbf 1^{\mathsf T}\mathbf R_{\text{rx}}\mathbf 1}{N_r}\cdot \frac{\mathbf 1^{\mathsf T}\mathbf R_{\text{tx}}\mathbf 1}{N_t} — measured TDL-D total power with the same matrices: 31.5 (≈30×). MATLAB’s nrTDLChannel applies 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

ParameterType / valuesDescription
model"A".."E"A/B/C NLoS; D/E LOS (first cluster specular)
delay_spreadfloat [s]Target RMS delay spread, Eq. 7.7-1 scaling (Table 7.7.3-1 typicals 10–1000 ns)
carrier_frequencyfloat [Hz]Carrier frequency; sets the wavelength (Doppler & array phases)
ut_array / bs_arrayAntennaArray/PanelArrayTX/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_speedfloat [m/s]Per-realization uniform speed sampling (Doppler source)
normalize_delaysboolIf False, skip delay scaling (use raw normalized table delays)

TDL constructor inputs

ParameterType / valuesDescription
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_spreadfloat [s]Eq. 7.7-1 scaling (ignored for A30/B100/C300)
carrier_frequencyfloat [Hz]Carrier frequency
num_rx_ant / num_tx_antintPort counts (4 / 64 in the example); TDL has no notion of patterns
num_sinusoidsint, default 20Number of SoS sinusoids LL; statistical error O(1/L)O(1/\sqrt L)
los_angle_of_arrivalfloat [rad], default π/4Specular angle of arrival; sets the spectral line at fS=fDcos⁡θf_S=f_D\cos\theta (π/4 → 0.7 f_D)
min_speed / max_speedfloat [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)

NameShape / typeMeaning
input batch_sizeintNumber of independent realizations
input num_time_stepsintNumber of time samples TT
input sampling_frequencyfloat [Hz]Sampling rate; time axis tt=t/Fst_t = t/F_s
output a[b, 1, Nr, 1, Nt, M, T], complex64/128Tap coefficients ap(t)a_p(t); num_rx=num_tx=1 are single-link placeholder dims
output tau[b, 1, 1, M], float32/64Tap delays [s], shared across the batch (CDL sorted ascending by table)
  • MM = 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: hij(τ,t)=∑pab,i,j,p,t δ(τ−τp)h_{ij}(\tau,t)=\sum_p a_{b,i,j,p,t}\,\delta(\tau-\tau_p); feed the output directly to OFDMChannel for 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 (a,τ)(a,\tau) 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:

  1. The sampling rate is set by the resource grid — generate_ofdm_channel.py L98: self._sampling_frequency = 1.0 / resource_grid.ofdm_symbol_duration. The sampling_frequency passed into the CDL/TDL __call__ is the reciprocal of the OFDM symbol duration (CP included), not the NR FFT sampling rate.
  2. 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 ap(t)a_p(t) are sampled once per OFDM symbol (static within a symbol, updated across symbols by the Doppler evolution).
  3. Delays are never discretized — cir_to_ofdm_channel uses the continuous τp\tau_p directly to compute the channel frequency response on every subcarrier:
h^s,n=∑p=0M−1ap(ts) e−j2πfnτp,fn=(n−N2)Δf\widehat{h}_{s,n}=\sum_{p=0}^{M-1} a_p(t_s)\,e^{-j2\pi f_n\tau_p}, \qquad f_n=\left(n-\tfrac{N}{2}\right)\Delta f

with fnf_n 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 1/Tsym1/T_{\text{sym}} and only fixes the time grid tk=k/Fst_k=k/F_s on which the Doppler evolution of ap(t)a_p(t) is sampled (channel_coefficients.py L299-305); the NR time-domain sampling rate Fs,NR=N⋅ΔfF_{s,\text{NR}}=N\cdot\Delta f (i.e. rg.bandwidth) only enters the picture on the time-domain path (TimeChannel + OFDMModulator).

Sampling-rate correspondence cheat sheet

Example: μ=1\mu=1 (Δf=30\Delta f=30 kHz), N=64N=64, NCP=4N_{CP}=4, 14 symbols (values measured locally with Sionna v2.0.1):

QuantityFormulaValue
OFDM symbol duration (with CP)Tsym=(1+NCP/N)/ΔfT_{\text{sym}}=(1+N_{CP}/N)/\Delta f35.417 μs (rg.ofdm_symbol_duration)
Channel-coefficient update rate (passed to CDL/TDL)Fs,ch=1/Tsym=NΔf/(N+NCP)F_{s,\text{ch}}=1/T_{\text{sym}}=N\Delta f/(N+N_{CP})28235.3 Hz
Channel time stepsT=T= num_ofdm_symbols14
NR time-domain sampling rate (FFT rate)Fs,NR=N⋅ΔfF_{s,\text{NR}}=N\cdot\Delta f = rg.bandwidth1.92 MHz
Time-domain sample interval1/Fs,NR1/F_{s,\text{NR}}520.8 ns
Total time samples of the grid(N+NCP)×14(N+N_{CP})\times 14952 (rg.num_time_samples)
  • Conversion: Fs,ch=Fs,NR/(N+NCP)F_{s,\text{ch}} = F_{s,\text{NR}}/(N+N_{CP}) — one channel snapshot covers exactly one full OFDM symbol (CP + FFT window).
  • Doppler view: Fs,chF_{s,\text{ch}} is normally far above the maximum Doppler shift (3.5 GHz, 3 m/s → fD≈35f_D\approx 35 Hz), so per-symbol updates track ap(t)a_p(t) 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, NCP≥W⋅τmax⁡N_{CP}\ge W\cdot\tau_{\max}. Here 1.92 MHz×τmax⁡≈1.851.92\text{ MHz}\times\tau_{\max} \approx 1.85 taps <4<4 (CDL-A, 100 ns delay spread, measured).

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 ≈ 7.3×10−47.3\times10^{-4} @ Eb/N0=15E_b/N_0=15 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:

  • OFDMChannel input x has shape [b, num_tx, num_tx_ant, num_ofdm_symbols, fft_size]; num_tx_ant must equal the port count of bs_array, and num_rx_ant of the output equals that of ut_array. For 64TR×4R: [b,1,64,14,64] → y [b,1,4,14,64].
  • For MIMO, replace ZF with the per-RE (HHH)−1HH(H^HH)^{-1}H^H (HH taken from the [rx_ant, tx_ant] dims of h_freq).
  • Pilot REs never reach data demapping — ResourceGridDemapper extracts only data positions; for channel-estimation scenarios (LS + interpolation) estimate H^\widehat H on the pilot_pattern positions.
  • 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 lmin⁡,lmax⁡l_{\min},l_{\max} come from time_lag_discrete_time_channel: lmax⁡=⌈Wτmax⁡⌉+6l_{\max}=\lceil W\tau_{\max}\rceil+6, lmin⁡=−6l_{\min}=-6.
  • 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 τ\tau) — sinc interpolation truncates the tails (utils.py L443-449 Notes); measured maximum relative difference ≈ 3×10−13\times10^{-1} with a tight CP. Trust the frequency-domain path for BER.

Shape flow cheat sheet (demo grid: N=64N=64, 14 symbols)

StageBlockShape
BitsBinarySource[b,1,1,1248]
QPSK symbolsMapper[b,1,1,624]
Frequency gridResourceGridMapper[b,1,1,14,64]
Time waveformOFDMModulator[b,1,1,952]
Channel, freq domainOFDMChannely [b,1,1,14,64]; h [b,1,1,1,1,14,64]
Channel, time domainTimeChannel[b,1,1,970] (Nr=4 → [b,1,4,970])
Back to frequencyOFDMDemodulator[b,1,1,14,64]
Data REsResourceGridDemapper[b,1,1,624]
Hard bitsDemapper[b,1,1,1248]

Practical advice

  1. Link-level BER/BLER: use OFDMChannel (single-tap, frequency domain). Do not call CDL.__call__ and stitch an FFT by hand — sampling_frequency and num_time_steps are derived from the resource grid automatically.
  2. Waveform / receiver-algorithm validation: use TimeChannel + OFDMModulator/Demodulator with bandwidth = rg.bandwidth, and check the tap length lmax⁡−lmin⁡+1≤NCP+1l_{\max}-l_{\min}+1\le N_{CP}+1 fits the CP.
  3. Studying time variation / Doppler spectra (no OFDM involved): call CDL.__call__ directly; then sampling_frequency is yours to choose — Fs≳10 fD,max⁡F_s\gtrsim 10\,f_{D,\max} 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:

  1. Power normalization (L445-452): dB→linear, then powers /= powers.sum() — total PDP energy equals 1.
  2. 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
Kmodel=Pspecular∑nPNLOS,nK_{\text{model}}=\frac{P_{\text{specular}}}{\sum_n P_{\text{NLOS},n}}

(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 KK 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 nrCDLChannel does 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.

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] then expand(batch,1,1,-1); angles expanded similarly before random coupling; XPR broadcast as a constant self._xpr (L718-721).
  • _create_topology (L594-683): LOS angles reshaped [1,1,1] and broadcast; los indicator all-true/ all-false across the batch (the model choice fixes LOS/NLOS, no sampling); distance_3d = 0 (L634-641); moving_end follows direction (downlink ⇒ UT is RX ⇒ “rx”).

Deep dive: what does distance_3d = 0 throw away? The LOS specular component in Step 11 carries the propagation phase exp⁡(j2πd3D/λ0)\exp(j2\pi d_{3D}/\lambda_0) (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 d3D/λd_{3D}/\lambda is a common phase absorbed by channel estimation, and CDL tables contain no geometry anyway; delay effects are fully carried by the tau output. 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 κn,m=10X/10exp⁡(z/11.514)\kappa_{n,m}=10^{X/10}\exp(z/11.514); Sionna CDL passes the constant 10X/1010^{X/10} (_load_parameters L466-468) with no exp⁡(z/11.514)\exp(z/11.514) 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 nn must end up with power PnP_n, formed by summing 20 rays with independent phases. Setting each ray amplitude to Pn/20\sqrt{P_n/20} gives expected sum power ∑mE∣hm∣2=20⋅Pn/20=Pn\sum_m \mathbb{E}|h_m|^2 = 20\cdot P_n/20 = P_n (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: htap0=KK+1 hspec+1K+1 hnlos,0h_{\text{tap0}}=\sqrt{\tfrac{K}{K+1}}\,h_{\text{spec}}+\sqrt{\tfrac{1}{K+1}}\,h_{\text{nlos,0}}. 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 KK+1+1K+1=1\tfrac{K}{K+1}+\tfrac{1}{K+1}=1. Note the KK 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 fD=v/λ0f_D=v/\lambda_0;
  • for D/E, the first tap additionally contains a spectral peak at fS=0.7 fDf_S=0.7\,f_D 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 “TDL class 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: h(t)=∫−ππejωDtcos⁡β dβh(t)=\int_{-\pi}^{\pi} e^{j\omega_D t\cos\beta}\,d\beta. Naive equal-spaced sampling βl=2πl/L\beta_l=2\pi l/L makes every simulated link identical (deterministic overlap). SoS adds a random jitter θ∼U(−π/L,π/L)\theta\sim U(-\pi/L,\pi/L) to the sampled angles, αl=2πlL+θ\alpha_l=\frac{2\pi l}{L}+\theta, plus independent initial phases ϕl∼U(−π,π)\phi_l\sim U(-\pi,\pi) per link/antenna pair. As L→∞L\to\infty, 1L∑lej(ωDtcos⁡αl+ϕl)\frac{1}{\sqrt L}\sum_l e^{j(\omega_D t\cos\alpha_l+\phi_l)} converges to the correct complex Gaussian process (zero mean, autocorrelation J0(ωDτ)J_0(\omega_D\tau) — the Jakes-spectrum dual); with finite LL (Sionna default 20) the statistical error is O(1/L)O(1/\sqrt L), 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 α\alpha 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

ωd=2πvfc/c\omega_d=2\pi v f_c/c (_compute_doppler L471-489) is drawn uniformly in [ωd,min⁡,ωd,max⁡][\omega_{d,\min},\omega_{d,\max}], 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 ϕl\phi_l set, every element’s hh 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

hspec=Plos  e j(ωdtcos⁡θlos+φ0),φ0∼U(−π,π)h_{\text{spec}}=\sqrt{P_{\text{los}}}\; e^{\,j(\omega_d t\cos\theta_{\text{los}}+\varphi_0)},\qquad \varphi_0\sim U(-\pi,\pi)

los_angle_of_arrival (default π/4) sets the specular Doppler factor cos⁡θlos\cos\theta_{\text{los}} — this realizes the standard’s “spectral peak at fS=0.7fDf_S=0.7f_D”: at θlos=π/4\theta_{\text{los}}=\pi/4, cos⁡=22≈0.707\cos=\tfrac{\sqrt2}{2}\approx0.707, so the specular line sits exactly at 0.7fD0.7f_D. 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

Ktap0=PlosPscat,1K_{\text{tap0}}=\frac{P_{\text{los}}}{P_{\text{scat},1}}

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):

τn,scaled [ns]=τDS [ns]×τnDSCDL\tau_{n,\text{scaled}}\,[\text{ns}] =\tau_{\mathrm{DS}}\,[\text{ns}]\times\frac{\tau_n}{\mathrm{DS}_{\mathrm{CDL}}}

Table delays are already normalized (DSCDL=1\mathrm{DS}_{\mathrm{CDL}}=1), so the implementation is simply τscaled=τDS⋅τn\tau_{\text{scaled}}=\tau_{\mathrm{DS}}\cdot\tau_n. 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): G(θ,ϕ)=1G(\theta,\phi)=1 — no filtering;
  • Example 2, brick-wall window (Eq. 7.7-3): G=1G=1 inside beamwidth Θ\Theta around the pointing direction, 0 outside;
  • Example 3: ITU-R M.2135 simplified pattern.

Power transform (Eq. 7.7-4):

P^n=Pn⋅Gtx(θn,ϕn)⋅Grx(θn,ϕn)\hat P_n = P_n\cdot G_{\mathrm{tx}}(\theta_n,\phi_n)\cdot G_{\mathrm{rx}}(\theta_n,\phi_n)

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):

θn,m′=θˉdes+(θn,m−θˉCDL)⋅σdesσCDL\theta'_{n,m}=\bar\theta_{\mathrm{des}}+ \big(\theta_{n,m}-\bar\theta_{\mathrm{CDL}}\big)\cdot \frac{\sigma_{\mathrm{des}}}{\sigma_{\mathrm{CDL}}}
  • θˉCDL,σCDL\bar\theta_{\mathrm{CDL}},\sigma_{\mathrm{CDL}}: mean/RMS spread of the tabulated ray angles (Annex A definitions, offsets included);
  • θˉdes,σdes\bar\theta_{\mathrm{des}},\sigma_{\mathrm{des}}: 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 Rij=ρ∣i−j∣R_{ij}=\rho^{|i-j|} (ρ = α 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):

R=Rrx⊗Γ⊗Rtx\mathbf{R}=\mathbf{R}_{\mathrm{rx}}\otimes\boldsymbol{\Gamma}\otimes\mathbf{R}_{\mathrm{tx}}

with Γ\boldsymbol{\Gamma} 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 Nr×NtN_r\times N_t channel matrix column-wise into vec(H)∈CNrNt\mathrm{vec}(\mathbf{H})\in\mathbb{C}^{N_rN_t}. Under the Kronecker assumption cov(vec(H))=Rrx⊗Rtx\mathrm{cov}(\mathrm{vec}(\mathbf{H}))=\mathbf{R}_{\mathrm{rx}}\otimes\mathbf{R}_{\mathrm{tx}}, so vec(H′)=(Rrx⊗Rtx)1/2vec(H)\mathrm{vec}(\mathbf{H}')=(\mathbf{R}_{\mathrm{rx}}\otimes\mathbf{R}_{\mathrm{tx}})^{1/2}\mathrm{vec}(\mathbf{H}). Path A multiplies the flattened vector by R1/2\mathbf{R}^{1/2} directly (the user builds the full matrix including Γ). Path B exploits (A⊗B)1/2=A1/2⊗B1/2(\mathbf{A}\otimes\mathbf{B})^{1/2}=\mathbf{A}^{1/2}\otimes\mathbf{B}^{1/2} and the mixed-product property, giving H′=Rrx1/2H Rtx1/2H\mathbf{H}'=\mathbf{R}_{\mathrm{rx}}^{1/2}\mathbf{H}\,\mathbf{R}_{\mathrm{tx}}^{1/2\mathrm{H}} — matrix products act on the element dimensions separately, cheaper and most intuitive for single polarization. mH is PyTorch’s conjugate transpose. The flatten order (flatten_last_dims: rx then tx) must match the Kronecker order used when building spatial_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 K^\hat K [dB], the Laplacian cluster (CDL) / Rayleigh tap (TDL) powers are scaled per Eq. 7.7.6-1:

P^n=Pn⋅1+Kmodel1+K^,P^specular=K^∑nP^n\hat P_n=P_n\cdot\frac{1+K_{\mathrm{model}}}{1+\hat K}, \qquad \hat P_{\text{specular}}=\hat K\sum_n\hat P_n

(total power preserved; PnP_n are table powers.) The model K is defined by Eq. 7.7.6-2:

Kmodel=Pspecular∑nPnK_{\mathrm{model}}=\frac{P_{\text{specular}}}{\sum_n P_n}

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

#StandardSionna statusVerdict
17.7.1 Step1 Eq. 7.7-0a_generate_rays hard-codes Table 7.5-3 offsets✅ consistent (deterministic offsets)
27.7.1 Step2 random coupling_random_coupling: independent argsort shuffles of the four angle arrays✅ consistent
37.7.1 Step3 Eq. 7.7-0b random XPRCDL uses constant 10X/1010^{X/10}, no exp⁡(z/11.514)\exp(z/11.514)⚠️ random jitter missing (only on system-level path)
47.7.1 Step4 reuse Steps 10/11, no sub-clusterssubclustering=False, h_full.sum(dim=4)✅ consistent
57.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)
67.7.3 Eq. 7.7-1delays * delay_spread; A30/B100/C300 absolute ns✅ consistent
77.7.4 runtime spatial filteringonly pre-computed A30/B100/C300⚠️ no generic filter interface
87.7.5.1 Eq. 7.7-5 angle scalingnot implemented❌ missing feature
97.7.5.2 Kronecker correlationspatial_corr_mat / rx+tx_corr_mat + Cholesky✅ consistent (TS38141-1 form; αβγ matrices must be user-supplied)
107.7.6 user K-factor adjustmentnot implemented; only model K; CDL’s √(K/(K+1)) split is correct⚠️ missing feature
117.7.6-2 model-K definitionCDL _k_factor = specular/all-NLOS ✅; TDL k_factor property = specular/first-tap (Rician K)⚠️ definitions differ between the two models (see TDL “Detail”)
12specular propagation phasedistance_3d=0 ⇒ exp(j2πd/λ)≡1✅ link-level convention (delay carried by tau)

14. Cheat sheet

Standard itemSionna location
CDL main flow (Steps 1~4)cdl.py __call__ L359-396
CDL table datamodels/CDL-{A..E}.json
Eq. 7.7-0a ray generationcdl.py _generate_rays L745-783
Step 2 random couplingcdl.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 scalingcdl.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 splitchannel_coefficients.py L867-874
K/(K+1) specular-scatter splitchannel_coefficients.py L1046-1054
TDL table datamodels/TDL-{A..E}.json, TDL-{A30,B100,C300}.json
SoS time generationtdl.py __call__ L356-465
Specular line (f_S=0.7f_D)tdl.py L408-431 + los_angle_of_arrival
Kronecker correlation matrixtdl.py L278-300 (Cholesky), L442-459 (two paths)
brick-wall filter resultsTDL-A30/B100/C300.json (scale_delays=false)

15. References

  1. 3GPP TR 38.901 g10, Channel Model for Frequency Range 1 and 2, Clause 7.7 (line numbers refer to the extracted draft text).
  2. Sionna 1.x sources: src/sionna/phy/channel/tr38901/cdl.py, tdl.py, channel_coefficients.py, models/.
  3. 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).
  4. 3GPP TS 36.101 / TS 38.141-1 Annex G.2.3.2.1 (Kronecker correlation).
  5. MATLAB nrCDLChannel / nrTDLChannel documentation (implementation conventions for comparison).
  6. Companion post: 38.901 §7.5 twelve-step channel generation (framework, call chain, and the full twelve-step generation procedure).

Comments

Loading comments…

    ← Back to home