The design-space benchmark

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.

Status: first results. One workload; the truth oracle’s errors and the RTL speed are assumptions, to be replaced by the lab’s measurements (examples/aoa_detect/dse/).

Why a front, not a point

The first results found one design that loses nothing. A test built on that is fragile: whichever method finds the ring’s bank width first wins, and once found, the rest matters little. A real design is chosen against cost, and with cost the answer is not one point but a Pareto front – the designs no other beats on every objective at once – and every parameter moves along it.

The problem

Seven parameters, 432 designs (dse/space.py):

Parameter Values
The ring’s banks 1 of 512 bits, 4 of 128
The systolic array’s side $A$ 8, 16
Systolic units 1, 2, 4
Vector units 1, 2, 4
Ring slots $R$ 4, 8, 16
Notification credits 4, 16
Catch-up off, on

Three objectives, all minimized:

  • loss: the fraction of the emitters the fixed-point golden detects that the system misses;
  • p99: a search’s decision time, 99th percentile, from its block’s arrival;
  • util: the utilization of the tightest resource on the xczu48dr, the largest of the fractions of its 4,272 DSPs, 80 URAM blocks and 425,280 LUTs. A design above 1 does not fit (24 of the 432).

What costs what (resources(); each number’s source in dse/space.py):

  • the systolic arrays’ DSPs: 4 a complex multiply-accumulate. Two 16 × 16 arrays are 48% of the part;
  • the ring’s URAM: 32 blocks at $R = 8$, 64 at 16;
  • the crossbar’s LUTs, measured at 1,368 with 128-bit readers and 4,524 at 512 bits (4 masters).

On this part, then, the 512-bit bus is cheap (1% of the LUTs) and the DSPs and the ring’s depth are what bind: the cost axis moves with the array, the pools and $R$.

The workload: 500 blocks (4.2 ms) of the timing workload, seed 1, with its pulsing episodes. One workload for now; others follow.

The truth oracle: a stand-in for RTL

An RTL simulation of a 500-block trace is about a million cycles of the whole design, minutes to hours in xsim, so the 432 designs cannot each be run at RTL. The benchmark stands in for it with a truth oracle: the same pysim system with the errors pysim is expected to make (dse/oracle.py, TRUTH). If it were pysim with random noise, pysim would be right by construction and the test would prove nothing. So truth differs from the designer’s pysim in kind as well as in size:

  • Biases per block type on the analytic numbers: the systolic compute 15% slower, the vector unit’s tail 40% longer, the controller 6 cycles a message instead of 4. (The capture’s end of block was 32 cycles in truth against pysim’s analytic 16 when the sweeps below were run. It is now measured at RTL, 41 cycles with catch-up, and shared by both; the cached sweeps predate that.)
  • A hidden effect the designer’s model lacks: SystolicEngine is characterized only up to 8 lanes, so truth runs a 16 × 16 array at 8 lanes, with its scan’s tiles draining in 32 cycles rather than 16 (the proposal).
  • The crossbar at 512 bits, measured only at 128: in truth 2 cycles more a request, 1 more a beat. (Since measured: the settings hold at 512 bits, plans/aoa_devices_rtl.md Part F, so this one of truth’s errors is larger than the real one. It is kept in the v1 and v2 sweeps, which make pysim’s task harder, not easier.)

They are hypotheses, sized to what is known (pysim’s reads within 0.3% of RTL; the units’ compute not yet measured). plans/aoa_devices_rtl.md measures each block and the whole design at RTL; the values are then replaced by what was measured.

What an evaluation costs. A truth evaluation stands for an RTL simulation of the trace, $500 \times 2{,}083$ cycles at an assumed 5,000 cycles a second of xsim: about 3.5 minutes. A pysim evaluation costs its wall time, about 4 seconds. Both are to be replaced by measured numbers.

The methods

Each proposes designs in its order of preference; each proposal is a truth evaluation (dse/bench.py).

  • proxy: the per-block analyst. From the golden’s job rates and the per-block times it predicts, for each design, whether every pool and the ring’s port stay under 100% busy; if so it predicts no loss and a decision time of a search alone, and proposes those designs by predicted latency, then cost. It sees no reason for catch-up, a deeper ring or more credits, so it takes the cheapest.
  • pysim: sweeps the 408 designs that fit in the designer’s pysim (its cost: the sweep’s wall time), then proposes its own Pareto front, spread out by hypervolume contribution, then the next fronts.
  • random: designs that fit, in random order (the mean of 50 orders): an RTL-only flow without a model.

