Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

Using the SDRAM

Altera_Forum
Honored Contributor II
1,659 Views

Hi, I'm having difficulty using the sdram of the DE0 board (I can also use DE1 and DE2). 

I need to write and read from the memory. 

 

I have searched and all I can found is about the SOPC Builder, but i need to do it with VHDL, not the SOPC. 

 

Please, I'm stuck in it long time, any help is appreciated. 

 

Thank You!
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
922 Views

what difficulty are you having?

0 Kudos
Altera_Forum
Honored Contributor II
922 Views

Let's say I don't know where to start. 

 

I thought it would be as simple as set an ADDRESS, set the DATA BUS and activate a write pin or read pin. 

 

Looking to the SDRAM pin assignments, there's a few pins I don't even know why are necessary. 

 

I'm really lost, that's why I need a help on how to start. 

 

I don't need a good performance, just being able to write and read from the memory.  

 

Thanks!
0 Kudos
Altera_Forum
Honored Contributor II
922 Views

if you DE2 board - Cyclone II EP2C35F672C6. Download the sample from the web and sgdma problem. I done this like hundred of times... write to sdram with DMA or SGDMA

0 Kudos
Altera_Forum
Honored Contributor II
922 Views

Do you need to share the memory with a CPU or are you writing your own design without any CPU? 

In the former case, you will need to go through SOPC builder or QSYS and write your own component with an Avalon Memory Mapped Master to access the memory. 

If you are doing your own design without CPU you could directry control the SDRAM pins but writing your own controller isn't easy. You can use the Megawizard to instantiate a controller that you will use in your own code, or again go through SOPC builder/QSYS.
0 Kudos
Altera_Forum
Honored Contributor II
922 Views

sean98007 (http://www.alteraforum.com/forum/member.php?u=47346), 

Thanks, I will take a look on that! 

 

daixiwen (http://www.alteraforum.com/forum/member.php?u=4443), 

Yes, I'm writing my own code, and can't use the SOPC builder. 

I'll need a controller, I really doen't know all I need to make my own controller, some time concerns, some pins.... 

 

I believe the Megawizard would be a good choice, but when I tried to use it, I was lost. There's a lot of configurations I didn't understood. 

The Megawizard don't have the preset for the DE0 memory, and by my own I don't know how to configure all that. 

If someone could give me a help configuring the Megawizard memory... 

 

Thanks!!
0 Kudos
Reply