--- Quote Start ---
I have a fifo outside my sopc system that is connected to a 8bits PIO in my sopc system.
I want to read this 8 bits from my PIO and write to a DDR memory. How should the code look like?
--- Quote End ---
The code will be very similar to the previous one.
The only difference being you need to read from a fixed address, i.e. the PIO base address: so you must set the RCON bit in the DMA control register.
As I remarked somewhere in this thread, you also need a signal to pop data out of the fifo for every dma read access.
Cris