Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16916 Discussions

Initialising RAM instance with (.mif)

Arief-AK
Novice
377 Views

Hello,

 

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

AriefAK_0-1732028658382.png

AriefAK_1-1732028871341.png

 

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.

AriefAK_3-1732029261088.png

 

Problem:

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

 

Am I missing something here?

 

Any reply will be much appreciated.

Thanks in advance.

 

Arief.

0 Kudos
8 Replies
Kenny_Tan
Moderator
333 Views

Hi,


Did you put the file into your testbenches?



Here is the source https://www.youtube.com/watch?v=gRzqcL1CwfE


Thanks


0 Kudos
Arief-AK
Novice
290 Views

Hi @Kenny_Tan 

 

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.

0 Kudos
Kenny_Tan
Moderator
280 Views

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

0 Kudos
Arief-AK
Novice
264 Views

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

0 Kudos
Kenny_Tan
Moderator
242 Views

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


0 Kudos
Kenny_Tan
Moderator
180 Views

Hi, is there any update base on the request above?


0 Kudos
Kenny_Tan
Moderator
118 Views

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


0 Kudos
Kenny_Tan
Moderator
59 Views

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.



0 Kudos
Reply