Forum Discussion
Altera_Forum
Honored Contributor
16 years agoTrouble with creating multiprocessor Nios II system with shared memory
Hello, I have created a multiprocessor Nios II system with two cpus sharing on-chip memory to print to the console (JTAG UART). I used the Altera "Creating Multiprocessor Nios II Systems Tutor...
Altera_Forum
Honored Contributor
16 years agoAre all your Cpus trying to lock the mutex at the same time? Arbitration between different Avalon masters isn't always fair, and it could result in giving access to the same CPUs.
You could try and acquire the mutex through the altera_avalon_mutex_trylock() and wait a random number of cycles before trying again if it fails.