Forum Discussion
Altera_Forum
Honored Contributor
11 years agomemory collision between NiosII and HPS Linux
Dear all, Would you please give me some suggestion? Now, I could accessing DDR of HPS and already create a NiosII to touch the same memory via Pipeline bridge and address extender...
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.