Altera_Forum
Honored Contributor
15 years agoDMA problem
Hi,
I'm transfering data (video frames) from sdram to component i build (using sopc component editor) by DMA controller. For each transaction the DMA transfers one frame line, data is then sent to LCD. In the beginning of each frame i'm asserting IRQ to nios (from a component i build just for the purpose of asserting IRQs). The control over the DMA from software seems to be weak. I can't control the timing of DMA transactions. When i'm using HAL commands, the DMA response is much slower then when using IOWR commands, but transfering the correct data. the problem is, that this way, DMA response is much too late. When I'm using IOWR, the DMA response is very good, but transfering the wrong data, seems like DMA transfers data from wrong address. my questions: 1) How can I de-activate the interrupt signal in software? (the component that is asserting the IRQ is "user defined") Is there a way of controlling specific signals in my component by IOWR commands? 2) How can i access the "readyfordata" signal from software (I mean from the nios side)? What way do i have to control the DMA beside "readyfordata" signal? Any help is appreciated :)