Altera_Forum
Honored Contributor
8 years agoHow to define CPU ID in multiprocessor design based on NIOS II CPU?
Hi,
I have try this code in my NIOS code : printf("NIOS %d is waiting for control signal\n",ALT_CPU_CPU_ID_VALUE); I have implement 3 nios processor in my project. Why this ALT_CPU_CPU_ID_VALUE function always return 0 value? Each core always returned 0 values instead 1,2,3 ? it should be show this message : NIOS 0 is waiting for control signal NIOS 1 is waiting for control signal NIOS 2 is waiting for control signal However the fact , the message look like this : NIOS 0 is waiting for control signal NIOS 0 is waiting for control signal NIOS 0 is waiting for control signal Need for advice.. Thank you