Run the minimal testbench¶
Start with the simulator-ready example in examples/stream_pipeline. One RTL
module reverses byte order inside VIDEO payload beats while forwarding CONTROL
and USER packets unchanged.
examples/stream_pipeline/
rtl/stream_pipeline.sv
simulation/
test_1/
config.py
test.py
run_test.py
test_2/
config.py
test.py
run_test.py
Run it from the repository root:
For Questa:
Each teaching project has its own StreamPipelineTest base class, which creates
AvalonSTSource and AvalonSTSink once per cocotb test. Three small subclasses
independently check CONTROL, USER and VIDEO packets against explicit expected
packets. The two projects intentionally duplicate this testbench code so they
remain standalone examples.
The Altera FIFO version uses the same three tests:
The second testbench enables USE_FIFO and selects altera_mf directly. No
component description or Platform Designer generation is needed. See the
tutorial for the complete flow.