1
0
Fork 0

ml507: readmemh does not support dynamic paths on ISE

This commit is contained in:
Klemens Schölhorn 2018-05-01 00:10:15 +02:00
parent 4ba8acb4aa
commit 6df42fc360
1 changed files with 1 additions and 7 deletions

View File

@ -23,9 +23,6 @@ module {name}(
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;
initial begin
`ifdef RANDOMIZE
@ -35,10 +32,7 @@ module {name}(
end
`endif
`endif
if (!$value$plusargs("maskromhex=%s", path)) begin
path = "{rom_hex_file}";
end
$readmemh(path, rom);
$readmemh("{rom_hex_file}", rom);
end