1
0

Compare commits

..

1 Commits

Author SHA1 Message Date
6df42fc360 ml507: readmemh does not support dynamic paths on ISE 2018-05-01 00:10:15 +02:00

View File

@ -23,9 +23,6 @@ module {name}(
reg [{output_width_minus_1}:0] rom [0:{depth_minus_1}]; reg [{output_width_minus_1}:0] rom [0:{depth_minus_1}];
// 1024 is the maximum length of $readmemh filename supported by Cadence Incisive
reg [1024 * 8 - 1:0] path;
integer i; integer i;
initial begin initial begin
`ifdef RANDOMIZE `ifdef RANDOMIZE
@ -35,10 +32,7 @@ module {name}(
end end
`endif `endif
`endif `endif
if (!$value$plusargs("maskromhex=%s", path)) begin $readmemh("{rom_hex_file}", rom);
path = "{rom_hex_file}";
end
$readmemh(path, rom);
end end