Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17253 Discusiones

$readmemh & parameter workaround?

Altera_Forum
Colaborador Distinguido II
1.679 Vistas

Hi, 

 

I am trying to use a parameter with $readmemh, for example: 

 

parameter rom_file = "data.txt" ... $readmemh(rom_file, rom);  

 

Which gives the error: 

 

Error (10853): Verilog HDL error at rom_single.v(31): argument 0 to $readmemh must be a string literal 

 

I would like to be instantiate the same ROM module multiple times with different files, so are there any suitable work arounds or solutions to the issue? 

 

I have seen this issue raised before, but no suitable workaround has been suggested 

 

Thanks, Matt
0 kudos
1 Responder
Altera_Forum
Colaborador Distinguido II
874 Vistas

Never mind, its been fixed in V11

Responder