diff options
Diffstat (limited to 'testbench.vh')
-rw-r--r-- | testbench.vh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testbench.vh b/testbench.vh index 9838164..c60f66d 100644 --- a/testbench.vh +++ b/testbench.vh @@ -4,6 +4,12 @@ `define MAX_LINE_LENGTH 128 `define EOF 32'hFFFF_FFFF +`define STRINGIFY(x) `"x`" + +`define DUMPWAVE(m) \ + $dumpfile({`STRINGIFY(m), ".vcd"}); \ + $dumpvars(0, m); + task skip_comments(input integer file); integer c, r, quit; reg [8*`MAX_LINE_LENGTH:0] line; |