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

Modelsim - specifying path to .hex file

Altera_Forum
Honored Contributor II
2,228 Views

We have some RAMs with .hex initialisation files. In the megawizard we just specify the name of the file with no path and then in quartus we simply add a search path in the .qsf to point to the directory containing the .hex files. Everything works fine and we can keep the .hex in a central, common location. 

 

The problem, or more like an inconvenience, arises in modelsim in that we have to copy the .hex files over to the working directory (or create a symbolic link) to make them visible to modelsim. 

 

Is anybody aware of a method of a more eloquent method rather than having to copy them over.  

Is there something similar in modelsim to the quartus search path? 

 

Thanks.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
1,189 Views

 

--- Quote Start ---  

We have some RAMs with .hex initialisation files. In the megawizard we just specify the name of the file with no path and then in quartus we simply add a search path in the .qsf to point to the directory containing the .hex files. Everything works fine and we can keep the .hex in a central, common location. 

 

The problem, or more like an inconvenience, arises in modelsim in that we have to copy the .hex files over to the working directory (or create a symbolic link) to make them visible to modelsim. 

 

Is anybody aware of a method of a more eloquent method rather than having to copy them over.  

Is there something similar in modelsim to the quartus search path? 

 

Thanks. 

--- Quote End ---  

 

 

Megawizard enters path from the ram module level. so make the relative path to mif same for quartus and modelsim. 

i.e. put mif files in a folder (let us call it rom_data) to be one level above ram module and run modelsim from a folder at same level as rom_data folder
0 Kudos
Reply