The score after $k$ truth evaluations: the hypervolume of the Pareto front among the truth results the method has, over the hypervolume of the true front (all 408 designs in truth), with the reference point (loss 0.5, p99 30,000 cycles, util 1). 1 is the whole front found.

Results

Model version v1 (dse/cache/v1/, described in dse/cache/README.md): every table from here to What this does not yet show was swept before three of the model’s numbers were measured or decided – the capture’s end of block (16 cycles analytic, now 41 measured), the vector unit’s tail (20, now 39), and the golden’s formats (now SystolicEngine’s). The sweeps are being rerun as v2.

Both sweeps of the 432 designs, 864 evaluations (dse/cache/): python -m examples.aoa_detect.dse.bench. Of the 408 designs that fit, 22 are on the true front.

How much of the true front each method finds after $k$ truth evaluations (the hypervolume found over the true front’s), for three reference points – the first lenient on the loss, the last asking for a loss under 5% and a 99th percentile within about 7 blocks:

Reference (loss, p99, util) Method 1 2 4 8 16 32 64
0.5, 30,000, 1 proxy 0.77 0.77 0.86 0.86 0.86 0.93 0.93
  pysim 0.75 0.82 0.92 0.97 0.98 0.99 1.00
  random 0.21 0.37 0.52 0.71 0.81 0.92 0.96
0.1, 30,000, 1 proxy 0.34 0.34 0.60 0.60 0.60 0.61 0.61
  pysim 0.44 0.57 0.81 0.83 0.91 0.92 0.99
  random 0.09 0.17 0.27 0.47 0.63 0.78 0.88
0.05, 15,000, 1 proxy 0 0 0.34 0.35 0.35 0.35 0.35
  pysim 0 0.12 0.66 0.67 0.82 0.86 0.995
  random 0.02 0.03 0.07 0.20 0.38 0.58 0.75

A constrained question: the least loss with at most half the part and a 99th percentile within two blocks (4,166 cycles). The true answer is 1.24% (a 16 × 16 array, two systolic units, one vector unit, 16 credits). pysim finds it in 4 truth evaluations. The proxy’s best is 2.97%, at every budget. Random search finds no design meeting the constraints at all in 98% of orders after 2 evaluations, 50% after 16, 4% after 64, and its median best is 2.97%.

What each costs, in the units of the stand-in: a truth evaluation is 208 s of RTL simulation (at the assumed 5,000 cycles a second); pysim’s whole sweep of 408 designs took 1,835 s of CPU, the price of about 9 truth evaluations. So:

  • pysim: 1,835 s + 4 × 208 s = 44 minutes for two-thirds of the strict front and the constrained optimum; with 64 confirmations, 4.3 hours for all of it;
  • random: 64 evaluations, 3.7 hours, for three-quarters of the strict front and a constrained best 2.4 times the optimum’s loss;
  • proxy: nearly free, and stuck: the designs it proposes never include catch-up, more credits or a deeper ring, because a per-block analysis sees no need for them.

pysim against truth. Despite truth’s biases and its hidden 8-lane limit, pysim ranks the designs nearly as truth does (Spearman 0.98 on the loss, 0.97 on the 99th percentile), with truth’s 99th percentile a median 10% above pysim’s, and 18 of truth’s 22 front designs are on pysim’s front. What pysim gets wrong is levels; what the method needs is the order.

The true front (all with one 512-bit bank):

Array Systolic, vector $R$ Credits Catch-up Loss p99 (cycles) Util
8 × 8 2, 1 4 4 off 9.16% 5,619 0.20
8 × 8 2, 2 4 16 on 3.47% 8,638 0.20
8 × 8 4, 1 4 4 off 8.66% 3,457 0.26
8 × 8 4, 1 4 16 on 1.73% 7,291 0.26
8 × 8 4, 1 8 16 on 0.74% 13,237 0.40
16 × 16 2, 1 4 16 off 1.24% 3,711 0.50
16 × 16 2, 1 4 16 on 0.25% 4,908 0.50
16 × 16 2, 1 8 16 on 0.00% 6,999 0.50
16 × 16 4, 1 4 16 off 1.73% 2,583 0.97

