The flow’s cost and accuracy
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.
All tool numbers are Vitis HLS / Vivado / xsim 2025.1 on the xczu48dr at 4 ns; the lab machine has 8
cores. The per-device calibration times are from plans/aoa_devices_rtl.md Part F
(examples/aoa_detect/calib_cost.py -> calib_cost.json: every build step’s wall time, each device’s
gate flow run alone from an empty build root).
The steps, what they provide
| Step | What it does | What it provides | Who needs it |
|---|---|---|---|
| csynth (Vitis HLS) | turns a block’s C++ body into RTL | the RTL; its initiation interval, clock estimate and resource estimate | both arms, once per block configuration |
| RTL synthesis and implementation (Vivado) | synthesizes and places a block (or the design) out of context | the real LUT, FF, BRAM, URAM and DSP counts and timing closure (WNS) | both arms; per block configuration for the cost axis, per design to close the final one |
| Timing calibration (xsim and a fit) | runs a block alone at RTL on calibration workloads and fits its cycle model | the block’s timing record, what pysim times that block by | the pysim arm only, once per block configuration and point |
| pysim | simulates a whole design over a trace in Python, each block by its calibrated model | every metric of the design (decisions, decision times, misses, late reads) on any trace length | the pysim arm, per design and trace |
| RTL simulation (xsim) | simulates the whole design’s RTL over a trace | the same metrics, exact; the gate of the composition | both arms; the RTL arm per design explored, the pysim arm to confirm its choice |
The first three are paid per block configuration: a block’s variants (a width, a pool size, a catch-up flag) each need their csynth, implementation and calibration once, whatever the number of designs that use them. pysim and RTL simulation are paid per design and trace.
What each step costs
Per device: calibrating it from nothing
Each device’s gate flow run alone and serially from an empty build root, every step’s wall time summed by kind (Part F). A system is one harness built and run at RTL: a configuration of the device against a workload.
| Device | Systems | From empty | One system | csynth | System top and crossbar IP | xsim | pysim |
|---|---|---|---|---|---|---|---|
| Front end: the capture and its ring (Part A) | 9 (6 at 1 bank, 3 at 4) | 509 s | 57 s | 151 s | 237 s | 120 s | 1 s |
| Vector unit and its reader (B) | 4 | 199 s | 50 s | 36 s | 105 s | 56 s | 2 s |
| Controller with its pools (C) | 1 | 27 s | 27 s | 18 s | – (no crossbar) | 9 s | – |
SystolicEngine, 8 × 8 and 16 × 16 (D) |
6 (2 points × 3 workloads) | 1,051 s | 175 s | 579 s (the 16 × 16 csynth 9.5 min of it) | – | 472 s | – |
| The whole DUT (E) | 6 (5 at 1 bank, 1 at 4) | 795 s | 132 s | 294 s (every device’s top) | 160 s | 331 s | 9 s |
| The whole design | 26 | 2,582 s (43 min) |
Implementation (Vivado, for the cost axis’s resource numbers), measured separately on the shared blocks:
| Block | Implementation a point | Source |
|---|---|---|
| BRAM window, full-rate leaf | 2 min 23 s to 2 min 32 s | the platform’s records |
| Crossbar with a window’s adaptor | about 3 min | plans/bram_fullrate_port.md |
| Stream blocks (dispatcher, arbiter, demux) | csynth’s estimate, 15 to 27 s a point (96 points) | the platform’s records |
The calibrated numbers themselves are constants beside their fits in the example
(capture.END_CYCLES, units.CHECK_TAIL_CYCLES, controller.MSG_CYCLES / RESULT_EXTRA_CYCLES), not
platform records, so the cost is the gate flow’s, as above.
In total, and per design
| Time | Per | |
|---|---|---|
| Calibrating the whole design from empty build roots (26 systems, csynth to the fits) | 43 min on 8 cores | once |
| pysim, one design, 500 blocks (4.2 ms of signal) | 4.5 to 4.7 s (median), one core | per design |
| pysim, the 408 designs of the 16-antenna space | 35 min of CPU, about 9 min on 4 cores | per sweep |
| RTL simulation, the whole design, 200 blocks | 44 to 70 s of xsim plus about 16 s to elaborate, on cached csynths | per design |
| RTL simulation of a design from empty build roots | its devices’ csynths, the crossbar IP and the compile first: minutes to tens of minutes | per new design |
With the real search units (v3)
The rows above are the whole DUT with stand-in search units. With the units as built on the fed engine
(lab/engine-fed-8, examples/aoa_detect/xsim_cost.json, search_impl.json; 2025.1, the lab machine):
| Stand-in units | Real units (two 16 × 16) | |
|---|---|---|
| xsim speed | 10,445 cycles/s | 537 cycles/s (19.5 times slower) |
| Elaboration | 14.4 s | 72.8 s |
| The system top (Verilog top and crossbar IP) | 26.6 s | 30.2 s |
| A design at RTL, 200 / 500 / 5,000 blocks | 1 min / – / – | 14 min / 35 min / 5.4 h |
| Implementing a search unit, out of context | – | 2.1 h at 16 × 16, 37 min at 8 × 8 |
pysim on the same design takes about 14 s at 1,000 blocks and 70 s at 5,000 (one core), and matched the RTL’s p99 to 0.04% (the results).
pysim is about 30 to 45 times faster than xsim on the same blocks, and needs no per-design csynth. That ratio alone is not the pysim arm’s advantage: what matters is that pysim can afford the long trace the tail metrics need on every design (the short runs).
How accurate pysim is
Block by block (each block’s model against its own RTL; timing.md):
| Block | pysim against RTL |
|---|---|
| The ring’s read over the crossbar, one reader | 1,228 against 1,233 cycles |
| Two and four readers sharing one window | within 0.21% |
| Two readers behind the shared adaptor front | 4 to 5 cycles early a read |
| Capture: notifications and the end of a block | every notification equal; each end within a cycle |
| Vector unit | every one of 484 results on pysim’s cycle |
| Controller and pools | every message equal, each within 3 cycles |
SystolicEngine, back to back |
pysim’s engine 7 to 8% early |
The whole design (Part E: the front end, the controller and pools, two vector units and two systolic stand-ins on the crossbar; 200 blocks at the block rate):
| Median | p90 | p99 | Max | |
|---|---|---|---|---|
| RTL decision time | 1,012 | 1,596 | 2,769 | 3,090 |
| pysim decision time | 1,010 | 1,594 | 2,775 | 3,083 |
| |RTL − pysim| | 3 | 15 | 32 | 51 |
The same 306 results in both. The differences come from one source: the order in which the shared front serves readers that arrive together, bounded by a burst per waiting reader.
The ranking (five designs that differ where the mechanisms are): pysim orders them as RTL does, by p99 and by missed detections, Spearman 1.0 on both. Its one level error is the four-bank design under the heaviest load, its front about 4% light; it is still last in both.
Where pysim was wrong. Not in its calibrated blocks: in what was not yet calibrated, or not yet modelled.
- The shared front was not in pysim until the RTL found it; with per-bank ports, pysim ranked four banks too well. Found at RTL, then modelled, then confirmed to a few cycles.
- The systolic unit’s computation was analytic: 598 cycles a search, where the engine as built takes 5,160 (input-bound). With the measured number, the recommended design loses 68% of the emitters, not 0% (results).
So pysim is as accurate as its blocks: where every block is calibrated, it is within a few cycles of the RTL and orders designs as the RTL does; where a block is an estimate, it is as wrong as the estimate. That is why each device is calibrated before a design is chosen, and one RTL run confirms the choice.
Every design as one point
Each point is one design, simulated in pysim on the timing workload: its resource level (the largest
fraction of any resource type on the part) against its 99th-percentile decision time, and against the
detections it missed. The designs on the 2-D Pareto front are outlined and joined. The points are spread
by up to ±0.6 percentage points sideways so designs of one cost do not hide each other; the front is on
the true costs. The data is examples/aoa_detect/dse/cache/ (python -m examples.aoa_detect.dse.plots).
16 antennas (408 designs; model v2)


- Catch-up splits the cloud: without it (orange) the latency is lowest, with it (blue) the misses are. The delay front is all catch-up off; the misses front reaches zero at 40% with catch-up on.
- Four 128-bit banks behind one front (aqua) are never on either front, at any resource level.
- The cost has a few steps: the ring’s URAM at $R$ = 4, 8, 16 (20%, 40%, 80%) and the DSPs of one, two or four 16 × 16 arrays (25%, 50%, 97%).
32 antennas (512 designs; model v2)


- With a 1,024-bit sample word the ring’s shape is a choice: one 1,024-bit bank (blue), two 512-bit banks (orange), or four or eight narrower ones (aqua); circles have a port per bank, triangles share one front.
- The fronts are the wide buses; the narrow banks (aqua) sit high, their block’s read longer than a block period.
- At 32 antennas the load is heavy (the larger array detects more emitters): the best design misses about 4% of the golden’s detections, at 97% of the part; at half the part, about 10%.
These are pysim’s numbers. Its errors against the truth oracle and the RTL are above and on the benchmark.