Altera_Forum
Honored Contributor
16 years agoEthernet & DMA
The hardware I'm currently working on has an KSZ8842 ethernet chip.
At the moment, we are reading the packets directly from the chip via software. Obviously this would be better done in hardware. I thought a simple DMA channel would be the best solution. Looking at the DMA documentation, it seems the psudo code would be: 1. Wait for packet start interrupt. 2. Read from the ethernet chip how many bytes are in the packet 3. Start the dma controller reading. 4. Wait for the dma complete interrupt. 5. Pass complete packet to the ip stack. Is this correct? Is there a way for the dma controller to automatically do 1,2 & 3?