(and 13 more between these). Every parameter moves along it – the array, both pools, the ring’s depth, the credits, catch-up – and catch-up trades latency for loss: it recovers missed edges, and the jobs it adds for them wait.

A second workload, and a cost axis that counts every resource

The same benchmark on the timing workload without pulsing episodes (dse/sweep.py --workload no_pulse), and with the cost as the sum of the DSP, URAM and LUT fractions rather than the largest (bench.py --cost sum; its reference 2), so the ring’s depth costs too. At the strict reference (loss 5%, p99 15,000 cycles), the fraction of the true front found:

Workload, cost Front Method 1 2 4 8 16 32 64
pulsing, max 22 proxy 0 0 0.34 0.35 0.35 0.35 0.35
    pysim 0.70 0.70 0.81 0.82 0.83 0.86 0.995
    random 0.02 0.03 0.07 0.20 0.38 0.58 0.75
pulsing, sum 21 proxy 0 0 0.38 0.39 0.39 0.39 0.39
    pysim 0.77 0.77 0.87 0.91 0.92 0.97 1.00
    random 0.04 0.06 0.10 0.26 0.44 0.63 0.78
no pulsing, max 25 proxy 0.27 0.27 0.64 0.64 0.64 0.64 0.64
    pysim 0.76 0.92 0.97 0.99 0.99 0.995 1.00
    random 0.10 0.19 0.33 0.55 0.74 0.87 0.94
no pulsing, sum 18 proxy 0.25 0.25 0.68 0.71 0.71 0.71 0.71
    pysim 0.72 0.89 0.97 0.996 0.996 0.998 1.00
    random 0.13 0.24 0.38 0.60 0.76 0.87 0.93

(The pulsing rows’ pysim scores differ a little from the first table’s: pysim’s order spreads its front by hypervolume contribution, which depends on the reference point.)

  • The ranking of the methods holds on both workloads and both cost axes: pysim finds most of the front in a handful of truth evaluations; random search needs tens; the proxy stops short.
  • The proxy does better without the pulsing (0.64 to 0.71 against 0.35 to 0.39): with arrivals spread out, a per-block analysis is closer to the truth. It still stalls, because it never proposes catch-up, more credits or a deeper ring.
  • The front moves with the workload: without pulsing it leans to the 16 × 16 array (17 of 25 designs) and catch-up is on in fewer of its designs (7 of 25), as there are fewer missed edges to recover.
  • With the summed cost the ring’s depth counts: 18 of the pulsing front’s 21 designs take $R = 4$. A four-bank design appears on each summed front, but only as the cheapest design of all, at 96% loss: the bank width is still not a real trade.

The blind control: an agent without pysim

A fresh agent, with no tools (so no access to this repository’s results), was given what a designer has before any timed simulation: the system as described on these pages, each block’s time alone, the workload’s statistics (job rates, the largest bursts, emitter lengths, the pulsing episodes), the costs, the space and the objectives. It was asked for the 16 designs it would evaluate, in order (dse/blind/run1_designs.txt). Scored exactly as the other methods, on the pulsing workload:

Cost, reference Method 1 2 4 8 16
max, (0.5, 30,000) blind agent 0.56 0.84 0.84 0.87 0.96
  pysim 0.75 0.82 0.92 0.97 0.98
max, (0.05, 15,000) blind agent 0.58 0.67 0.67 0.77 0.985
  pysim 0.70 0.70 0.81 0.82 0.83
sum, (0.05, 15,000) blind agent 0.54 0.61 0.61 0.69 0.95
  pysim 0.77 0.77 0.87 0.91 0.92

The agent did about as well as pysim. It reasoned out what matters: one bank, because the one adaptor front makes four 128-bit banks one slow port; catch-up and 16 credits in nearly every design; the 16 × 16 array at the knee. Its first design is truth’s zero-loss design (0.00% at half the part). pysim leads up to 8 evaluations; at 16 the agent’s spread of designs covers the strict front better. It reached the constrained optimum (1.24%) only with its 15th design.

