Bazel rules that run cocotb Python testbenches against Verilog/SystemVerilog and VHDL modules.
The two public rules are:
cocotb_test— a Bazeltesttarget that pairs a Verilog/VHDL*_librarywith one or more cocotb Python sources, runs them under the simulator picked by the active toolchain.cocotb_toolchain— binds cocotb to one or morecocotb_*_simintegrations (Verilator, Icarus, GHDL, NVC, Questa/ModelSim, Riviera/Active-HDL, VCS, Xcelium, DSim, xsim).
Full documentation, end-to-end example, and per-simulator status are hosted at https://hw-bzl.github.io/rules_cocotb/.