Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20641 Discussions

Transfer data from HPS DDR3 to FPGA SDRAM and back using DMA

Altera_Forum
Honored Contributor II
1,918 Views

Hello, 

For several weeks, I tried to send data between memories but without any success. I'm using DE1-SoC board with Linaro Linux on SD card. Firstly I would like to run application which is on Altera site (https://www.altera.com/support/support-resources/design-examples/soc.html - HPS DMA) but I want to send data to sdram instead to On-chip-memory. I was looking for some another examples but there are nothing in the internet. Could someone help me with this? How to connect sdram and dma controller in Qsys? Whether the application code will be the same? Maybe someone has a working example, which would like to share?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
567 Views

 

--- Quote Start ---  

Hello, 

For several weeks, I tried to send data between memories but without any success. I'm using DE1-SoC board with Linaro Linux on SD card. Firstly I would like to run application which is on Altera site (https://www.altera.com/support/support-resources/design-examples/soc.html - HPS DMA) but I want to send data to sdram instead to On-chip-memory. I was looking for some another examples but there are nothing in the internet. Could someone help me with this? How to connect sdram and dma controller in Qsys? Whether the application code will be the same? Maybe someone has a working example, which would like to share? 

--- Quote End ---  

 

 

search for "msgdma" on this forum. There are two threads that go over this process quite well. I have a working system now, and several others on the forum do as well. The examples are posted in some of the other threads. Happy to help out if you need any other advice.
0 Kudos
Altera_Forum
Honored Contributor II
567 Views

I read some topics about msgdma and I made qsys configuration. I'm not sure if I did it well. Can you check if it is correct? 

 

If it is ok, how to send data from hps to sdram? In topic http://www.alteraforum.com/forum/showthread.php?t=50103 there is a piece of code but not all. It is kind of black magic for me :( 

Looking on this code... MAP_PIO_SIZE will be 0x001? The same code i must write to the descriptor? What with response? I generate hps_0.h and there are only csr and descriptor. 

 

Sorry for so many questions but its my first hps-fpga project and i am not good at it yet.
0 Kudos
Reply