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

SGDMA Descriptors not being set

Altera_Forum
Honored Contributor II
1,346 Views

So i am having difficulty getting with my SGDMA both sending and receiving. So from doing some debugging it looks like even after i call: alt_avalon_sgdma_do_sync_transfer(transmit_DMA, &transmit_descriptors[0]); the current descriptor or even the next descriptor of the DMA dose not change. i don't know what could be causing this. Attached is the debug window i get right after that call and the descriptors are clearly not set.  

 

what could be causing this?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
639 Views

It is difficult to see anything on your screenshot. Are the SGDMA's read and write Avalon masters connected to the correct memory, the one holding your descriptors? You could use signaltap to figure out what the SGDMA is doing and if it is waiting for something.

0 Kudos
Altera_Forum
Honored Contributor II
639 Views

right now the sgdma is connected to the main memory. should i have it connected to another memory?. I also have two more sgdma for the TSE_mac witch is connected to a descriptor memory witch work fine. should i have a third memory for the other sgdma?

0 Kudos
Altera_Forum
Honored Contributor II
639 Views

If your transmit_descriptors variable is also located in the main memory, then it should work. You can also place them in the TSE's descriptor memory if you want (just make sure you aren't using the first two positions, which are used by the TSE driver!) but then you will need to connect the two SGDMA descriptor masters to that memory.

0 Kudos
Reply