Its numbers were wrong where pysim’s were not. It predicted a 99th percentile of about 1,000 to 1,300 cycles at its best points and 1 to 3% loss; truth gives 2,583 to 8,430 cycles and 0 to 1.7%. Its order of the designs was good, its levels poor – the reverse of pysim’s errors. A requirement on the latency (a p99 within two blocks) is where that shows: the agent’s own designs meet it only with catch-up off, which it proposed last.

This is not yet a fair test of the hypothesis, and it errs in the agent’s favour:

  • The brief carried what pysim found. It was written after the study, so it explained the one adaptor front (found at RTL), the pending state and what catch-up does. The space itself is post hoc: catch-up is a parameter only because pysim found the blind time. An agent at the start had neither.
  • One agent, one run. Agents vary; this needs several runs and several briefs.

A fair version gives the agent the brief as it stood before the timed study – arch.md and timing.md at their first versions, the per-block analysis that recommended four banks – and a space that includes the options a designer would have thought of then. It then has to find the blind time itself, as pysim did. That is the next control to run.

The fair blind control

The same agent setup, given the brief as a designer had it before the study: each of the ring’s banks its own crossbar port (as arch.md said before the RTL found the one adaptor front), and catch-up described only as what it does, not what it is for (dse/blind/run2_prestudy_designs.txt). Beside it, the pysim-guided method with the pre-study pysim (--model pysim0: per-bank ports), so both start from the same knowledge, and truth keeps the shared front as a hidden effect. Pulsing workload:

Cost, reference Method 1 2 4 8 16
max, (0.05, 15,000) blind, pre-study 0.02 0.04 0.26 0.85 0.96
  pysim, pre-study 0.70 0.70 0.81 0.82 0.83
sum, (0.05, 15,000) blind, pre-study 0.07 0.11 0.28 0.78 0.88
  pysim, pre-study 0.77 0.77 0.87 0.91 0.92
max, (0.5, 30,000) blind, pre-study 0.03 0.03 0.85 0.95 0.99
  pysim, pre-study 0.75 0.82 0.92 0.97 0.98
  • The pre-study pysim scores exactly as the post-study one. Every design on its front has one bank, where per-bank ports and one front are the same, so the RTL’s finding never reached the method’s choices. (Over all designs its ranking agrees less with truth, Spearman 0.80 on the loss against 0.98, all of it in the four-bank designs.)
  • The agent, without the study’s findings, still found the design: one 512-bit bank (its 316-cycle read against 1,228 is reason enough without the shared front), catch-up and 16 credits, each design tried with catch-up on and off. It starts with the two most expensive designs, so it scores little at one or two evaluations; by 8 it is level with pysim or ahead, and by 16 ahead on the max cost. It finds the constrained optimum by its 8th design; pysim by its 4th.

What this says about the hypothesis. On this problem, as posed, a capable agent reasoning from the per-block table and the architecture gets as far as the pysim-guided method for the same number of RTL runs, once it has 8 or more. pysim’s advantage is at small budgets (one to four RTL runs), in its levels – the agent’s latency predictions were 2 to 6 times low, pysim’s 10% – and in finding a constrained optimum fast. The scripted pysim method is also the naive one: it proposes its own front and never learns from the truth runs it pays for.

So the question to test is not “pysim or an agent” but “an agent with pysim, against the same agent without it”, on problems where reasoning from per-block numbers is hard: interactions no table shows, quantitative requirements (a latency bound, a power budget) where levels matter, and larger spaces. That is the next experiment.

An agent with pysim, against the same agent without

Two more runs on the pre-study brief: run 3, blind again (it was meant to carry the simulator’s table but was sent without it, an error of the planning session’s), and run 4, the same brief plus the pre-study pysim’s predictions for about a hundred of the 408 designs (dse/blind/run4_prestudy_with_pysim_designs.txt; the rows were abridged by hand, with the results known, a possible bias). The strict reference, pulsing workload:

Cost Method 1 2 4 8 16
max blind (run 2) 0.02 0.04 0.26 0.85 0.96
  blind (run 3) 0.02 0.02 0.65 0.83 0.93
  agent with pysim (run 4) 0.70 0.70 0.74 0.84 0.85
  pysim, scripted 0.70 0.70 0.81 0.82 0.83
