Site Search

Altera®: When performing functional simulation of a design that includes memory (RAM/ROM) in ModelSim, what should be the initial value of the memory?

simulation

To perform a functional simulation of a design containing memory IP in ModelSim, do the following:

  1. Before running a simulation in ModelSim, create a memory initialization file (*.hex or *.mif) in Quartus II.
    File menu ⇒ New ⇒ Memory Files ⇒ Hexadecimal (Intel-Format) File or Memory Initialization File
  2. Save the Hex or Mif file from the Quartus II File menu ⇒ Save As.
  3. When creating a memory function using the Quartus II Tools menu ⇒ MegaWizard Plug-In Manager, specify the absolute path of the Hex or Mif file created in step 1 above in the Mem Init section of the Parameter Settings tab (step 1) to generate the file.
  4. Run functional simulations in ModelSim.
    Hex or Mif files are loaded automatically.

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.