The workload

The study’s workload is the ray-traced site (three sectors, $C = 12$). The geometric model in the sections before it is the earlier study’s ($C = 8$).

Status: under construction. The model is fixed; the values are proposals (also listed on The parameters).

The workload is everything a test feeds the receiver: where the emitters are, when they are on, and the samples that result. It has to be reproducible (a seed gives the same samples in pysim and at RTL) and come with a truth log, since every metric of the problem is a comparison of the result messages with it.

The geometry: emitters on the ground

The default places emitters on the ground, in one sector, and derives their direction and SNR from the geometry. This gives realistic joint statistics (far emitters are both weaker and closer to the horizon), and it is the same description a ray tracer takes, so moving to ray-traced channels later changes the channel, not the workload.

  • The receiver is a URA of $n_{rx} = n_h \times n_v$ elements (the signal) at height $h_{rx}$, facing the sector’s boresight, tilted down by $\delta$.
  • The sector is the ground between ranges $r_{min}$ and $r_{max}$ and azimuths $[-\phi_{max}, \phi_{max}]$ about boresight.
  • An emitter is placed uniformly over that area (so its range has density proportional to $r$), at height $h_e$, with a transmit power $P_t$ drawn uniformly in dBm.

Direction. From the receiver to the emitter: azimuth $\phi$ about boresight, and elevation $\varepsilon = -\arctan!\big((h_{rx} - h_e) / r\big)$ (below the horizon).

Per-element SNR, in dB:

\[\gamma_{el} = P_t - \mathrm{FSPL}(d) + G(\phi, \varepsilon) - N, \qquad \mathrm{FSPL}(d) = 20 \log_{10}\!\frac{4 \pi d}{\lambda}, \qquad N = -174 + 10 \log_{10} f_s + F ,\]

with $d$ the distance, $\lambda$ the wavelength, $F$ the receiver’s noise figure, and $G$ the element’s gain: the 3GPP TR 38.901 sector element, 8 dBi at its peak,

\[G = 8 - \min\!\Big( 12 \big(\tfrac{\phi}{65^\circ}\big)^2 + 12 \big(\tfrac{\varepsilon + \delta}{65^\circ}\big)^2,\ 30 \Big) .\]

The array SNR of the model is $\gamma = n_{rx}\, \gamma_{el}$ (in linear terms).

Proposed values, at a carrier of 3.5 GHz and $f_s = 30.72$ MHz per channel ($N = -92$ dBm with $F = 7$ dB):

  Value
$h_{rx}$, $\delta$ 25 m, 6° down
$r_{min}$, $r_{max}$ 100 m, 5 km
$\phi_{max}$ 60°
$h_e$ 1.5 m
$P_t$ uniform in 5 to 30 dBm

With these, the per-element SNR spans about −13 to 16 dB for 90% of emitters (median 1 dB), with the weakest 5% below −13 dB, near the detection limit, and a few near the receiver up to about 42 dB; the elevation is between about 0.3° and 13° below the horizon (from $2 \times 10^4$ draws of the model above). Both ends matter: the weak end puts emitters across the detection threshold, and the strong tail sets the input format’s headroom (below).

A statistical mode: the per-element SNR uniform in dB over $[-20, 30]$, the azimuth uniform in $[-\phi_{max}, \phi_{max}]$, the elevation uniform over the sector’s range. It puts the same number of emitters in every dB of SNR, from well below the detection limit to the top of the dynamic range, and it decouples SNR from direction, which the geometric mode does not.

Which mode for which phase (the two phases):

  • Phase 1, untimed: the statistical mode (accuracy_workload() in workload.py). The detection curve needs emitters evenly across the threshold region, and the formats need the whole dynamic range.
  • Phase 2, timed: the geometric mode (timing_workload()). The load depends on the realistic mix: how many emitters are strong, and how many are weak enough to fire the gate without being detected.

When emitters are on

Each channel’s emitter follows a Gilbert–Elliott process, stepped once per block:

  • off → on with probability $p_{on}$: a new emitter is placed (above) and stays fixed while on;
  • on → off with probability $p_{off}$.

An emitter lasts $1 / p_{off}$ blocks on average, and a channel is busy a fraction $p_{on} / (p_{on} + p_{off})$ of the time. The channels are independent, except for the burst trigger: with probability $p_{burst}$ per block, $k_{burst}$ channels chosen at random that are off turn on together. It is the worst case for the shared hardware, as after an event many emitters appear at once.

