How it works
Why Waveflow ends on the problem: when timing depends on the data, only a simulation of the whole design on long traces says whether it keeps up, and RTL simulation is far too slow to run on every design. Waveflow’s answer is one more model.
A calibrated simulator in the loop
pysim is a discrete-event simulation of the whole design (in Python, on SimPy). It moves the real data, bit for bit, through the same blocks, queues and memories as the hardware. Each block’s timing and resources come from models calibrated against that block’s own synthesis and RTL, in short runs, once per block. pysim then simulates every design on long traces in seconds.

The vendor tools stay in the flow: to calibrate each block, and to confirm the few designs that matter at the end. pysim also runs the hardware beside the rest of the system: a ray-traced channel (the RF environment), a host program, a processor model.
Why it pays: synthesis adds up, simulation multiplies
Synthesis and calibration are paid once per block configuration: every design reuses them. RTL simulation is paid once per design, and the number of designs is the product of the choices.

A search that simulates only some designs gains less: 2.1 to 3.1 times on the detector, because synthesis, the same with or without pysim, is most of what is left (Results and status).
Why its numbers can be trusted
A fast model is only useful if it gives the hardware’s answers. Three things make pysim’s checkable rather than assumed:
- Every layer is compared, word for word. A bit-exact golden (plain Python functions), pysim and the RTL are run on the same inputs. pysim must match the golden, and the RTL must match pysim word for word, on the real toolchain (Functional verification).
- Timing is calibrated per block, then composed. Each block’s timing is declared as phases between handshakes at its own ports, and fitted against its RTL in a harness generated from those ports. A design’s timing is composed from its blocks’ records, with nothing fitted to the design, and checked against the whole design’s RTL (Timing and resources). When a composition misses, the miss names what is not yet modelled. On the detector, 5 of 7 whole designs gave identical counts and a delay p99 within 10 cycles of the RTL’s.
- One source. Each block is described once in Python: its messages, its ports, its parameters and its behaviour. From that description come pysim, the message structs and the HLS top around the kernel’s own HLS body, the RTL testbench and the calibration harness. There is no second model of the design to drift out of step (Waveflow Architecture).
The building blocks for timing that depends on the data are part of the library, each with a bit-exact model, a pysim model, an HLS body and tests: arbiters and demultiplexers for a shared unit, a dispatcher for a pool of workers, credits that bound a loop, memory adaptors (Shared kernels).
What is built
| target | what it gives | status |
|---|---|---|
| pysim | the whole design in Python: bit-exact data, calibrated (cycle-approximate) timing, beside a channel, a host or a processor | built |
| csynth | each HLS top synthesized by Vitis HLS: resources and clock | built |
| RTL simulation | the whole design’s RTL under Vivado’s simulator (XSI), every testbench part as its C++ twin: cycle-exact | built |
| block design | each device and memory packaged as IP and wired with AMD’s crossbar in a validated Vivado block design: system resources | built (packaging and validation) |
| bitstream | the block design with the processor, the board and the real data converters | next (Toward the board) |
All of it is generated and run from Python, by a build graph whose steps (generate, simulate, synthesize, compare) re-run only when their inputs change. The supported toolchain is Vitis HLS and Vivado 2025.1 on AMD FPGAs and RFSoCs.
Going deeper. The guide is written for the agent that builds a design as much as for a person: Waveflow Architecture says what a design is made of, and the Flow Overview walks one design through every step.