Forum Discussion
Altera_Forum
Honored Contributor
21 years agoDMA
Hello I have problem with the DMA controller So, i have 2 memory and with the DMA i would like to transferer data from the first memory in the second. When i declare the DMA i have to p...
Altera_Forum
Honored Contributor
21 years agohttp://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif
Regards, I'm a beginner with DMA and I'm working with Nios I. I'm just doing this little test: reading data from external sram (a block of 64 positions) and writing it in a fifo (my user logic). My fifo is connected with Avalon in this way: FIFO --> AVALON SIGNAL ---------------------------------- ena --> chipselect } for writing data -->writedata wrreq --> write rdreq --> read clock --> clk aclr --> reset q --> readdata full --> export } it turns on a led The only problem is the first address of fifo, because when I read the data (with the traditional method, without DMA) written before with DMA, I get a zero in the first position (0) the first time I run the program. The next times, I get the value that it's supposed to be in the last position (63). I'm using nr_dma_copy_range_to_1. Any help? Thanks a lot!