Intel: Is it possible to use a MIF file as the Initialize File for FPGA internal memory?
Category: Simulation
Tools: ModelSim®
device:-
ModelSim® cannot directly read MIF or HEX of Initialize File which is normally supported.
You need a DLL file (convert_hex2ver utility) to convert the format.
In Quartus® II v5.1 and later, the convert_hex2ver task was added to the altera_mf library and modified to import HEX files by loading the altera_mf library.
Therefore, even now, if the path of the HEX file is recognized by ModelSim®, a simulation that reflects the Initialize File can be performed without any special settings by the user.
Note that the above is for Verilog, VHDL is not a convert_hex2ver task, but a similar process is recorded in the altera_mf library.
On the other hand, for MIF, the convert_mif2ver task has been added to the altera_mf library since Quartus® II v9.0 in addition to the convert_hex2ver task. (VHDL is similar)
As a result, when performing RTL simulation with ModelSim®, the contents of the Initialize File will be reflected in the simulation results even if the MIF file remains unchanged.
Experienced FAE
Free consultation is available.
From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.