Community
cancel
Showing results for 
Search instead for 
Did you mean: 
RZhen11
New Contributor I
190 Views

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

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,

Tags (1)
0 Kudos
3 Replies
sstrell
Honored Contributor II
180 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

KennyT_Intel
Moderator
152 Views

KennyT_Intel
Moderator
119 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