Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
769 Views

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.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor I
36 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.

Altera_Forum
Honored Contributor I
36 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?
Altera_Forum
Honored Contributor I
36 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!
Altera_Forum
Honored Contributor I
36 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.

Altera_Forum
Honored Contributor I
36 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
Reply