diff options
| author | uvok | 2025-12-30 10:21:27 +0100 |
|---|---|---|
| committer | uvok | 2025-12-30 10:21:27 +0100 |
| commit | d0a372c3112b28ff3b1bf03ff4a7a0e5a3cafe8e (patch) | |
| tree | 633ac83187da0a244d081e124d4cfba5c2b712c1 /template_tb.v | |
| parent | 613e0e72128d7745ab084f2f703984e154c75d67 (diff) | |
linting, use different naming
use _tb.v instead of .tb.v,
to stop verilator from shouting
the module name doesn't
match
Diffstat (limited to 'template_tb.v')
| -rw-r--r-- | template_tb.v | 37 |
1 files changed, 37 insertions, 0 deletions
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 |
