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

modelsim megawizard dpram no output

Altera_Forum
Honored Contributor II
1,066 Views

first change  

init_file => "./souce/memory.mif" in dpram_2200.vhd  

to absolute dir  

then run modelsim, 

you will find out that output :vector q are always 0,this is incorrect,for I have initialized some datas in mif.how to explain it? 

Details are in attchment.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
344 Views

Tools have their own mind. Modelsim does not like mif as far as i know. Go to quartus and save it as hex then come back to Modelsim

0 Kudos
Altera_Forum
Honored Contributor II
344 Views

 

--- Quote Start ---  

Tools have their own mind. Modelsim does not like mif as far as i know. Go to quartus and save it as hex then come back to Modelsim 

--- Quote End ---  

 

I have tried "hex file" before ,but it doesnt work as well
0 Kudos
Altera_Forum
Honored Contributor II
344 Views

Check modelsim compilation report if it sees the memory module and the hex file. Otherwise it will still report success but with memory as black box.

0 Kudos
Altera_Forum
Honored Contributor II
344 Views

Thanks. 

one warning in modelsim# ** Warning: Warning: READ_DURING_WRITE_MODE_MIXED_PORTS is assumed as OLD_DATA# Time: 0 ps Iteration: 0 Instance: /dpram_test_top_tb/uut/dpram_2200_inst/altsyncram_component 

 

photo 0f results in attachment
0 Kudos
Reply