summaryrefslogtreecommitdiff
path: root/fifo.tb.v
diff options
context:
space:
mode:
authoruvok2025-12-29 17:21:58 +0100
committeruvok2025-12-29 17:21:58 +0100
commit3926d7bae115544dcdf11fa4435debd0cfdffa13 (patch)
treec7e74917add8e5abb0169a87d1e095c1dacfc355 /fifo.tb.v
parent0a4f9bf2fee4e5ebff9b797349e3a477a7013fdf (diff)
Fix fifo using memory, fix test bench
Diffstat (limited to 'fifo.tb.v')
-rw-r--r--fifo.tb.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/fifo.tb.v b/fifo.tb.v
index 58fc084..3238eba 100644
--- a/fifo.tb.v
+++ b/fifo.tb.v
@@ -38,14 +38,14 @@ end
always #10 clk_i = ~clk_i;
initial begin
- #10
+ #15
- for (integer run = 0; run < 2; run++) begin
+ for (integer run = 1; run < 3; run++) begin
write_i = 1;
for (integer addr = 0; addr < 10; addr++) begin
- data_i = addr + run;
+ data_i = (run << 4) | addr;
#20
;
end