Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Altera_mf.v error

Hi all,

i added in my design a PLL. i ran a simulation, and all worked fine.

when i tried to do synthesis, i got an error - "Error (10853): Verilog HDL error at altera_mf.v(43479): argument 0 to $readmemh must be a string literal"

here is the code refferd to:

`ifdef NO_PLI

$readmemh(lpm_file, mem_data);

`else

`ifdef USE_RIF

$readmemh(lpm_file, mem_data);

`else

mem.convert_to_ver_file(lpm_file, width, ram_initf);

$readmemh(ram_initf, mem_data);

`endif

`endif

many thanks,

David

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    figured out the problem - i removed the altera_mf file. i didn't know i need it only for the simulation.

    thanks.