diff --git a/verification/cocotb/common.mk b/verification/cocotb/common.mk index ed5f17c..6523f43 100644 --- a/verification/cocotb/common.mk +++ b/verification/cocotb/common.mk @@ -54,6 +54,11 @@ ifeq ($(SIM), vcs) COMPILE_ARGS += +libext+.sv +libext+.v COMPILE_ARGS += +warn=noIWNF,noPCWM-W COMPILE_ARGS += $(foreach dir,$(VERILOG_INCLUDE_DIRS),-y $(dir)) + + COMPILE_ARGS += -debug_access + COMPILE_ARGS += -top dump_vcd + VERILOG_SOURCES += $(I3C_ROOT)/verification/cocotb/common/dump_vcd.sv + EXTRA_ARGS += +dumpon endif COCOTB_HDL_TIMEUNIT = 1ns diff --git a/verification/cocotb/common/dump_vcd.sv b/verification/cocotb/common/dump_vcd.sv new file mode 100644 index 0000000..5035354 --- /dev/null +++ b/verification/cocotb/common/dump_vcd.sv @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: Apache-2.0 + +module dump_vcd; + initial begin + $dumpfile("dump.vcd"); + $dumpvars(); + end +endmodule