Altera_Forum
Honored Contributor
13 years agoSGDMA and Shared memory
Hello All,
I'm trying to understand how can I share memory between a nios application and vhdl logic. I have a DE0 nano board which has an SDRAM I want to use. I can't use only on chip memory to store my nios application code so I need to use a part of the SDRAM. But, I need the SDRAM too to store stream of data coming from logic. These data need to be written by a logic block, then these data need to be accessible by Nios AND hardware logic block... It's very simple : one SDRAM block for nios application code. All the rest for data storage with access from vhdl logic and nios. I made many research and it seem's that SGDMA is the answer to do what I want. But I'm not familiar with this and it's pretty difficult for me to understand how to construct my system and how it can works... Particulary, this topic is really interesting for me because it's exactly the same functionnality I'm trying to do. But no enough information for me to understand what I need to do... ../forum/showthread.php?t=36448 (sorry for the truncated link but as a new member I can't post links...) Does I need one SGDMA core connecting with my Nios, another SGDMA core connecting in hardware ? Where do I need to write descriptors for nios AND for hardware access ? I find an SGDMA controller in SOPC / Qsys. But how to connect my hardware logic ? Any help will be appreciate. But please, be as clear as possible because I know nothing about all of these functionnalities. Many thanks in advance ! Fabrice.