"""pytest wrapper: build axil_regs.sv with Icarus and run the cocotb tests in cocotb_axil_regs.py.""" from sim_runner import run_cocotb def test_axil_regs() -> None: n_tests, n_failed = run_cocotb(["axil_regs.sv"], toplevel="axil_regs", test_module="cocotb_axil_regs") assert n_tests == 4 and n_failed == 0, f"{n_failed} of {n_tests} cocotb tests failed"