I have a question regarding NIOS II processor. I have some situation where I have to send some allocated memory (By NIOS II software running on it) data to the hardware processing block. I am using on-chip memory as of now as the memory for NIOS II memory.
To get my work done I am thinking that, if I connect another Avalon Master port from my hardware block to the on-chip memory slave port, and then send the start of the memory address I want to copy, to the hardware block(maybe from custom instruction). Then the hardware block would read and write directly from on-chip memory. (Making sure that there are no concurrent access to the same memory locations)
Is there any complications doing this? have anyone tried this before?
Thank you for your kind reply and apologies for the delay. I have managed this through memcpy function in C and attaching a RAM module via avaoln memory-mapped bus.
DMA was a bit enefficient for mycase because the amount of data transfered is not big, so initiating DMA takes more time.