diff options
Diffstat (limited to 'playground/template_tb.v')
| -rw-r--r-- | playground/template_tb.v | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/playground/template_tb.v b/playground/template_tb.v new file mode 100644 index 0000000..8bef3a1 --- /dev/null +++ b/playground/template_tb.v @@ -0,0 +1,36 @@ +`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 |
