mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
VCD support in all simulators
This commit is contained in:
parent
d5159d35a2
commit
783b81f8b8
2
bin/wsim
2
bin/wsim
@ -78,7 +78,7 @@ def elfFileCheck(args):
|
||||
def prepSim(args, ElfFile):
|
||||
flags = ""
|
||||
if args.vcd:
|
||||
args.args += " -DMAKEVCD=1"
|
||||
args.params += " MAKE_VCD=1 "
|
||||
if args.rvvi:
|
||||
args.params += " RVVI_SYNTH_SUPPORTED=1 "
|
||||
if args.tb == "testbench_fp":
|
||||
|
@ -44,6 +44,7 @@ module testbench;
|
||||
parameter I_CACHE_ADDR_LOGGER=0;
|
||||
parameter D_CACHE_ADDR_LOGGER=0;
|
||||
parameter RVVI_SYNTH_SUPPORTED=0;
|
||||
parameter MAKE_VCD=0;
|
||||
|
||||
`ifdef USE_IMPERAS_DV
|
||||
import idvPkg::*;
|
||||
@ -230,10 +231,10 @@ module testbench;
|
||||
end
|
||||
$finish;
|
||||
end
|
||||
`ifdef MAKEVCD
|
||||
$dumpfile("testbench.vcd");
|
||||
$dumpvars;
|
||||
`endif
|
||||
if (MAKE_VCD) begin
|
||||
$dumpfile("testbench.vcd");
|
||||
$dumpvars;
|
||||
end
|
||||
end // initial begin
|
||||
|
||||
// Model the testbench as an fsm.
|
||||
|
Loading…
Reference in New Issue
Block a user