Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTransferring data from a HDL to the Nios II processor
Hello, I have a HDL module which is connected to the Avalon bus as a slave component. The component has a FIFO with a length of 4096 * 32 bits values which the processor should read out perdiod...
Altera_Forum
Honored Contributor
14 years agoHi,
A1. The IORD macro ensures that you bypass any cache the CPU might have. Using a pointer might work correcly.. or not. A2. Yes, you can use DMA. The SGDMA core supports several use cases. You don't need to modify your component. The SGDMA core can peform a DMA while repeatedly reading from the same address. Another good option is to make your component have an Avalon-ST source interface and use the SGDMA core to copy data from the stream to memory. See the Embedded Peripherals User Guide.