Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Yes, I had the DMA drivers work in one direction, but not the other. Whatever I tried, no luck. Look in the Quartus Handbook DMA chapter (google for altera nios dma). The registers are explained there. You have a status register, read and write address, length and some control bits. you program them like you did with your periereal: IOWR(AVALON_0_BASE,reg,val); Adresses and length should be obvious. You only need to select the correct control bits. --- Quote End --- Ok. thanks! I will try it now. I am trying to transfer from peripheral to sdram. if this works, then i think it should be enough. your code is transferring from peripheral to mem or mem to peripheral?