Skip to content

Commit a4db40d

Browse files
fix faulty makefile
1 parent 670eda7 commit a4db40d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
# defaults
55
SIM ?= icarus
6+
FST ?= -fst # Use more efficient FST format
67
TOPLEVEL_LANG ?= verilog
78
SRC_DIR = $(PWD)/../src
89
PROJECT_SOURCES = tpu.v \
@@ -25,9 +26,11 @@ else
2526
SIM_BUILD = sim_build/gl
2627
COMPILE_ARGS += -DGL_TEST
2728
COMPILE_ARGS += -DFUNCTIONAL
29+
COMPILE_ARGS += -DUSE_POWER_PINS
2830
COMPILE_ARGS += -DSIM
29-
VERILOG_SOURCES += $(PDK_ROOT)/ihp-sg13g2/libs.ref/sg13g2_io/verilog/sg13g2_io.v
30-
VERILOG_SOURCES += $(PDK_ROOT)/ihp-sg13g2/libs.ref/sg13g2_stdcell/verilog/sg13g2_stdcell.v
31+
COMPILE_ARGS += -DUNIT_DELAY=\#1
32+
VERILOG_SOURCES += $(PDK_ROOT)/sky130A/libs.ref/sky130_fd_sc_hd/verilog/primitives.v
33+
VERILOG_SOURCES += $(PDK_ROOT)/sky130A/libs.ref/sky130_fd_sc_hd/verilog/sky130_fd_sc_hd.v
3134

3235
# this gets copied in by the GDS action workflow
3336
VERILOG_SOURCES += $(PWD)/gate_level_netlist.v
@@ -41,8 +44,8 @@ COMPILE_ARGS += -I$(SRC_DIR)
4144
VERILOG_SOURCES += $(PWD)/tb.v
4245
TOPLEVEL = tb
4346

44-
# MODULE is the basename of the Python test file
45-
MODULE = test
47+
# List test modules to run, separated by commas and without the .py suffix:
48+
COCOTB_TEST_MODULES = test
4649

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

0 commit comments

Comments
 (0)