FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6355 Discussions

Scatter-gather DMA for tse

Altera_Forum
Honored Contributor II
1,652 Views

Hi everyone, 

 

I looked into reference designs about tse(triple-speed ethernet), and I found that all these tse applications are built around NIOSII with scatter-gather DMAs.  

 

My question is that if I just want to build a standalone tse (I'll use some simple control logic to program tse before sending/receiving packet), should I also include scatter-gather DMA into my design? And what's purpose of scatter-gather DMA? 

 

Thanks!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
227 Views

The purpose of DMA is to avoid loading cpu with the task of transferring rx and tx data when is needed: the sgdma will take care of that, by directly placing data to and from the memory.  

In the case of tse you can use it without sgdma but you need to connect it to a device with Avalon streaming interface in order to manage tx/rx data.
0 Kudos
Altera_Forum
Honored Contributor II
227 Views

If you put the TSE into 32-bit mode and connected the ST interfaces to FIFOs that support MM on one side and ST on the other you could manage the traffic using software. It'll be dog slow since the CPU will be directly in the data path. This would also require changes to the code which assumes there are SGDMAs moving the data around.

0 Kudos
Altera_Forum
Honored Contributor II
227 Views

Thanks a lot! Now I understand

0 Kudos
Reply