Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
724 Views

modelsim megawizard dpram no output

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
Highlighted
Valued Contributor III
2 Views

Re: modelsim megawizard dpram no output

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
Highlighted
Valued Contributor III
2 Views

Re: modelsim megawizard dpram no output

 

--- 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
Highlighted
Valued Contributor III
2 Views

Re: modelsim megawizard dpram no output

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
Highlighted
Valued Contributor III
2 Views

Re: modelsim megawizard dpram no output

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