From be1eb8bcc06a2577ca3993f984c7bff9ca3e05fe Mon Sep 17 00:00:00 2001 From: uvok Date: Sun, 28 Dec 2025 13:41:34 +0100 Subject: tb: Add dumpfilename macro --- template.tb.v | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'template.tb.v') diff --git a/template.tb.v b/template.tb.v index f781e4a..a633fcb 100644 --- a/template.tb.v +++ b/template.tb.v @@ -11,8 +11,14 @@ template uut( .rst_i(rst_i) ); +string filename; initial begin - $dumpfile("template.lxt2"); $dumpvars(); +`ifdef DUMP_FILE_NAME + filename=`DUMP_FILE_NAME; +`else + filename="template.lxt2"; +`endif + $dumpfile(filename); $dumpvars(); clk_i <= 0; rst_i <= 1'b1; -- cgit v1.2.3