First results
Earlier study (C = 8). This page covers the first study: one sector, eight channels, the geometric workload and the ring only (models v1 to v3). The paper’s results – the three-sector ray-traced site, one ring and one pool – are on Results: ring and pool.
What each step of the flow costs, how accurate pysim is against the RTL, and every design as a point of resource level against delay and missed detections: The flow’s cost and accuracy.
Status: first runs. One workload, three seeds, the units’ computation analytic (timing.md), so the
numbers are the model’s until the units are synthesized. They are enough to say what matters.
The run. The whole DUT in pysim (AoaSystem, examples/aoa_detect/system.py): the capture, the
ring, the controller and both pools on the crossbar, every memory and stream block timed from the
xczu48dr_250mhz_vitis2025_1 records (Vitis and Vivado 2025.1). It ran on 2,000 blocks (16.7 ms of
signal) of the timing workload (timing_workload(seed=1): emitters on the ground out to 5 km, the
on/off process, the bursts and the pulsing episodes), at one block every 2,083 cycles. That is
1,852 emitters. About 20 seconds a design point:
python -m examples.aoa_detect.study --blocks 2000 --A 8 --banks 4 --points 1,1 2,1 2,2 4,2
Each run is scored against the truth log (what is measured), and the same samples go through the float and fixed-point goldens, so each miss has a cause (the loss split). The fixed-point golden detects every emitter above 10 dB per element, and 90% at −12.2 dB. Every point here has no false alarms, 8 to 17 early stops, a median angular error of 1.14°, and no dropped notifications.
The design points
| Array | Ring | Systolic, vector | Late reads | Timing misses | Detected above 10 dB | Search decision: median, p90, max | Detection latency: median, p90 |
|---|---|---|---|---|---|---|---|
| 8 × 8 | 4 × 128 bits | 1, 1 | 121 | 654 | 0.648 | 9,319, 16,465, 24,880 | 8,647, 14,615 |
| 8 × 8 | 4 × 128 | 2, 1 | 0 | 308 | 0.861 | 3,154, 6,263, 10,580 | 3,310, 6,423 |
| 8 × 8 | 4 × 128 | 2, 2 | 0 | 292 | 0.864 | 3,158, 6,263, 10,448 | 3,284, 6,279 |
| 8 × 8 | 4 × 128 | 4, 2 | 0 | 262 | 0.878 | 3,149, 4,361, 6,444 | 3,151, 4,367 |
| 16 × 16 | 4 × 128 | 1, 1 | 0 | 286 | 0.878 | 3,167, 6,453, 11,403 | 3,430, 6,725 |
| 16 × 16 | 4 × 128 | 2, 1 | 0 | 220 | 0.892 | 1,867, 3,083, 5,852 | 1,872, 3,945 |
| 16 × 16 | 4 × 128 | 2, 2 | 0 | 168 | 0.909 | 1,867, 3,459, 6,514 | 1,868, 3,713 |
| 16 × 16 | 4 × 128 | 2, 4 | 0 | 166 | 0.923 | 1,867, 3,223, 7,340 | 1,868, 3,710 |
| 16 × 16 | 4 × 128 | 4, 4 | 0 | 155 | 0.927 | 1,868, 3,079, 4,675 | 1,869, 3,085 |
| 16 × 16 | 1 × 512 | 2, 2 | 0 | 41 | 0.983 | 1,254, 2,017, 3,947 | 1,255, 2,161 |
| 16 × 16 | 1 × 512 | 4, 4 | 0 | 57 | 0.972 | 1,520, 2,130, 3,341 | 1,521, 2,151 |
Times are in cycles at 250 MHz (2,083 a block). A timing miss is an emitter the fixed-point golden detects and the system does not. The search decision is from the block’s last word to the result message. The detection latency is from the arrival of an emitter’s first block to its first arrival result. Its largest values, about 16,000 cycles at every point, are weak emitters detected a few blocks late, by the golden too.
What decides the loss
Not the queue. With nothing late (every point but the first), 155 to 308 emitters are still
missed. In the 8 × 8, four-and-two point, 245 of its 262 timing misses follow the channel’s previous
emitter by one block, and the other 17 by two. The cause is the channel’s pending state
(the controller): while a channel’s job runs, the detector does not notify
it again.
- A search on the 8 × 8 array takes 1.5 blocks. So if an emitter ends during the search, the block
where it is gone passes without a departure check. If a new emitter starts in the next block, the
channel is still
active, and the new emitter is taken for the old one. - The pulsing episodes make this the common case: a pulse is about one block on and one block off.
The golden decides at once and sees every edge. So the timing loss is the time a channel is blind, which is the length of the job, not the time a job waits.
So the levers are the job’s length and the reads behind it:
- The array. With a 16 × 16 array a search ends within its block (1,861 cycles), and the misses fall: 308 to 220 at two and one units.
- The departure checks’ queue. A pulsing episode asks for four departure checks at once. One vector unit, with readers sharing banks, can take more than a block, and the next pulse is missed: 220 to 168 with a second vector unit.
- The ring’s port. With four banks of 128 bits a block’s read is 1,228 cycles, and in an episode two pulsing channels often share a bank: two reads, 2,456 cycles, more than a block. Neither doubling the units (4, 4: 155 misses) nor the vector pool (2, 4: 166) gets past that. One bank of 512 bits reads a block in 256 words, so a whole search is 949 cycles alone. Every job now shares one port, but each holds it a quarter as long: 41 misses, 98.3% detected above 10 dB.
More units can make it worse. With the one 512-bit bank, four and four units miss 57 against two and two’s 41. More jobs start together and slow one another on the one port (a search’s median rises from 1,254 to 1,520 cycles), and the extra units have nothing to gain. The parameters expected the credits and the ring’s depth to be non-monotone. Here the pool’s size is too.
Other seeds, and no pulsing
The same points on two more seeds of the timing workload, and on seed 1 without the pulsing episodes
(--no-pulse), 2,000 blocks each (timing misses; the fraction detected above 10 dB in brackets):
| Array, ring | Systolic, vector | Seed 1 | Seed 2 | Seed 3 | Seed 1, no pulsing |
|---|---|---|---|---|---|
| 8 × 8, 4 × 128 | 2, 1 | 308 (0.861) | 351 (0.821) | 234 (0.852) | 126 (0.945) |
| 8 × 8, 4 × 128 | 4, 2 | 262 (0.878) | 307 (0.847) | 200 (0.873) | 95 (0.952) |
| 16 × 16, 4 × 128 | 4, 4 | 155 (0.927) | 136 (0.937) | 117 (0.913) | 28 (0.984) |
| 16 × 16, 1 × 512 | 2, 2 | 41 (0.983) | 40 (0.977) | 33 (0.977) | 5 (0.997) |
| 16 × 16, 1 × 512 | 4, 4 | 57 (0.972) | 51 (0.973) | 34 (0.990) | 4 (0.997) |
The ranking holds on every seed. Four and four units on the one bank are never better than two and two with pulsing (on seed 3 about equal), and slightly better without it. The pulsing episodes cause most of the loss: without them the best points lose 4 or 5 emitters in 1,635, the 8 × 8 ones about 100. Seeds 2 and 3 have 1,932 and 1,765 emitters; no point has a false alarm, a late read or a dropped notification.
The shared front: what the RTL device does to four banks
The runs above give each of the ring’s windows its own crossbar port (front="per_bank"). The
device the generator builds puts them all behind one slave adaptor, whose front serves one
transaction at a time (found at RTL, plans/stream_width_and_views.md), so readers of different banks
take turns. pysim models that too (front="shared"): every window a view of one MemSlaveAdaptor,
which carries its views’ measured turnaround (a job alone takes the same 3,144 cycles behind either
front, tests/examples/test_aoa_system.py). Seed 1:
| Array, ring | Systolic, vector | Timing misses, per-bank ports | Timing misses, one front | Detected above 10 dB, one front |
|---|---|---|---|---|
| 8 × 8, 4 × 128 | 2, 1 | 308 | 449 | 0.791 |
| 8 × 8, 4 × 128 | 4, 2 | 262 | 451 | 0.788 |
| 16 × 16, 4 × 128 | 2, 2 | 168 | 424 | 0.794 |
| 16 × 16, 4 × 128 | 4, 4 | 155 | 427 | 0.777 |
| 16 × 16, 1 × 512 | 2, 2 | 41 | 41 | 0.983 |
| 16 × 16, 1 × 512 | 4, 4 | 57 | 58 | 0.972 |
Behind one front, four banks are one 128-bit port: a block’s read is 1,228 cycles and every job waits for every other, so the array and the pools stop mattering (about 425 to 450 misses at every four-bank point). The one 512-bit bank is one port either way and does not change. So four banks are worth anything only with a port per bank, which the generator does not build; one 512-bit bank is the better design on both counts.
Catch-up notifications
The loss above is the channel’s blind time. Catch-up (CaptureKernel(catch_up=True)) keeps it but
loses nothing to it: the detector already computes every block’s energy while a channel is pending; it
keeps, per channel, which of the ring’s last blocks crossed each threshold (two bits a block), and when
the answer comes it notifies the earliest block since the job that crossed the threshold of the
channel’s new state, if that block is still in the ring. Paced slowly it is the golden again (the
history holds the current block only). Timing misses (late reads in brackets), 2,000 blocks:
| Array, ring, front | Systolic, vector | Without | With catch-up, seed 1 | Seed 2 |
|---|---|---|---|---|
| 16 × 16, 1 × 512, either front | 2, 2 | 41 | 0 (0) | 0 (0), per bank |
| 16 × 16, 1 × 512, per bank | 4, 4 | 57 | 3 (0) | 0 (0) |
| 16 × 16, 1 × 512, one front | 4, 4 | 58 | 5 (3) | – |
| 16 × 16, 4 × 128, per bank | 4, 4 | 155 | 109 (117) | 68 (94) |
| 8 × 8, 4 × 128, per bank | 4, 2 | 262 | 131 (62) | 138 (69) |
| 8 × 8, 4 × 128, per bank | 2, 1 | 308 | 272 (169) | 305 (231) |
| 16 × 16, 4 × 128, one front | 4, 4 | 427 | 650 (842) | – |
| 8 × 8, 4 × 128, one front | 4, 2 | 451 | 597 (729) | – |
With room to spare it removes the loss: one 512-bit bank, a 16 × 16 array and two units of each type detect every emitter the fixed-point golden detects, on both seeds, 100% above 10 dB. Without room it makes things worse: catch-up adds jobs (each edge it recovers is one) and reads older blocks, so where the port is already the bottleneck the reads come late (up to 842) and behind one front the loss grows. The same feature is the best and the worst choice depending on the rest of the design – the kind of interaction no per-job analysis sees.
How much the best point rests on the 16 × 16 estimate
The 16 × 16 array’s 598 cycles assume it drains its outputs 16 lanes a cycle; SystolicEngine, which
the unit should be built on, is characterized up to 8 lanes and 8 × 8 arrays
(plans/aoa_search_engine.md). So the best point is rerun at 8 lanes (a search’s compute 854
cycles, by the engine’s period rule, systolic_cycles(..., lanes=8)) and with the 8 × 8 array,
inside the characterized range – all with one 512-bit bank behind one front, the RTL’s device:
| Array | Catch-up | Systolic, vector | Timing misses, seed 1 | Seed 2 | Detected above 10 dB |
|---|---|---|---|---|---|
| 16 × 16, 16 lanes | yes | 2, 2 | 0 | – | 1.000 |
| 16 × 16, 8 lanes | yes | 2, 2 | 5 (1 late) | 0 | 1.000, 1.000 |
| 16 × 16, 8 lanes | yes | 4, 4 | 23 (15 late) | 0 | 1.000, 1.000 |
| 8 × 8 | yes | 4, 2 | 39 | 50 | 0.972, 0.973 |
| 8 × 8 | yes | 2, 2 | 73 (13 late) | 71 (11 late) | 0.965, 0.967 |
| 8 × 8 | no | 4, 4 | 208 | 242 | 0.896, 0.884 |
The conclusion does not rest on the estimate: at 8 lanes the best point still loses 0 to 5 emitters. Within the characterized range (8 × 8) catch-up still cuts the loss by four (208 to 50). The design to build is one 512-bit bank, catch-up, two systolic and two vector units, and the largest array the engine can be calibrated at; its search compute is the number to measure first.
The ring’s depth and the credits
At the design to build, with the slower array (16 × 16 at 8 lanes, one 512-bit bank, catch-up, one front, two and two units), the two sizes the parameters expected to be non-monotone:
| Ring slots $R$ | Credits | Timing misses, seed 1 | Seed 2 | Late reads | Dropped notifications |
|---|---|---|---|---|---|
| 4 | 16 | 27 | 21 | 13, 10 | 0 |
| 8 | 16 | 5 | 0 | 1, 0 | 0 |
| 16 | 16 | 0 | 0 | 0 | 0 |
| 8 | 2 | 203 | 231 | 0 | 2,223, 2,709 |
| 8 | 4 | 44 | 17 | 6, 5 | 334, 281 |
| 8 | 8 | 5 | 0 | 1, 0 | 0 |
Both are monotone here. A shallow ring makes reads late, and catch-up’s reach ($R - 2$ blocks) short;
few credits drop notifications in the bursts. $R = 8$ and 8 credits are enough: a deeper ring
(16 slots, 2 MB) removes the last few misses on seed 1. The non-monotone case param.md foresaw (more
credits, more queued jobs, more late reads) would need a ring shallower than the queue the credits
allow; at these sizes the port keeps up.
The proxies: what an analysis without pysim predicts
For a search’s decision time (from study.py, the same jobs):
- alone: each search takes its time alone (the per-block analysis of
timing.md); - poisson: a first-come-first-served queue at the systolic pool, a search’s time each, fed by the same number of searches at random times: the average-rate model;
- trace: the same queue fed by the notifications’ actual times. It sees the bursts, but not the memory: no bank shared, no read slowed, no job’s result changing what comes next;
- pysim: the timed simulation.
| Point | Alone | Poisson: p90, p99 | Trace: p90, p99 | pysim: p90, p99 |
|---|---|---|---|---|
| 8 × 8, 4 banks, 1, 1 | 3,135 | 34,696, 46,622 | 15,362, 21,328 | 16,465, 22,269 |
| 8 × 8, 4 banks, 2, 1 | 3,143 | 5,444, 8,149 | 5,197, 7,271 | 6,263, 8,635 |
| 8 × 8, 4 banks, 4, 2 | 3,144 | 3,144, 3,703 | 3,144, 4,164 | 4,361, 4,372 |
| 16 × 16, 4 banks, 4, 4 | 1,862 | 1,862, 1,862 | 1,862, 1,862 | 3,079, 3,091 |
| 16 × 16, 1 bank, 2, 2 | 949 | 949, 1,769 | 1,269, 2,138 | 2,017, 3,056 |
| 16 × 16, 1 bank, 4, 4 | 950 | 950, 950 | 950, 950 | 2,130, 2,728 |
| Recommended: 16 × 16, 1 bank, 2, 2, catch-up, one front | 949 | 949, 1,759 | 2,138, 2,138 | 3,308, 6,336 |
| The same at 8 lanes | 1,205 | 1,367, 2,365 | 2,650, 2,932 | 5,677, 14,009 |
| The same with 8 × 8 | 2,231 | 3,705, 5,557 | 5,105, 9,697 | 11,791, 16,343 |
(The first six rows have per-bank ports and no catch-up. With catch-up a search can name a block a channel’s job made it miss, so pysim’s time from that block’s arrival includes the wait for the job before – the time the edge was really seen – which the proxies, fed by the notifications, do not count either.)
- The job time alone predicts no tail at all.
- The average-rate queue is wrong in both directions.
- At one systolic unit (116% busy on average) it predicts a queue twice as long as pysim’s. The real system is a closed loop: a channel waiting for its job is not notified again, so overload suppresses its own arrivals.
- With enough units it predicts no wait at all.
- The real arrival times fix the first error but not the second. Where the memory is the bottleneck (four banks with four units of each, or one bank), the queue at the units is empty and every search still waits for the port: pysim’s p90 is 1.6 to 2.2 times the trace’s.
- None of the three predicts a single missed emitter. They time jobs; the misses come from what the time does to the channel’s state. At the best point the proxies say 949 cycles and the goldens’ detections. pysim says 2,017 cycles at p90, and 41 emitters lost.
The systolic engine as built
The tables above time a search with the array’s tiles (systolic_cycles): 598 cycles at 16 × 16.
SystolicEngine as built is bound by its input and takes 5,160 (5,912 at 8 × 8; measured at RTL,
xsim 2025.1, plans/aoa_devices_rtl.md Part D). The same designs with that time (pysim, the timing
workload’s 500 blocks, one 512-bit bank, one front, catch-up; AoaSystem(engine="as_built")):
| Systolic, vector, $R$ | Cost | Fed engine: loss, p99 | Engine as built: loss, p99 |
|---|---|---|---|
| 2 × 16 × 16, 2, 8 | 0.51 | 0.0%, 3,675 | 67.6%, 34,325 (249 late reads) |
| 4 × 16 × 16, 1, 8 | 0.97 | 0.0%, 3,264 | 3.5%, 18,371 |
| 4 × 8 × 8, 2, 8 | 0.40 | 0.7%, 13,256 | 5.0%, 20,134 |
| 4 × 16 × 16, 1, 16 | 0.97 | 0.0%, 3,264 | 2.5%, 35,319 |
So the engine’s input path is the largest lever in the design: no choice of ring, pools or ring depth
makes up for it. Feeding it at the ring’s 512 bits, reading the Gram matrix’s block once and using long
panels is plans/systolic_engine_fed.md.
The whole DUT at RTL against pysim
Every device of the design, csynth’d by Vitis HLS 2025.1 for xczu48dr at 4 ns, on the crossbar at RTL
(xsim 2025.1; examples/aoa_detect/dut_system.py, tests/examples/test_aoa_dut_xsi.py): the front end,
the controller with its pools, the vector units, and the systolic units as stand-ins that read the
ring as the unit does and answer with the golden’s result at systolic_cycles (their formats were not
settled when it was built). The pysim model the RTL is held to is AoaSystem with the same shape.
- 24 blocks paced so every job is answered within its block: the 37 result messages are the golden’s decisions at RTL, and the RTL’s recordings equal pysim’s word for word.
- 200 blocks of the timing workload at the block rate, the recommended design (one 512-bit bank, two and two units, catch-up): the same 306 result messages; the decision times’ median 1,012 cycles at RTL and 1,010 in pysim, the p99 2,769 and 2,775. Each result’s time within the shared front’s order of pysim’s (|RTL - pysim| median 3, p99 32, max 51 cycles): when units read the ring at once, AMD’s crossbar and pysim’s front serve their bursts in different orders, and a reader finishes up to a burst a waiting reader earlier or later. pysim’s decision times are the RTL’s.
- Five designs, ranked (the recommended; without catch-up; four 128-bit banks behind the front; pools of one; four systolic units): pysim orders them as the RTL does, by p99 and by the detections missed against the golden (Spearman 1.0 both). The one level error is the four-bank design, the front its bottleneck: pysim’s front runs a few percent light there (the median 3% early, the maximum 16%; 321 notifications at RTL to 314), and the design is last in both backends.
The detail, with each design’s distribution and wall time, is plans/aoa_devices_rtl.md (Part E).
What the RTL measured, block by block
- The capture’s end of the block: 41 cycles from a block’s last word to its first notification
(38 without catch-up), plus a cycle an answer drained and the notification’s send slot – it was 16,
analytic. Every decision time above moves by about 25 cycles with it (
plans/aoa_capture_rtl.md). - The vector unit’s tail: 39 cycles after the block’s last word (it was 20); a check alone 356 cycles at the one 512-bit bank.
- The controller: 4 cycles a notification, as modelled, and 2 more a result.
- The crossbar at 512 bits: 2 cycles a request, 1 a read beat’s return, from the one-reader trace (the timing).
- The systolic engine: 16 × 16 meets 4 ns (csynth’s estimate, 1,049 DSP) and is bound by its input (above).
The design-space study’s runs on these measured models are its cache’s version 2
(examples/aoa_detect/dse/cache/README.md).
The search unit as built on the fed engine (v3)
The lab built the unit on SystolicEngine fed at the ring’s rate (plans/systolic_engine_fed.md;
examples/aoa_detect/search_unit.py, SearchDevice), bit-exact against the golden at RTL. Vitis HLS /
Vivado / xsim 2025.1, xczu48dr at 4 ns:
| 16 × 16 | 8 × 8 | |
|---|---|---|
| The engine alone, a search back to back | 612 cycles (598 analytic) | 2,118 |
| The unit, a search from the block’s last word | 1,715 | 3,980, plus 256 of intake (4,554 alone) |
| Implemented (out of context): LUT, FF, DSP, BRAM_18K | 106,780, 190,938, 1,066, 366 | 37,289, 52,960, 291, 363 |
| Timing at 4 ns | misses, WNS −1.108 ns (below) | meets, +0.120 ns |
The unit adds about 1,100 cycles to the engine’s: the Gram matrix’s return to the engine, the scan’s 512
words of $W$, and the largest of 256 directions. pysim’s SearchUnit(engine="fed") takes these numbers,
and matches every result’s cycle at RTL.
The whole DUT at RTL with two real 16 × 16 units (design 6, 200 blocks; examples/aoa_detect/dut_real.json):
the same 305 results as pysim; decision times at RTL / pysim p50 2,371 / 2,387, p90 3,014 / 3,076, p99
5,034 / 5,036 cycles. pysim is within 0.04% of the RTL’s p99 with the real units. Nine departures on
the pool of one check unit come back in the other order at RTL (two queued departures served the other
way, up to 2,369 cycles each): the per-result bound misses, the distribution does not move.
What it does to the design (pysim, v3, 5,000 blocks of the timing workload; optimizer.md):
- The design is short of compute: a search costs about three times v2’s estimate. Only three designs miss under 1% of the golden’s detections – two 16 × 16 units and a 16-slot ring, at a resource level of 80% (the URAM binds), missing 0.75% at a p99 of about 31,000 cycles (15 blocks).
- An 8-slot ring misses 2.4% at about 15,000 cycles; a 4-slot ring with catch-up 4.6% at 7,344. One 16 × 16 unit misses 17%; 8 × 8 units at least 3% even four of them. Four 16 × 16 units do not fit (DSPs).
- The benchmark’s workload is to be chosen again, on the ray-traced workload rather than tuned on this
one (
plans/aoa_sionna_workload.md,plans/aoa_agentic.md).
The tail on 500 blocks is noise. 500 blocks hold about 400 searches, so p99 is the 4th-largest decision time: the same design on five trace seeds gives a p99 of 3,673 to 5,756 cycles, and on 2,500 blocks still 4,362 to 5,627. A p99 needs about 5,000 blocks, or a weaker statistic (p90, the mean) on 500.
What is not settled
- The 16 × 16 unit’s timing at 4 ns. It misses by 1.1 ns; the worst path is the engine core’s
central control to its partial-sum store, which the search never uses. Compiling the store out closes
it (+0.096 ns, the engine; +0.089 ns, the unit); the lab is building that and two more fixes (a
systolic drain, no global stall) as options of the framework’s engine (
lab/engine-scale). - The four-bank front under its heaviest load, where pysim runs a few percent light: enough to shift that design’s tail, not its rank.