Forum Discussion
Altera_Forum
Honored Contributor
10 years agoI'd definitely put in a mutex, hardware lock, or something similar. The problem that you'll run in to is that you are using DMA on the NiosII, which will continue running, regardless. What are you trying to accomplish by having the Nios DMA write data at the same time as the HPS? You could always create two memory spaces, one as a sink for the DMA data, and one as a place for the HPS to write data to.
You'd bsaically then have reserved memory for the Nios in the linker of the HPS to have some read-only space. Otherwise things really do get complicated, quick.