From d0a372c3112b28ff3b1bf03ff4a7a0e5a3cafe8e Mon Sep 17 00:00:00 2001 From: uvok Date: Tue, 30 Dec 2025 10:21:27 +0100 Subject: linting, use different naming use _tb.v instead of .tb.v, to stop verilator from shouting the module name doesn't match --- template_tb.v | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 template_tb.v (limited to 'template_tb.v') diff --git a/template_tb.v b/template_tb.v new file mode 100644 index 0000000..3526168 --- /dev/null +++ b/template_tb.v @@ -0,0 +1,37 @@ +`timescale 1us/1us + +module template_tb ( +); + +reg clk_i; +reg rst_i; + +template uut ( + .clk_i(clk_i), + .rst_i(rst_i) +); + +string filename; +initial begin +`ifdef DUMP_FILE_NAME + filename=`DUMP_FILE_NAME; +`else + filename="template.lxt2"; +`endif + $dumpfile(filename); $dumpvars(); + clk_i = 0; + rst_i = 1'b1; + +end + +always #10 clk_i = ~clk_i; + +initial begin + #13 + @(negedge clk_i); + + #100 + $finish(); +end + +endmodule -- cgit v1.2.3