Forum Discussion
Altera_Forum
Honored Contributor
15 years agoCan't Read Data from Custom componet (Avalon mm)
I had associated a custom component (A variation of the DCFIFO example available in AN 473) to my NIOS 2 System. I use the Avalon MM (Slave) Interface whit the current signals: Readdata (32bits...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Which DMA controller is it? Altera provides drivers with C functions that you can use to configure the DMA. --- Quote End --- It's altera avalon DMA. Configuration of SOPC is shown in the figure. Can I access it like this, (where IMM_x, is the image of my custom made design) --- Quote Start --- alt_dma_txchan txchan; void* tx_data_to = IMM_X_BASE; //is it correct??????? alt_dma_txchan_ioctl(txchan, ALT_DMA_SET_MODE_32, NULL); alt_dma_txchan_ioctl(txchan, ALT_DMA_TX_ONLY_ON, tx_data_to); alt_dma_txchan_ioctl(txchan, ALT_DMA_RX_ONLY_OFF, NULL); --- Quote End ---