Proposed values, at $B = 256$ and $f_s = 30.72$ MHz (a block every 8.33 µs), chosen for about 1.5 activations a block over $C = 8$ channels (the load):

  Value Meaning
$p_{off}$ $3/16$ emitters last about 5 blocks, 44 µs
$p_{on}$ $3/16$ a channel is busy half the time
$p_{burst}$ $1/50$ a burst about every 50 blocks, 0.4 ms
$k_{burst}$ 4 half the channels

Pulsing sources

On top of the on/off process, pulsing episodes (in the timing workload, timing_workload()): with probability $p_{pulse}$ a block, $k_{pulse}$ channels start pulsing together; each stops with probability $p_{leave}$ a block. While pulsing, a channel’s one source (placed when it starts) switches on and off nearly every block, each pulse an emitter of its own in the truth log.

  Value Meaning
$p_{pulse}$ $1/200$ an episode about every 200 blocks, 1.7 ms
$k_{pulse}$ 4 half the channels
$p_{leave}$ $1/20$ a channel pulses for about 20 blocks
pulse on, pulse off 0.9, 0.9 a pulse of about one block, then a gap of about one

Why: queueing delay grows with the variance of the arrivals, not only their mean. Over 8,000 blocks the episodes raise the mean only 19% (1.78 against 1.49 transitions a block), but over 8-block windows the dispersion (variance over mean) is 3.5 times the base process’s (2.89 against 0.82), and the busiest 1% of windows carry twice the transitions (39 against 19). An estimate from average job times and average rates sees the 19%, not the clusters. A pulse also ends while its channel may still be pending, so the timing changes what is detected, not only when.

The samples

For channel $j$ and sample $k$ of a block:

\[x_{k,j} = \sqrt{\gamma_{el}}\; a(\theta_j)\, s_{k,j} + w_{k,j}, \qquad s_{k,j} \sim \mathcal{CN}(0, 1), \quad w_{k,j} \sim \mathcal{CN}(0, I),\]

with $a(\theta) = \sqrt{n_{rx}}\, u(\theta)$ the unit-modulus steering vector, and the first term absent while the channel’s emitter is off. This is exactly the covariance of the signal.

Quantization: the input gain. The input gain is fixed (calibrated, not an automatic gain control): it scales the samples so that the thermal noise has a complex standard deviation of $\sigma$ LSBs, then they are rounded and saturated to $b$ bits per real and imaginary part. With 1 LSB steps, rounding adds noise of power $1/6$ LSB² per complex sample, and an emitter of per-element SNR $\gamma_{el}$ has a per-part standard deviation of $\sigma \sqrt{(1 + \gamma_{el})/2}$ LSBs. So $\sigma$ trades two things:

  • Rounding noise against thermal noise: $10 \log_{10}\big(1 / (6 \sigma^2)\big)$ dB. At $\sigma = 4$ LSBs it is −19.8 dB: it raises the noise floor by under 0.05 dB.
  • Headroom: the largest per-element SNR whose per-part standard deviation stays within a quarter of full scale (clipping only beyond four standard deviations), about $6.02\, b - 20 \log_{10} \sigma - 9$ dB.
$b$ $\sigma = 1$ $\sigma = 2$ $\sigma = 4$ $\sigma = 8$
rounding vs thermal −7.8 dB −13.8 dB −19.8 dB −25.8 dB
headroom at 16 bits 81 dB 75 dB 69 dB 63 dB
headroom at 12 bits 57 dB 51 dB 45 dB 39 dB
headroom at 8 bits 33 dB 27 dB 21 dB 15 dB

Proposed: $\sigma = 4$ LSBs, the noise at −81 dBFS at 16 bits. Rounding is then negligible, and the headroom covers the workload’s strong tail (about 40 dB per element) at 16 and 12 bits; at 8 bits it does not, which is part of what the input format trades. The golden’s thresholds use the calibrated noise power $N_0 = \sigma^2 + 1/6$ LSB². Clipped samples are counted, per channel.

Word layout. Each word of the sample stream holds one channel’s antennas for one sample, the layout the ring needs; a block is $C \cdot B$ of them, channel after channel within each sample index.

