Forum Discussion
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
- KennyT_altera
Super Contributor
Hi,
Did you put the file into your testbenches?
Here is the source https://www.youtube.com/watch?v=gRzqcL1CwfE
Thanks
- Arief-AK
New Contributor
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.
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
Super Contributor
which version of Quartus Prime that you were using? Can you achieve and send me the design.qar?
- Arief-AK
New Contributor
I am using Quartus Prime Lite Edition version 22.1. As requested I have sent you the .qar in private message.
- KennyT_altera
Super Contributor
Can you check your email? I did not receive your design.qar files.
- KennyT_altera
Super Contributor
Hi, is there any update base on the request above?
- KennyT_altera
Super Contributor
Somehow in the email, I still did not receive attachment. I will setup a call with you next week.
- KennyT_altera
Super 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.