Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12612 Discussions

SDRAM controller in Nios Design

Altera_Forum
Honored Contributor II
1,239 Views

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

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.

0 Kudos
Altera_Forum
Honored Contributor II
506 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
506 Views

Look at this Lab Manual for the BeMicro kit: http://www.alterawiki.com/uploads/5/5e/bemicrom10_embedded_system_lab.pdf 

In section 5.3.6 they show what connections are to be made for the SDRAM controller. Good Luck!
0 Kudos
Altera_Forum
Honored Contributor II
506 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
506 Views

 

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