Forum Discussion

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

How to Simulate ROM Megafunction in Altera-Modelsim

Hi,

Could any one help me out on how to simulate ROM Megafunction,

Actually I tried both by generating .hex as well .mif format , but I couldnot get the results.

It is a single port ROM ,

With clock , address and q as signals,.

When I simulate I see the outputs (q) to be zero every where. Is there any procedure to follow to read the actual values ??/

Hope any one respond and help me out ..

Thanks,

Srinath.

3 Replies

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

    A possible reason is that your initialisation isn't read. If so, it could be seen from a simulation warning. Generally *.hex is required for ModelSim, and must reside in ModelSim project directory, that's where the modelsim.ini and *.hdp project files are located. The ROM content can be examined also in simulation memory window.

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

    Hi,

    Thanks for the reply...

    My results are up ....

    Thanks a lot for the immediate reply..
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi.

    I like to read and write data to SSRAM on the board .

    Could you please help me what are the timings that I should maintain for that ?

    Is there any document explaining how to do ??

    I am using Nios II Evaluation Board (Cyclone III EP3C25F324N6) ,

    I am stuck , s please provide me the information

    Thanks ,

    Srinath.