diff options
| author | uvok | 2025-12-28 15:24:54 +0100 |
|---|---|---|
| committer | uvok | 2025-12-28 15:24:54 +0100 |
| commit | 6db8308fd1897a38a4fc489437973ac8c8cee0ea (patch) | |
| tree | 1452892d18c071b15a5eea51ce2000ce089def48 /fifo.tb.v | |
| parent | 40245bbc8c364c4e1673332c9fcc243ede6dc264 (diff) | |
add fifo
Diffstat (limited to 'fifo.tb.v')
| -rw-r--r-- | fifo.tb.v | 34 |
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 |
