Forum Discussion
Hello,
Data transfer between FPGA and HPS is critical and this is one of the benefits of having FPGA SoC devices. the transfer speed might vary based on your design requirements. the efficient way of transferring data from source to destination without loading the processor/controller/state-machine is the DMA. So with DMA, you can set the source address, destination address, and the amount of data, and thats it. DMA will do the magic for you.
mSGDMA is the advanced version of DMA. with mSGDMA, you can set multiple sources and multiple destinations with various sizes of data. You can refer to this video to show you the basic concepts of initializing this IP:
https://www.youtube.com/watch?v=iaRkjkpMBH8
This video is just a demo case, it used Nios II to control the mSGDMA and transfer the data from memory to memory inside the FPGA. In your case, everything should be the same, except the controller might be the HPS, and the destination might be the SDRAM bridge.
Thank you