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

how to use modelsim-altera simulate rom with mif initial file

Altera_Forum
Honored Contributor II
2,883 Views

hi everyone: 

1. i use quartus 16.1 

2. i add a rom in my project, and use *.mif file to initial the rom 

3. in modelsim, the following error shows: 

Error: MIF contains illegal characterï 

i do not know what ï is  

i check the altera_mf.vhd in modelsim, it seems like the error comes from 

 

report "MIF contains illegal character" & m_line_buf(m_line_buf'low) 

 

but i can not figure out what m_line_buf(m_line_buf'low) is  

 

4. when i download my design to the board, it works , so i think the *.mif file is right
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,555 Views

keep asking for help

0 Kudos
Altera_Forum
Honored Contributor II
1,555 Views

Not sure if present Modelsim versions support *.mif format. I have always used *.hex initialization files in previous projects.

0 Kudos
Reply