Update testbench, fix off by 1

This commit is contained in:
Byron Lathi
2023-10-18 08:40:00 -07:00
parent e621d4047b
commit 35d4ea968e
2 changed files with 18 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ always_ff @(negedge i_clk or posedge i_reset) begin
end
end
for (int i = 0; i < 31; i++) begin
for (int i = 0; i < 32; i++) begin
if (we[i]) begin
mm[i/2][(i%2)*8 +: 8] <= i_data;
end