Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPing-Pong Buffer with SGDMA
Hi, I would like to implement a SGDMA (stream-to-memory) to store blocks of sampled data in internal memory for signal processing. The implementation should be a PING-PONG-Buffer, so that one blo...
Altera_Forum
Honored Contributor
14 years agoDear BadOmen
thanks for the quick reply. I configured the DMA to get an IRQ after each descriptor completed, but the problem is, that I cannot find out in the ISR which descriptor caused the IRQ. I set the owned by HW bit and configured the DMA not to clear it (PARK bit set). You suggested to change this and manually restart the DMA in the ISR. But what if data arrives from the streaming interface before the ISR has restarted the DMA? Wouldn't this mean that data will be lost? Thanks Michael