sum blind (run 2) 0.07 0.11 0.28 0.78 0.88
  blind (run 3) 0.07 0.07 0.59 0.76 0.84
  agent with pysim (run 4) 0.77 0.77 0.80 0.91 0.94
  pysim, scripted 0.77 0.77 0.87 0.91 0.92

What pysim buys is the first RTL runs. With the simulator the agent’s first design covers 70 to 77% of the strict front; without it, its first designs are the most expensive ones and cover 2 to 8%. From about 8 runs the blind agents catch up, and on the max cost pass it: the agent with pysim followed pysim’s front, whose latencies truth’s hidden 8-lane limit raises, while the blind agents spread wider. Every agent run found the constrained optimum (1.24%) by its 8th design.

So the value of pysim depends on what an RTL run costs. If a run of the trace takes minutes, an agent can afford 16 and does about as well alone. If it takes hours – as a long trace of the whole design does in xsim – the budget is one to four runs, and there the simulator is the difference between 70% and 5% of the front. Part E of plans/aoa_devices_rtl.md measures that cost.

The budget score: the best design at each resource level

A score closer to how a design is chosen (bench.best_under_caps): the resource level is the largest fraction of any resource type the design uses, and at each level the score is the lowest p99 among the method’s designs that fit under it and lose at most 1%, with its lowest loss beside it. The method proposes $K$ designs without running RTL, using whatever cheap tools it has; the designs are then run (here in truth), and its best kept at each level. Nobody has to wait for an RTL run to answer.

$K = 4$ designs, pulsing workload (p99 in cycles; the lowest loss in brackets where no design meets 1%):

Method ≤ 0.25 ≤ 0.3 ≤ 0.5 ≤ 1.0
true best (all 408) (3.47%) (1.73%) 4,908 4,908
agent with pysim (3.96%) (3.96%) 4,908 4,908
blind, run 2 (3.47%) (3.47%) (3.47%) 8,430
blind, run 3 (3.71%) (3.71%) 6,999 6,999
pysim, scripted (3.96%) (3.96%) (1.24%) (1.24%)
random almost never meets 1%      

At $K = 16$ both blind runs reach 6,999 cycles at 0.5, 43% slower than the best; the agent with pysim has the best from its first 4. The 0.75 level adds nothing in this space: the DSPs step from one or two 16 × 16 arrays (0.5) straight to four (about 1). A richer space would make more levels count.

32 antennas: the bus width, the banks and the ports on the curve

With 16 antennas the sample word is 512 bits, one bank of the bus width holds it, and no resource level favours banking. With 32 antennas (an 8 × 4 array) the word is 1,024 bits, the widest an AXI bus may be, so the ring’s shape is a real choice (dse/wide.py, 768 designs, 512 that fit):

  • the bus: 1,024 bits (one bank), 512 (two), 256 (four), 128 (eight);
  • the banks behind one adaptor front (built) or a crossbar port each (not built: plans/aoa_wide_ring_calib.md);
  • the ring in URAM or BRAM (1 MB at $R = 4$);
  • a 16 × 16 or a 32 × 32 array (the latter 4,096 DSPs, nearly the part); pools, $R$, catch-up.

At 64 antennas (2,048-bit words) no design that fits keeps up – the search’s compute grows sixteenfold – so the memory never matters there. Three things are extrapolated and marked as such: the window at 256 and 1,024 bits (timed from the 512-bit record), the crossbar’s LUTs and FFs at other widths and port counts, and timing closure at 1,024 bits, extrapolated to fail at 4 ns (those designs are marked risky, and the results are given with and without them). The vector unit’s tail in these sweeps is the analytic 20 cycles; Part B measured 39 after they started.

The true front (300 blocks of the timing workload at 32 antennas, seed 1):

  Bus on the front Ports Best loss
with the 1,024-bit bus 19 of 29 at 1,024, 8 at 512 (two banks), 2 at 128 22 per bank, 7 shared 7.4%
without it 24 of 28 at 512 (two banks), 4 at 128 27 per bank, 1 shared 7.6%
  • The banks are on the curve when the wide bus is not available: without the 1,024-bit bus, the front is two 512-bit banks, almost all with a port each. Two banks behind one front read a block at half the rate of two ports, and lose 5 to 10 points more.
  • Narrow banks lose: at 128 bits a block’s read is over 2,000 cycles and the pools cannot keep up (95% loss); they reach the front only at its low-latency, high-loss corner.
  • URAM and BRAM tie at most levels: the DSPs bind.
  • The load is heavy: 1.22 searches a block, as the larger array detects more emitters. The best design still loses 7.4%, so the budget score with a 1% bound is empty at every level. A lighter workload is needed for it.

