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):
|
def prepSim(args, ElfFile):
|
||||||
flags = ""
|
flags = ""
|
||||||
if args.vcd:
|
if args.vcd:
|
||||||
args.args += " -DMAKEVCD=1"
|
args.params += " MAKE_VCD=1 "
|
||||||
if args.rvvi:
|
if args.rvvi:
|
||||||
args.params += " RVVI_SYNTH_SUPPORTED=1 "
|
args.params += " RVVI_SYNTH_SUPPORTED=1 "
|
||||||
if args.tb == "testbench_fp":
|
if args.tb == "testbench_fp":
|
||||||
|
@ -44,6 +44,7 @@ module testbench;
|
|||||||
parameter I_CACHE_ADDR_LOGGER=0;
|
parameter I_CACHE_ADDR_LOGGER=0;
|
||||||
parameter D_CACHE_ADDR_LOGGER=0;
|
parameter D_CACHE_ADDR_LOGGER=0;
|
||||||
parameter RVVI_SYNTH_SUPPORTED=0;
|
parameter RVVI_SYNTH_SUPPORTED=0;
|
||||||
|
parameter MAKE_VCD=0;
|
||||||
|
|
||||||
`ifdef USE_IMPERAS_DV
|
`ifdef USE_IMPERAS_DV
|
||||||
import idvPkg::*;
|
import idvPkg::*;
|
||||||
@ -230,10 +231,10 @@ module testbench;
|
|||||||
end
|
end
|
||||||
$finish;
|
$finish;
|
||||||
end
|
end
|
||||||
`ifdef MAKEVCD
|
if (MAKE_VCD) begin
|
||||||
$dumpfile("testbench.vcd");
|
$dumpfile("testbench.vcd");
|
||||||
$dumpvars;
|
$dumpvars;
|
||||||
`endif
|
end
|
||||||
end // initial begin
|
end // initial begin
|
||||||
|
|
||||||
// Model the testbench as an fsm.
|
// Model the testbench as an fsm.
|
||||||
|
Loading…
Reference in New Issue
Block a user