Altera_Forum
Honored Contributor
16 years agoSG-DMA stream-to-memory with count and EOP
Hi,
I would like to know if it is possible to set up a stream-to-memory transfer for an SG-DMA controller, set the 'bytes_to_transfer' value in a descriptor to a non-zero value, and have the descriptor complete when either the specified number of bytes is transferred or an EOP signal is encountered. The documentation for the 'bytes_to_transfer' field in the descriptor says: "Specifies the number of bytes to transfer. If this field is 0, the bytes_to_transfer SG-DMA controller core continues transferring data until it encounters an EOP." (ref. Quartus II 8.1 Handbook, Volume 5, Table 21-10). However, it doesn't say whether EOP has any effect when 'bytes_to_transfer' is non-zero. I would like to set up a chain of descriptors to some memory blocks with the 'bytes_to_transfer' field set to the size of the memory blocks, and when an EOP occurs I would like the DMA transfer to continue with the following descriptor in the following memory block. Regards, Ian Abbott