summaryrefslogtreecommitdiff
path: root/debounce.tb.v
diff options
context:
space:
mode:
Diffstat (limited to 'debounce.tb.v')
-rw-r--r--debounce.tb.v8
1 files changed, 7 insertions, 1 deletions
diff --git a/debounce.tb.v b/debounce.tb.v
index 6bf17fa..f95bd9b 100644
--- a/debounce.tb.v
+++ b/debounce.tb.v
@@ -17,8 +17,14 @@ debounce #(.STABLE_PERIOD(5)) uut(
.signal_o(signal_o)
);
+string filename;
initial begin
- $dumpfile("debounce.lxt2"); $dumpvars();
+`ifdef DUMP_FILE_NAME
+ filename=`DUMP_FILE_NAME;
+`else
+ filename="debounce.lxt2";
+`endif
+ $dumpfile(filename); $dumpvars();
clk_i <= 0;
rst_i <= 1'b1;