Solution ID: rd10062000_9191
Last Modified: Feb 24, 2006
Product Category: None
Product Area: Other (None)
Product Sub-area: Other ( None )
Device Family: N/A
Title
How do I simulate an Altera library of paramameterized (LPM) memory requiring an initialization file in the ModelSim Altera Edition?
Description
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.
Feedback
Altera does not warrant that this solution will work for the customer's intended purpose and disclaims all liability for use of or reliance on the solution.
