fix off-by-1 math

This commit is contained in:
Mike Yang 2019-05-21 13:44:26 -07:00
parent 1b304505cd
commit f6cebc40fa
1 changed files with 1 additions and 1 deletions

View File

@ -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