Skip to content

Commit 73f0064

Browse files
committed
chore(test): cocotb 2.0.0
1 parent db51ba3 commit 73f0064

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ COMPILE_ARGS += -I$(SRC_DIR)
3737
VERILOG_SOURCES += $(PWD)/tb.v
3838
TOPLEVEL = tb
3939

40-
# MODULE is the basename of the Python test file
41-
MODULE = test
40+
# List test modules to run, separated by commas and without the .py suffix:
41+
COCOTB_TEST_MODULES = test
4242

4343
# include cocotb's make rules to take care of the simulator setup
4444
include $(shell cocotb-config --makefiles)/Makefile.sim

test/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pytest==8.3.4
2-
cocotb==1.9.2
1+
pytest==8.4.2
2+
cocotb==2.0.0

test/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async def test_project(dut):
1111
dut._log.info("Start")
1212

1313
# Set the clock period to 10 us (100 KHz)
14-
clock = Clock(dut.clk, 10, units="us")
14+
clock = Clock(dut.clk, 10, unit="us")
1515
cocotb.start_soon(clock.start())
1616

1717
# Reset

0 commit comments

Comments
 (0)