Forum Discussion

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

SDRAM controller in Nios Design

Hi,

I have a basic doubt. In the Nios design, what SDRAM controller do we use? Do we use the simple SDRAM controller or DDR3 SDRAM controller with UNIPHY? What is the difference between the two and how do we decide which to select?

Thanks.

5 Replies

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

    The memory controller selection is driven by the components populated on the hardware you are using. If you're using a board with DDR3, you use the DDR3 IP. If you're using a board with traditional single data rate SDRAM, use the SDRAM controller.

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

    I see. So my board has a DDR3, so thats that.

    Also, Where can I find how to make the pin-connections required for the sdram controller?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Are you using a development board? They generally have a "golden top" reference design that gives you a sample pinout with most interfaces connected. The interfaces are quite flexible so you can pinout identical to the development kit, or if you have your own board, just use this as guidance.

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

    --- Quote Start ---

    I see. So my board has a DDR3, so thats that.

    Also, Where can I find how to make the pin-connections required for the sdram controller?

    --- Quote End ---

    I wrote a couple of example designs; one for SDRAM on the DE0-nano board and one for DDR3 on the BeMicro-CV board. Synthesize the designs and read the scripts and notes. They have all the information you are looking for.

    Look at de0_nano_sdram.zip:

    http://www.alteraforum.com/forum/showthread.php?t=45927

    Look at bemicro_cv_examples.zip:

    http://www.alteraforum.com/forum/showthread.php?t=43992

    Cheers,

    Dave