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.
14961 Discussions

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

Altera_Forum
Honored Contributor I
1,675 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 I
347 Views

keep asking for help

Altera_Forum
Honored Contributor I
347 Views

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

Reply