Skip to content

Commit

Permalink
Add VCD dumping
Browse files Browse the repository at this point in the history
  • Loading branch information
mgielda committed Dec 18, 2024
1 parent 51a77f4 commit 10e0f99
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions verification/cocotb/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions verification/cocotb/common/dump_vcd.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: Apache-2.0

module dump_vcd;
initial begin
$dumpfile("dump.vcd");
$dumpvars();
end
endmodule

0 comments on commit 10e0f99

Please sign in to comment.