summaryrefslogtreecommitdiff
path: root/playground/template_tb.v
diff options
context:
space:
mode:
authoruvok2026-01-09 15:18:23 +0100
committeruvok2026-01-09 15:18:23 +0100
commit6c83fd8730e55de8b1daaac1deb111d3d9bd408e (patch)
tree33a3dbc4fd87011b657b193224c3f39c5de6b766 /playground/template_tb.v
parent678cb2d2d752bbac7625ba9b287762b3acabf116 (diff)
move stuff around
Diffstat (limited to 'playground/template_tb.v')
-rw-r--r--playground/template_tb.v36
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