Fix Cadence Incisive compile errors; VCD-Plus is a VCS-only format
This fixes the following compile warnings and simulation errors: Compile-time warnings: $vcdplusfile(vcdplusfile); | ncelab: *W,MISSYST (/home/scottj/rocket-chip/vsrc/TestDriver.v,42|17): Unrecognized system task or function: $vcdplusfile (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)]. $vcdpluson(0); | ncelab: *W,MISSYST (/home/scottj/rocket-chip/vsrc/TestDriver.v,43|15): Unrecognized system task or function: $vcdpluson (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)]. $vcdplusmemon(0); | ncelab: *W,MISSYST (/home/scottj/rocket-chip/vsrc/TestDriver.v,44|18): Unrecognized system task or function: $vcdplusmemon (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)]. `VCDPLUSCLOSE | ncelab: *W,MISSYST (/home/scottj/rocket-chip/vsrc/TestDriver.v,89|20): Unrecognized system task or function: $vcdplusclose (did not match built-in or user-defined names) [2.7.4(IEEE Std 1364-2001)]. Which then become simulation-time errors: $vcdplusfile(vcdplusfile); | ncsim: *E,MSSYSTF (/home/scottj/rocket-chip/vsrc/TestDriver.v,42|17): User Defined system task or function ($vcdplusfile) registered during elaboration and used within the simulation has not been registered during simulation. $vcdpluson(0); | ncsim: *E,MSSYSTF (/home/scottj/rocket-chip/vsrc/TestDriver.v,43|15): User Defined system task or function ($vcdpluson) registered during elaboration and used within the simulation has not been registered during simulation. $vcdplusmemon(0); | ncsim: *E,MSSYSTF (/home/scottj/rocket-chip/vsrc/TestDriver.v,44|18): User Defined system task or function ($vcdplusmemon) registered during elaboration and used within the simulation has not been registered during simulation. `VCDPLUSCLOSE | ncsim: *E,MSSYSTF (/home/scottj/rocket-chip/vsrc/TestDriver.v,89|20): User Defined system task or function ($vcdplusclose) registered during elaboration and used within the simulation has not been registered during simulation. `VCDPLUSCLOSE | ncsim: *E,MSSYSTF (/home/scottj/rocket-chip/vsrc/TestDriver.v,97|20): User Defined system task or function ($vcdplusclose) registered during elaboration and used within the simulation has not been registered during simulation.
This commit is contained in:
parent
9f0fda01b3
commit
a919a280e8
@ -38,11 +38,17 @@ module TestDriver;
|
|||||||
end
|
end
|
||||||
|
|
||||||
`ifdef DEBUG
|
`ifdef DEBUG
|
||||||
|
|
||||||
if ($value$plusargs("vcdplusfile=%s", vcdplusfile))
|
if ($value$plusargs("vcdplusfile=%s", vcdplusfile))
|
||||||
begin
|
begin
|
||||||
|
`ifdef VCS
|
||||||
$vcdplusfile(vcdplusfile);
|
$vcdplusfile(vcdplusfile);
|
||||||
$vcdpluson(0);
|
$vcdpluson(0);
|
||||||
$vcdplusmemon(0);
|
$vcdplusmemon(0);
|
||||||
|
`else
|
||||||
|
$fdisplay(stderr, "Error: +vcdplusfile is VCS-only; use +vcdfile instead");
|
||||||
|
$fatal;
|
||||||
|
`endif
|
||||||
end
|
end
|
||||||
|
|
||||||
if ($value$plusargs("vcdfile=%s", vcdfile))
|
if ($value$plusargs("vcdfile=%s", vcdfile))
|
||||||
@ -51,8 +57,12 @@ module TestDriver;
|
|||||||
$dumpvars(0, testHarness);
|
$dumpvars(0, testHarness);
|
||||||
$dumpon;
|
$dumpon;
|
||||||
end
|
end
|
||||||
|
`ifdef VCS
|
||||||
`define VCDPLUSCLOSE $vcdplusclose; $dumpoff;
|
`define VCDPLUSCLOSE $vcdplusclose; $dumpoff;
|
||||||
`else
|
`else
|
||||||
|
`define VCDPLUSCLOSE $dumpoff;
|
||||||
|
`endif
|
||||||
|
`else
|
||||||
`define VCDPLUSCLOSE
|
`define VCDPLUSCLOSE
|
||||||
`endif
|
`endif
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user