I generated a User Flash Memory IP for a Max 10 device. In the wizard I chose to initialize the UFM from a user-defined file, which for simulation needs to be a .dat file.
However, I cannot figure out how to create such a file. I found something in the documentation for Nios II, but I do not use Nios II in my design. Is there other possibilities to create such a file?
Hi Julia, I have no idea how to generate .dat file nor i found information about format.
Quartus copy your .hex file to simulation directory and seems it is ok from modelsim.
If your file is .mif format, open with quartus "open file" then "save as" .hex, change on qsys.
When you launch modelsim, memory file is fetched from simulation directory.
Googling around the closest solution i found was this:
Please tell me back if this helped.
Thank for the reply.
Unfortunately it did not help. I use Aldec Riviera PRO and not Modelsim.
I created a hex file with the correct name and placed it together with the UFM IP, but the tool still complains that it cannot open the file.
The function seems to work in hardware, so I think I will just have to do without it in simulation.