Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

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.

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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