Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
15323 Discussions

How to convert .mif to .hex for ModelSim-Altera?

RZhen11
New Contributor I
352 Views

Hi all,

I tried save as by Quartus. The resulting .hex seems pretty large. Although I don't really know how Intel .hex file format. Opening the .hex file shows correct contents in Quartus.

But ModelSim "mem load" command gives error:

# (vsim-3632) Illegal character ':' for radix 'hexadecimal' on line 1 of file "../../src_data/SingleCable.hex".

.mif head

RZhen11_0-1598277206255.png

Quartus save as .hex file head in hex editor

RZhen11_1-1598277303866.png

 

Please comment,

Thanks,

0 Kudos
3 Replies
sstrell
Honored Contributor III
342 Views

In Quartus, I would just open up the .mif, create a new .hex with the appropriate word size and length, and do a copy and paste.

#iwork4intel

Kenny_Tan
Moderator
314 Views
Kenny_Tan
Moderator
281 Views

We do not receive any response from you to the previous answer that we have provided. Please post a response in 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 with your follow-up questions. 


Reply