Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

How to Simulate ROM Megafunction in Altera-Modelsim

Altera_Forum
Honored Contributor II
2,156 Views

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.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
990 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
990 Views

Hi, 

 

Thanks for the reply... 

 

My results are up .... 

 

Thanks a lot for the immediate reply..
0 Kudos
Altera_Forum
Honored Contributor II
990 Views

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.
0 Kudos
Reply