Forum Discussion

Arief-AK's avatar
Arief-AK
Icon for New Contributor rankNew Contributor
1 year ago

Initialising RAM instance with (.mif)

Hello,

Attached is snapshot of my system and configurations of the RAM instance.

What I'm trying to do:

Initialise contents of RAM instance (sram256) with simple binary values with a .mif. The .mif has a width 12 and depth 256.

Problem:

I assume that data from .mif would be shown as `data` in RTL simulation but it does not.

Am I missing something here?

Any reply will be much appreciated.

Thanks in advance.

Arief.

8 Replies

    • Arief-AK's avatar
      Arief-AK
      Icon for New Contributor rankNew Contributor

      Hi @KennyTan_Altera

      Thanks for the reply and the source.

      Unfortunately I have no luck with your suggestion.

      It may be useful to note that I am using the Questa RTL simulator and not modelsim, however, I do not think that this is significant.

      Continuing to solve the issue, I have performed the following suggestions from the following forums.

      What's wrong with my .mif

      RTL Simulation cannot find MIF

      Attempts:

      1. I am confident that the formatting of either the .mif/.hex file is correct.

      2. I am confident that Questa can "read" the .mif/.hex file, as no error output is shown in the compilation messages in Questa

      3. I have also experimented with placing the 'sram256.qip' and the `.mif` files in the same directories, as shown below:

      • Project top-level
      • Memory directory (project_dir/memory)
      • Simulation directory (project_dir/simulation/questa)

      Still no luck from the suggestions.

      Any other suggestions are appreciated.

      Thanks in advance.

  • KennyT_altera's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper Contributor

    which version of Quartus Prime that you were using? Can you achieve and send me the design.qar?

    • Arief-AK's avatar
      Arief-AK
      Icon for New Contributor rankNew Contributor

      I am using Quartus Prime Lite Edition version 22.1. As requested I have sent you the .qar in private message.

  • KennyT_altera's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper Contributor

    Can you check your email? I did not receive your design.qar files.


  • KennyT_altera's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper Contributor

    Somehow in the email, I still did not receive attachment. I will setup a call with you next week.


  • KennyT_altera's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper Contributor

    I have attempted to contact you but you were unavailable. As we do not receive any response from you on the previous reply that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.