cocotb
Write HDL testbenches in Python with async coroutines; works with Icarus, Verilator, GHDL and commercial simulators.
Intermediate
@cocotb.test()
async def counts(dut):
cocotb.start_soon(Clock(dut.clk, 10, "ns").start())
await ClockCycles(dut.clk, 5)
assert dut.count.value == 5
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.