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 SRAM with modelsim on a NIOS II system?

Altera_Forum
Honored Contributor II
1,814 Views

Hello all, 

 

I'm working on my own NIOSII custom board. My board has a SRAM, Flash and SDRAM memories. 

 

My question is: 

 

what is the process to obtain a sram simulation model for my testbench in modelsim? 

 

For the SDRAM, I use the altera SDRAM controller and I selected the simulation model checkbox in the component editor so it is ok, but for the SRAM and the FLASH which are on the same tristate avalon bridge I can't select any option to create simple SRAM or FLASH simulation models. I created SRAM and FLASH avalon controllers with component editor option (just added avalon interface for both memories in fact).  

 

I saw that there is a simulation model checkbox option for the provided SRAM controller from Altera dev kits, is it possible to retreive a simple SRAM vhdl model for my own SRAM or do I need to code it from scratch? 

 

Thank you in advance for any help on that topic. 

 

Regards, 

-Pierre
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
777 Views

Hello Pierre, 

 

for the DDR2 HP controller, Altera supplies also "simple" functional simulation models, probably not for SDRAM. I used manufacturer models(e. g. Micron RAM or Spansion Flash) with previous simulations. 

 

Regards, 

 

Frank
0 Kudos
Reply