Forum Discussion

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

ROM and associated .mif

When I generate a ROM and specify the memory intialisation file location, the .hex location is written into the vhdl relative to where the project is being run from NOT relative to where the ROM vhdl presides.

init_file => "../../ROM/HEX/expr1024x32.hex",
and

-- Retrieval info: PRIVATE: MIFfilename STRING "../../ROM/HEX/expr1024x32.hex"
If I move the project directory will it loose the .mif? I've tried changing the reference to be relative to the where the ROM vhdl and that seems to work.

Any advice on how Quartus determines the location of the initailisation file much appreciated.

1 Reply

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

    Hey i am working in project and want to inisilize my RAM with in image using an mif file but so far i did not understand where to put the file to be read in my vhdl programme,

    whene i initialise the RAM with value like 0 or 1 or .... it work but with file txt it does not work,

    so can you show me hw to use an mif file ....

    thank's