Forum Discussion

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

Simulate SDRAM

Hi,

I wish to test my design which uses

1. multipliers

2. DDR2 controller

3. SDRAM

I will be reading data inputs from the SDRAM, multiplying it, and storing it back into the SDRAM. I use Quartus.

How can I simulate this code?

Thanks

4 Replies

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

    Hi,

    You will need a simulation model of the SDRAM in your top level testbench.

    There are some good SDRAM simulation models available on the micron website.

    Just navigate to the prouct page that you best suits your need and there should be a download link to a Verilog model (VHDL In some cases I believe)

    (http://www.micron.com/products/partdetail?part=mt48lc128m4a2p-75) For example

    Hope this helps
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you are using SOPC builder in your project then the job is pretty easy. During parametrization of SDRAM controller core , the SOPC builder asks whether to generate simulation model/not. If you check that option, It will generate a simulation model for you. :)

    Except that you need to alter the array size in the simulation model. The array name could be MarcGoucherons variable, which denotes the SDRAM Physical size when using Modelsim Altera version.

    Change this array size to 65536 and it works!:)