Without the pulsing (the same 768 designs on the no-pulsing timing workload, 1,536 more evaluations, wide.py --workload no_pulse), lossless designs exist and the budget score has levels. The lowest p99 at each resource level among designs losing at most 1%, in truth:

Level Best, the 1,024-bit bus allowed Best, without it
≤ 0.4 none none
≤ 0.5 8,932 cycles: 1 × 1,024 bits, one front, two 16 × 16 units, $R = 8$, catch-up 11,007: 2 × 512, a port per bank, two units
≤ 1.0 6,001: 1 × 1,024, four units 7,056: 2 × 512, a port per bank, four units

The front is all one bus width once the width is fixed: 27 of 27 designs at 1,024 bits with it, 21 of 21 at 512 (two banks, 20 with a port each) without it. pysim ranks the designs as truth does (Spearman 0.88 on loss, 0.89 on p99). With $K = 4$ the pysim-guided method has the 0.5 level’s optimum (8,932); it does not find the 1.0 level’s (6,001) even with 16, its best there 8,932. Random search finds any design meeting 1% at the 0.5 level in 0 to 7% of orders with 4 to 16 evaluations.

The hidden effect, again. Truth runs the 16 × 16 and 32 × 32 arrays at 8 lanes; the designer’s pysim does not know. On pysim’s front, 20 of 52 designs have the 32 × 32 array (13% loss); in truth they lose 30 to 62%, and none is on the true front. pysim ranks the designs as truth does all the same (Spearman 0.89 on loss, 0.92 on p99), and the pysim-guided method finds most of the front at once (scored as above, max cost):

Reference Method 1 2 4 8 16 32
(0.5, 30,000) pysim 0.81 0.89 0.96 0.97 1.00 1.00
  random 0.02 0.09 0.27 0.44 0.66 0.82
(0.25, 20,000) pysim 0.75 0.81 0.91 0.92 0.98 0.98
  random 0.04 0.05 0.07 0.14 0.29 0.53

The rerun on the measured model (v2)

Every 16-antenna sweep above, rerun (dse/cache/v2/) with the capture’s end of block, the vector unit’s tail and the controller measured at RTL, and the golden in SystolicEngine’s formats. No conclusion moves. pysim ranks the designs as truth does (Spearman 0.98 on loss, 0.97 on p99; without pulsing 0.96 and 0.99). The strict reference, the timing workload, the fraction of the true front found:

Method 1 2 4 8 16 32 64
pysim, scripted 0.72 0.72 0.74 0.78 0.79 0.99 1.00
pysim, pre-study (per-bank ports) 0.72 0.72 0.77 0.78 0.79 0.99 1.00
agent with pysim (run 4) 0.72 0.72 0.75 0.83 0.84    
blind agent, informed (run 1) 0.58 0.66 0.66 0.77 0.99    
blind agent, pre-study (runs 2, 3) 0.02 0.02-0.04 0.26-0.61 0.80-0.85 0.92-0.96    
random 0.02 0.03 0.07 0.20 0.38 0.58 0.74
per-block proxy 0 0 0.34 0.34 0.34 0.34 0.34

The budget score (the lowest p99 losing at most 1%, at each resource level), the timing workload: the true best at the 0.5 level is 4,069 cycles. pysim and the agent with pysim have it among their first 4 designs; the pre-study blind agents’ best there is 7,021 even with 16 (73% slower), or nothing at 4. Without pulsing, where every level has a lossless design (true best 7,532 / 6,080 / 3,385 / 2,596 at 0.25 / 0.3 / 0.5 / 1.0), pysim’s first 16 designs hold the optimum at three of the four levels and 7,614 at the first.

The 32-antenna space on v2 (dse/cache/v2/wide_*.jsonl): the same conclusions to a few cycles. Without the 1,024-bit bus the true front is two 512-bit banks, 26 of its 27 designs with a port each; without pulsing, the lowest p99 losing at most 1% is 8,934 and 6,003 cycles at the 0.5 and 1.0 levels with the 1,024-bit bus (8,932 and 6,001 on v1), 11,009 and 7,058 without it. pysim’s ranking against truth: Spearman 0.89 on loss, 0.92 on p99 (0.88 and 0.89 without pulsing).

