Forum Discussion

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

How to simulate SRAM with modelsim on a NIOS II system?

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

1 Reply

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

    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