Emitter detection and AoA
Status: in progress. The study’s results are on Results: ring and pool: the three-sector ray-traced site at $C = 12$, one ring and one pool, in pysim and at RTL. An earlier study at $C = 8$ (one sector, the ring only) is kept in its own section at the end.
A receiver with $n_{rx}$ antennas watches $C$ frequency channels. In each channel an emitter appears from time to time, stays at a fixed angle of arrival (AoA) for a while, then stops. The receiver must detect each emitter, estimate its AoA and SNR, and notice when it stops, with as little delay as possible.
Each channel runs a small state machine on blocks of $B$ samples:
- Searching: a cheap energy gate on each block; if it fires, the block’s spatial covariance (a Gram matrix) and a scan over candidate directions, both on a shared systolic unit.
- Tracking: a cheap check that the energy, and if needed the power in the emitter’s direction, is still there.
All $C$ channels deliver a block at the same instant, so the controller dispatches several jobs at once. A search costs several times a tracking check, and how many channels are searching follows the emitters and the gate’s false alarms. So the work arrives in bursts, on hardware and memory the channels share, and the delay from an emitter’s onset to its detection depends on queueing and contention. That makes it a test of design-space exploration with a calibrated simulator (pysim) against RTL simulation alone.
Pages
The study
| Page | What it covers |
|---|---|
| The problem | The signal model, the emitters’ on/off process, what is measured, and what can be designed. |
| The algorithm | The per-channel search / track state machine, each stage’s maths and cost, and its thresholds. |
| The architecture | The capture and power detector, the ring of blocks, the hardware controller, and the pools of search and check units, with a diagram (the pool of buffers is on the results page). |
| The workload | How a test drives the receiver; the study’s workload is the ray-traced site: three sectors of a Denver scene traced with Sionna RT, emitters switched on and off with bursts and pulsing. |
| Results: ring and pool | The paper’s two designs, one ring and one pool; the data, the per-block metric (miss plus false-alarm rate against the golden, and the delay until each block’s answer is final), the front over 516 designs, the 10,000-block check, the pool’s hold depth, the thresholds searched in pysim, and pysim against RTL. |
| The timing | The cycle model of every block and where each number comes from, measured at RTL; the study’s are in the three-sector site. |
Earlier study (C = 8): one sector, eight channels, the geometric workload, the ring only (models v1 to v3).
| Page | What it covers |
|---|---|
| The parameters | Every parameter with a proposed value and whether it is explored. |
| First results | The whole design in pysim at eleven design points: the timing loss is the channels’ blind time while their jobs run; four proxies for the decision time, none of which predicts a missed emitter without pysim. |
| The design-space benchmark | A test of design methods on a Pareto front over 432 designs, with a truth oracle standing in for RTL. |
| The flow’s cost and accuracy | What each tool step provides and costs, and how accurate pysim is against the RTL, block by block and for the whole design. |
| One optimizer, two arms | The same optimizer (TPE) searching the space at RTL and in pysim, on a clock of measured tool time. |
Code
In examples/aoa_detect/:
workload.py,rt_pool.py: the workloads (the ray-traced site, and the earlier geometric one) and their truth logs;golden.py, the bit-exact golden;score.py, the event and per-block metrics;capture.py,ring.py: the capture and power detector, the ring and the pool of buffers (ring.PoolLayout);controller.py,units.py,search_unit.py: the controller and the units;system.py,AoaSystem, the whole design in pysim;src/, the HLS bodies;dut_rtl.py,dut_v4.py: the whole design at RTL against pysim;dse/: the design space (space.py), the sweeps and the cache (oracle.py,sweep.py, cachev7for the study), the selection rule (scan.py), the 10,000-block check (top10.py), the hold depth (pool_holds.py), the thresholds (thresholds.py), the figures (plots_site.py), and the earlier study’s benchmark and replay.
Tests in tests/examples/test_aoa_*.py. The study’s plan and record is plans/aoa_buffer_pool.md; the first
sketch of the idea is idea.md in the example’s folder.
Table of contents
- The problem - The problem statement. C channels, n_rx antennas, a block of B samples per channel arriving every B/fs seconds for every channel at once. In each channel an emitter is absent (covariance I) or present at a fixed angle and SNR (I + γ u uᴴ), switching on and off as a two-state Markov process. The receiver detects each emitter, estimates its AoA and SNR, and declares when it stops. What is measured, kept as separate metrics for now: from a result message for every decision, the decision time (from the block's arrival to the message), missed detections, false alarms, early stops, and the angular error. What can be designed: block size, thresholds, the direction grid, the shared hardware and memory, where each stage runs, and the policies.
- The algorithm - The per-channel algorithm, a two-mode state machine on blocks of B samples. Searching: an energy gate on the block; if it fires, the block's spatial covariance (Gram matrix, n_rx × n_rx), a scan of uᴴQ̂u over L candidate directions, the best direction's SNR estimate, and a detection test. Tracking: the block's energy, and if it drops, the power in the tracked direction, to decide whether the emitter has stopped. Each stage's cost in complex multiply-accumulates, and each threshold's false-alarm statistics (chi-square). A search costs several times a tracking check.
- The architecture - The architecture. A capture and power detector takes every channel's samples at line rate, writes them into a ring of block slots in a true dual-port BRAM through its own port, sums each channel's energy as they pass, and notifies a hardware controller on a credit stream when a channel's energy crosses its threshold (absent, active and pending states; a drop, never a stall, when no credit is free). The controller keeps a table per channel, dispatches arrival jobs to a pool of systolic units (Gram matrix and direction scan, Q̂ kept inside the unit) and departure jobs to a pool of vector units (power in the tracked direction), runs the final tests, emits a result message for every decision (the decision time ends there), answers the detector, and (in a deployed design, not modelled in the study) sends the A53 a summary every P blocks. Every job reads its channel's block over the crossbar from the ring's other port and checks the slot's header last, so a block overwritten during its read is reported late, never used. The DUT is four kinds of device (the front end, the controller with the pools' dispatchers and arbiters, and each unit with its memory reader) on the crossbar; the testbench injects the samples, writes the thresholds once and captures the result messages.
- The workload - How the receiver is driven in a test. Emitters are placed on the ground, uniformly over the area of one sector, and their SNR follows from free-space path loss (Friis), their transmit power, a 3GPP sector element pattern and the receiver's noise; their direction (azimuth, elevation) from the geometry. Each channel's emitter switches on and off as a Gilbert–Elliott process with an optional burst trigger. A statistical mode (SNR uniform in dB over [-20, 30], direction uniform in the sector) drives the untimed phase; the geometric mode drives the timed one. The source generates every channel's samples block by block from a seed, with a truth log of every emitter's on/off blocks, direction and SNR; the same samples drive pysim and, replayed from a file, the RTL. Named scenarios cover idle noise, one emitter, crossings of the thresholds, bursts and long random runs. The ray-traced site (mode="rt", C = 12) draws emitters from a pool traced with Sionna RT to the three sectors of the Denver site, their samples through every path.
- Results: ring and pool - The study the paper reports, in progress. 648 designs (516 that fit) of the three-sector ray-traced site at C = 12, in pysim: the ring of slots and a pool of buffers, each with and without catch-up, scored per block -- whether each frequency is occupied in each block, against the golden, and when that answer can no longer change. At full load 116 designs keep the block error within 5% at 80% of the part; the pool with catch-up holds the front's fast end (1.09% at a p99 of 4,656 cycles at 51%), the ring with catch-up the lowest error (0.52% at 77%), and no design without catch-up qualifies. The ten best hold at 10,000 blocks but one; the pool's hold depth trades error for delay as the ring's depth does; two pool designs at RTL match pysim exactly in every count and rate.
- The timing - The cycle model of every block for the timed simulation, and where each number comes from: calibrated on the xczu48dr platform (the dispatcher and the arbiter at 128 bits, the ring's read port and the crossbar) or measured at RTL on the block's own HLS body (the capture's end of the block, the vector unit's tail, the controller), each a constant with its source; the systolic unit's computation is still analytic, its engine measured. The ring's read port was the finding that shaped the design, resolved by a full-rate leaf. Then the decision time with no contention, and the whole DUT at RTL against pysim: within the shared front's order, the five designs ranked alike. At the three-sector site (C = 12, two sample words a cycle) every block measured again, and five v4 designs ranked alike at RTL.
- Earlier study (C = 8): the parameters - Every parameter of the design in one place, with a proposed value, whether the exploration varies it, and what scores it: the bit-exact golden (accuracy), the cost model (resources) or the timed simulation (timing). The stored values (Q̂, the scan's powers, uᴴX, the departure statistic) are narrower than exact, each with a width and an overflow mode. Several parameters are scored by more than one model: the input format sets both accuracy and the read time, every format sets resources and so how many units fit a budget, and the block length, the thresholds and the credits trade accuracy, load and delay. Then the quantities they imply: a job is read-bound at the shared port, the average load is small, and bursts set the design.
- Earlier study (C = 8): first results - The whole design in pysim on 2,000 blocks of the timing workload, scored against the truth, at some forty design points over three seeds. The timing loss is the channels' blind time while their jobs run, not queueing. Behind the one adaptor front the RTL builds, four 128-bit banks are one port and lose about 450 emitters at every point; one 512-bit bank loses 41. Catch-up notifications, which recover the edges a pending channel missed, then take it to zero -- but double the loss where the port has no room. The best point survives a slower array (0 to 5 misses at 8 lanes). Four proxies for the decision time disagree with pysim in both directions, and none without pysim predicts a missed emitter.
- Earlier study (C = 8): the design-space benchmark - A test of design methods: find the Pareto front of detection loss, decision latency and cost (the tightest resource on the xczu48dr) over 432 designs of seven parameters, with a budget of RTL-equivalent evaluations. RTL is stood in for by a truth oracle: pysim with the errors pysim is expected to make, including one it cannot see. Three methods are scored by the fraction of the true front's hypervolume they find for what they spend: a per-block analyst, a pysim-guided designer, and random RTL-only search. pysim finds two-thirds of the strict front and the constrained optimum in 4 truth evaluations (44 minutes with its sweep); random search needs 64 (3.7 hours) for three-quarters; the per-block proxy stalls at a third.
- Earlier study (C = 8): the flow's cost and accuracy - What each step of the flow does, what it provides and what it costs, per device and in total (43 minutes to calibrate the whole design from nothing; about a minute of RTL simulation, or 5 seconds of pysim, per design) -- csynth, RTL synthesis and implementation, timing calibration, pysim, RTL simulation -- and how accurate pysim is: block by block, the whole design against RTL, the ranking of designs, and where it was wrong. Then every design of the 16- and 32-antenna spaces as one point, its resource level against its delay and its missed detections, as pysim simulated it.
- Earlier study (C = 8): one optimizer, two arms - The same black-box optimizer (Optuna's TPE) searches the 432 designs once at RTL and once in pysim, on a clock of measured tool time. With the search units as built and measured (v3), RTL of a design on a 5,000-block trace takes up to 5.4 hours, so RTL with TPE needs 47 to 275 hours a resource level; pysim with TPE needs 8 to 12, and pysim of the whole space then one design confirmed at RTL finds the optimum at every level in 14 hours, all levels from one sweep. Synthesis and implementation, 5.2 hours, are the same in both. On a 500-block trace scored by p90, the gap is 1.6 to 5.7 times. The earlier v2 replays (analytic search units, RTL stood in for by biased pysim) follow.