pysim against RTL: the composition and its ranking

The benchmark’s truth is a stand-in for RTL. The RTL itself was run on the whole design (plans/aoa_devices_rtl.md, Part E; xsim 2025.1, 200 blocks of the timing workload at the block rate, the systolic units a stand-in timed as the analytic engine), on five designs chosen where the mechanisms differ:

# Design RTL p99 pysim p99 Misses, RTL / pysim xsim run / pysim
5 1 × 512, 4 + 2 units 1,904 1,901 0 / 0 61 s / 1.5 s
2 1 × 512, 2 + 2, catch-up off 2,492 2,503 0 / 0 54 s / 1.5 s
1 1 × 512, 2 + 2, catch-up (recommended) 2,769 2,775 0 / 0 44 s / 1.5 s
4 1 × 512, 1 + 1 3,711 3,711 0 / 0 44 s / 1.5 s
3 4 × 128, one front, 2 + 2 14,956 14,293 21 / 20 70 s / 2.6 s

pysim orders the five as the RTL does, by p99 and by misses (Spearman 1.0 on both). Over a design’s 306 results the decision times differ by a median of 2 to 3 cycles; the largest differences come from the order in which the shared front serves readers that arrive together. Its one level error is design 3, where the front is always busy and pysim’s runs about 4% light; it is still last in both.

RTL is cheaper than this page assumed. A 200-block run takes 44 to 70 s of xsim (about 30 to 45 times pysim’s), plus about 16 s to elaborate, on cached csynths. The truth oracle’s cost above assumed 5,000 cycles a second, about half the measured speed.

Short RTL runs against pysim on the long trace

A fair protocol lets every arm submit unverified designs and run short RTL simulations to check them, since a long trace at RTL is expensive. So how much does a short run tell? Truth (the stand-in for RTL, model v2) run on the first 50, 100 and 200 blocks of the same trace, every one of the 408 designs, against the 500-block truth; beside it, pysim on the whole 500:

Estimate Rank agreement with the 500-block truth: loss, p99 (Spearman) Its pick at level ≤ 0.5 (loss ≤ 0.25% in its own numbers), scored in truth
RTL, 50 blocks 0.87, 0.74 2.97% loss, p99 3,384 – catch-up off
RTL, 100 blocks 0.89, 0.78 1.24%, 3,723 – catch-up off
RTL, 200 blocks 0.96, 0.80 1.24%, 3,723 – catch-up off
pysim, 500 blocks 0.98, 0.97 0.50%, 4,069: the true best at this level – catch-up on

A short run is exact, but about the wrong thing. The loss is decided by rare events – the pulsing episodes, an episode about every 200 blocks, and the bursts. Over 50 blocks, 169 of the 408 designs lose nothing; over 500, 12 do. So the short runs see no reason for catch-up, prefer the designs without it (their latency is lower), and pick designs that miss 1.2 to 3% in the long trace. pysim, biased in level but run on the whole trace, sees the episodes, keeps catch-up, and picks the optimum.

So for this design the value of the pysim arm is not speed on a run the RTL arm also makes; it is that pysim can afford the long trace that the tail metrics need, for every design, where the RTL arm can afford it for a few. A short RTL run is still the right check of the composition (Part E’s), not of the statistics.

What this does not yet show

  • The bank width is still a single discovery: no design with four 128-bit banks is on the front, behind the one adaptor front the generator builds. Every good method must find it first. A part on which the 512-bit path is dear, or a 256-bit option, would make it a trade.
  • The cost axis: with the tightest resource, the DSPs bind at every front design and the ring’s depth is free; with the sum it counts (above). Which is right depends on what the design shares the part with.
  • The truth oracle’s errors are assumed, and the xsim speed. plans/aoa_devices_rtl.md measures both; the scores are then recomputed from the cache with the new values.
  • Two workloads. A lower load, or 16 channels, would move the front again.
  • Agents vary: two blind runs on the pre-study brief, one with pysim; a few more of each would give the spread.
  • The simulator’s table was abridged by hand for run 4, with the results known.