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

Simulating MegaFunction ROM -- wrong path initialization file

Altera_Forum
Honored Contributor II
1,542 Views

I created a ROM MegaFunction using the MegaWizard and loaded an initialization .hex file. The path stored in the .v is a relative path. 

 

When simulating the design in ModelSim, I get the following error: 

 

# ** Warning: (vsim-3534) - Failed to open file "./sine_rom/RomSin15x14.hex" for reading.# No such file or directory. (errno = ENOENT) : C:/altera/11.0/modelsim_ae/win32aloem/../altera/verilog/src/altera_mf.v(792)# Time: 0 ps Iteration: 0 Instance: /sinegen_jig/sinegen_inst/RomSin_inst/altsyncram_component# ERROR: cannot read ./sine_rom/RomSin15x14.hex.# ** Warning: (vsim-7) Failed to open readmem file "./sine_rom/RomSin15x14.ver" in read mode.# No such file or directory. (errno = ENOENT) : C:/altera/11.0/modelsim_ae/win32aloem/../altera/verilog/src/altera_mf.v(44994)# Time: 0 ps Iteration: 0 Instance: /sinegen_jig/sinegen_inst/RomSin_inst/altsyncram_component  

 

Issuing "pwd" shows that the simulation directory is such that the relative path "./sine_rom/RomSin15x14.hex" is incorrect. 

 

If the .hex file were in the same directory as the quartus project file, then the this supposed bug would be masked, since Quartus II creates a copy of the .hex file in the simulation directory. 

 

Any suggestions to get around this without setting an absolute path or manually recreating the directory structure in the simulation directory?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
732 Views

hi goretkin, 

 

i also faced the same issue, 

just create sine_rom folder in your simulation directory and dump all the .mif there and simulate you wont get that error once again. 

 

regards 

charan
0 Kudos
Reply