Skip to content
hw.dev
hw.dev/signal/fw-hdl-generated-wishbone-bridges-2026
SignalFeatherweight HDL

One Bus Model Generates Three Verified Test Interfaces

Featherweight HDL generates Wishbone bus bridges for SystemVerilog, plain test code, and Cocotb from one protocol model.

Thesis connection

One checked bus model can drive several verification environments without three teams maintaining the protocol timing separately.

#eda#testing#verification#tools
Read Original

The hardware description language (HDL) project Featherweight can now generate three ways to drive a Wishbone bus, a common open standard for connecting blocks inside a chip, from one protocol model. The generated outputs connect the model to a SystemVerilog testbench, plain SystemVerilog code with no Featherweight dependency, or Cocotb tests written in Python. A transactor, the adapter that turns a test operation such as read() into timed bus signals, no longer has to be rewritten for each environment.

The example sends 40 reads and writes through an initiator and target. It checks every request, response, data value, and bus phase under fixed timing and under zero to three random wait states. Deliberately broken initiator, target, and memory variants must fail. Featherweight also lowers the initiator to register-transfer-level (RTL) logic and proves that the generated logic is equivalent to the hand-written reference for every input sequence, rather than relying only on the 40 simulated transfers.

Generated verification code is valuable only when teams can trust the generator more than the wrappers it replaces. Here the same protocol model survives simulation, fault injection, and a mathematical equivalence check. A team with hand-maintained bus drivers should try one interface first and count how many protocol fixes currently have to be copied into multiple benches.