Altera_Forum
Honored Contributor
17 years agoSimulating ROM( MegaWizard Plug-in manager)
Hi,
I am trying to implement a system in VERILOG which uses ROM: 1-PORT from the MegaWizard Plug-in Manager. I want to simulate the system using Modelsim-Altera. I converted the .mif file to .hex file, and made changes in the megawizard created .v file to accept the .hex file as the memory initialization file. I ran a RTL-level simulation through Quartus- 7.2 ( web edition) to open the Modelsim window. I created a new project which uses the current modelsim.ini file. I compiled the altera_mf.v file and tried to simulate the top level. But it gives me errors like ** warning: (vsim-3534) [fofir] - failed to open file "memory_init.hex" for reading. # no such file or directory. (errno = enoent) : c:/altera/72/quartus/eda/sim_lib/altera_mf.v(785) After reading on the altera website, I inserted the line Veriuser=\eda\mentor\modelsim\convet_hex2ver.dll in the current modelsim.ini file. But it again gives me an error like Unable to find \eda\mentor\modelsim\convet_hex2ver.dll Where am i going wrong? Can anyone list the steps for simulating the ROM correctly? Thanks.