Article ID: 000080275 Content Type: Troubleshooting Last Reviewed: 08/13/2012

Why are my memories not initialized correctly during simulation when using .mif files in ModelSim software?

Environment

  • Quartus® II Subscription Edition
  • Simulation
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    Description

    Due to a problem in the Mentor Graphics® ModelSim® software, user-created Memory Initialization Files ( .mif) which use the [A0..A1] : D0 D1 syntax may not be initialized correctly during simulation. This issue affects all versions of ModelSim software, including ModelSim SE and ModelSim-Altera Edition software. This issue does not affect synthesis.

    The [A0..A1] : D0 D1 syntax should result in data D0 being loaded into location A0 and data D1 being loaded into location A1. This pattern is then repeated for every 2 address locations within the memory. Due to this problem, data D0 will be loaded into both address locations A0 and A1.

    Resolution

    To work around this issue, avoid the [A0..A1] : D0 D1 syntax; data values for each address should be specified separately.

    The Memory Editor in the Quartus® II software does not use the [A0..A1] : D0 D1 syntax and can be used to reformat or create .mif. The Memory Editor uses A0 : D0 syntax to specify the memory contents for each address separately.

    More information on the .mif format can be found by searching for "Memory Initialization File" in Quartus II Help.

    This issue is scheduled to be fixed in a future release of all versions of the ModelSim software.

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices