fix off-by-1 math
This commit is contained in:
parent
1b304505cd
commit
f6cebc40fa
|
@ -26,7 +26,7 @@ module {name}(
|
|||
initial begin: init_and_load
|
||||
integer i;
|
||||
// 256 is the maximum length of $readmemh filename supported by Verilator
|
||||
reg [255*8:0] path;
|
||||
reg [255*8-1:0] path;
|
||||
`ifdef RANDOMIZE
|
||||
`ifdef RANDOMIZE_MEM_INIT
|
||||
for (i = 0; i < {depth}; i = i + 1) begin
|
||||
|
|
Loading…
Reference in New Issue