The source and the truth log

One source module generates the stream, block by block, from a seed:

  • In pysim, it is the sample-stream source in front of the capture and power detector.
  • At RTL, the same samples are written to a file beforehand and replayed by the testbench’s stream driver, as the RF examples do with RfFileSource (the rt_sounder example). Identical input in both backends is what makes their result messages comparable.

Alongside the samples it writes the truth log: for every emitter, its channel, its first and last block, its direction and its SNR. Scoring matches the result messages against it.

Scenarios

Scenario What it drives What it checks
idle noise only, every channel false alarms; that the power detector and the controller stay quiet
one one strong emitter in one channel, on then off an arrival and a departure, the direction, the decision time with no load
edge one emitter near each threshold misses, early stops, repeated searches of a weak emitter
burst $k_{burst}$ channels turned on in one block queueing at the units, dropped notifications, late reads
random the Gilbert–Elliott process over many blocks every metric’s distribution

one and edge are short and deterministic, for the RTL gates; burst and random are long, for pysim, with their length set by the tail the metrics need.

The ray-traced site

WorkloadConfig(mode="rt", C=12, n_sect=3) (timing_workload(...); accuracy_workload(...) with the per-element SNR uniform in dB) replaces free space with Sionna RT on the Denver site (examples/data/denver/), and one sector with the site’s three: the C = 12 streams are three sectors of four frequency channels (stream j = s * 4 + f). The traffic process is the one above, run per frequency channel: one emitter on a frequency at a time, anywhere on the site, heard in every sector it has a path to. The design and the user’s decisions are in plans/aoa_sionna_workload.md.

  • The pool (examples/aoa_detect/rt_pool.py, committed as data/denver_pool.npz): 3,000 positions per sector drawn by the Denver drop rule (100 m to 2 km, outside buildings, 1.5 m above the ground), each traced to the three sectors’ tr38901 elements 40 m above the site’s origin, tilted down 6°, with the drops’ solver (depth 3, specular reflection and transmission). Every position with a path above the noise floor at 30 dBm is kept (6,422), so a uniform draw is uniform over the ground an emitter can be heard from. Each new emitter draws a position and a transmit power in 5 to 30 dBm.
  • The samples. Each path’s delay is applied by waveflow.rfenv.apply.ChannelApplier, then its arrival direction by that sector’s URA steering vector (array.steering, the golden’s), so the array is applied to a one-element trace. One waveform reaches all of an emitter’s sectors, on one time reference. Its applier is primed with its own signal, so it is in steady state from its first block.
  • The per-element SNR in a sector is the transmit power plus the position’s mean gain per element there, less the noise: paths within a sample add coherently.
  • The truth, per sector. With a line-of-sight path, the direction from the array to the emitter in that sector’s frame; without one, the strongest path’s direction; no truth where it has no path.
  • The metric. An emitter is detected when an arrival in one of its sectors’ streams points within one grid cell of its truth in that sector (score.score_sectors); the per-sector, stream-level loss is reported beside.

What the pool looks like (traced with Sionna RT 2.2.0, Mitsuba 3.9.1, Dr.Jit 1.5.0, on the CPU):

  rt site (6,422 positions) geometric
line of sight to the home sector 94.9% all
paths to the home sector 1: 85%, 2: 13%, 3 or 4: 1.4% 1
RMS delay spread, median / 90% / 99% 0 / 0.3 / 197 ns (a sample is 33 ns) 0
range, 5% / median / 95% 332 m / 1.10 km / 1.80 km 100 m to 5 km
elevation, 5% / median / 95% −6.1° / −1.9° / −0.5° (0.7% below −15°) −13° to −0.3°
per-element SNR (best sector), 5% / median / 95% −2.4 / 12.6 / 27.6 dB −13.1 / 1.0 / 15.5 dB
sectors that hear an emitter above −12.8 dB 2.14 on average one sector

The site’s emitters are about 11 dB stronger than the geometric model’s: the site reaches 2 km, not 5, and the array is 40 m up, not 25. 27.5% of the candidates have no path at all, most in sector 2’s wedge (53% of its candidates), which terrain blocks; they are not in the pool.

Open

  • The values above, and the carrier and bandwidth they assume.
  • Whether an emitter’s power or position may change while it is on.