Skip to content
hw.dev
hw.dev/signal/retrobus-cocotb21-27-benches-2026
SignalRetrobus Explorer

A Cocotb Upgrade Cuts Two FPGA Test Suites by More Than Half

Retrobus Explorer's simulator upgrade makes a tested hardware flow substantially faster without changing when most tests finish.

Thesis connection

A faster simulator makes it practical to run more programmable-hardware checks before a change reaches a board.

#fpga#testing#verification#software
Read Original

Retrobus Explorer moved its field-programmable gate array (FPGA) tests to cocotb 2.1, a Python library for driving hardware simulators. All 27 test benches now pass with Verilator 5.054, including three that crashed on 5.028. This is an upgrade backed by enough evidence to trust, rather than a version bump followed by repairs after release.

The useful number is elapsed time. Its two microSD card simulation profiles fell from 42 and 22 minutes to 18 and 9 minutes. The project also compared 180 tests against cocotb 1.9.2. Of the 180, 167 ended at the same simulated time, while the remaining 13 differed by one 0.01 nanosecond step. That comparison checks both speed and behavior.

A test suite that takes 27 minutes instead of 64 can run on many more changes without making engineers wait an hour for feedback. Teams holding back a cocotb upgrade should copy this method: pin the simulator version, run the whole bench set, and compare simulated end times before switching the default.