Running it
cd examples/rf_shot_rx
python rf_shot_rx_build.py # default: --through csynth
python rf_shot_rx_build.py --through pysim # no toolchain needed
| rung | what it does | needs |
|---|---|---|
pysim |
runs the capture in SimPy and checks the windows concatenate into a contiguous ramp | — |
codegen_dut |
the ap_ctrl_none top and its tcl (and the absolute-index build’s, codegen_dut_abs) |
— |
csynth |
Vitis HLS C-synthesis, stamping the sources it was built from | Vitis HLS |
The RTL run is the system flow, traced, one system per build:
python -m examples.rf_shot_rx.rf_shot_rx_system_build # the default build
python -m examples.rf_shot_rx.rf_shot_rx_system_build --abs # absolute_index = 1
pytest -m xsi tests/examples/test_rf_shot_rx_xsi.py tests/examples/test_rf_shot_rx_abs_xsi.py
The system is rf_shot_rx_system(dut_cls) in rf_shot_rx.py, an
HwSystem(sim, dut) built from wire_rf_shot_rx(sim, ...)
(the parts RfShotRxTB holds). The DUT is the receiver with its memory, instantiated in the system
top as its wrapper, rf_shot_rx_top: the kernel plus its hand-written bram_t2p memory. The kernel has buf_w /
buf_r ports, and the wrapper joins them to the memory instance beside it, so the testbench sees
only AXI-Stream. The RFDC’s ADC model spans the cut, and the waveform the port checks read is the
wrapper’s scope inside the system top.
The reset trap is on the other side here
RfShotTx’s player writes before it reads and needs config_rtl -reset state. This design’s
owner is the capture, and it reads before it writes — its first act is a blocking stream read,
so it stalls at reset like any requester. The statics still carry #pragma HLS reset because they
are state a reset should clear; what they do not need is the solution-level setting TX needs.
That asymmetry is worth knowing before copying one build’s SOLUTION_CONFIG into the other.
There is no second scenario
TX drives two command bundles because a file-driven driver cannot read a verdict, so one stream cannot exercise both play modes. This design has no command stream at all — it captures continuously and answers per window — so one run exercises everything it does.
Next
- Taking it to RTL — the XSI run and every measured number.
- The design — the ports, the window header, the two rules.