Skip to content

Commit

Permalink
[t1rocket] fix dump_wave call on non trace emulator
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Sep 3, 2024
1 parent dfe20f6 commit 1303315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t1rocketemu/src/TestBench.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class TestBench(generator: SerializableModuleGenerator[T1RocketTile, T1RocketTil
setInline(
s"$desiredName.sv",
s"""module $desiredName(output reg clock, output reg reset);
|`ifdef T1_ENABLE_TRACE
| export "DPI-C" function dump_wave;
| function dump_wave(input string file);
|`ifdef VCS
Expand All @@ -34,6 +35,7 @@ class TestBench(generator: SerializableModuleGenerator[T1RocketTile, T1RocketTil
| $$dumpvars(0);
|`endif
| endfunction;
|`endif
|
| export "DPI-C" function quit;
| function quit();
Expand Down

0 comments on commit 1303315

Please sign in to comment.