summaryrefslogtreecommitdiff
path: root/fifo.tb.v
diff options
context:
space:
mode:
Diffstat (limited to 'fifo.tb.v')
-rw-r--r--fifo.tb.v34
1 files changed, 34 insertions, 0 deletions
diff --git a/fifo.tb.v b/fifo.tb.v
new file mode 100644
index 0000000..b948cf1
--- /dev/null
+++ b/fifo.tb.v
@@ -0,0 +1,34 @@
+`timescale 1us/1ns
+
+module fifo_tb (
+);
+
+reg clk_i;
+reg rst_i;
+
+fifo uut(
+ .clk_i(clk_i),
+ .rst_i(rst_i)
+);
+
+string filename;
+initial begin
+`ifdef DUMP_FILE_NAME
+ filename=`DUMP_FILE_NAME;
+`else
+ filename="fifo.lxt2";
+`endif
+ $dumpfile(filename); $dumpvars();
+ clk_i <= 0;
+ rst_i <= 1'b1;
+
+end
+
+always #10 clk_i = ~clk_i;
+
+initial begin
+ #100
+ $finish();
+end
+
+endmodule