Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHow and when do you call the load_data functions on both processors?
You should protect access to the shared memory using a hardware mutex to be sure that you don't have both CPUs accessing the zone at the same time. You must also have a kind of synchronization between the two processes, maybe with a message exchange. Instead of using alt_dcache_flush_all you can use alt_remap_uncached on the pointer. It will make all memory accesses bypass the cache, and is better performance-wise than alt_dcache_flush_all that clears all the data cache. You should bypass the cache on the second processor too. Just a few pointers...