mif modelsim
Solution
The ModelSim tool does not support the memory initialization file (.mif) format and requires you to generate a .hex file as specified in 1430.html. Once you have the initial memory contents specified in the .hex format, please note the following:
If you are simulating in a VHDL environment, the ModelSim tool will automatically reference the .hex file you have created and no additional steps are required.
If you are simulating in a Verilog environment, the ModelSim tool requires an additional .dll file that is included with the Quartus II software. To use this .dll file, please take the following steps:
Open the modelsim.ini file (Make sure to open the copy that the ModelSim tool is currently using. If you have a modelsim.ini in your project directory, that file will be used.)
Search for the following lines:
; List of dynamically loaded objects for Verilog PLI applications
; Veriuser = veriuser.sl
Remove the semicolon (
from the "Veriuser" line and point to the location of the .dll file as follows:
Veriuser = \eda\mentor\modelsim\convert_hex2ver.dll
Save the changes, close the. INI file and re-start the ModelSim tool.
Note: if you are unable to save the changes, please make sure to change the permissions on the modelsim.ini file from the Properties menu.