Forum Discussion
Altera_Forum
Honored Contributor
8 years agoALT_CPU_CPU_ID_VALUE is nothing more than a# define in the "system.h" file of the BSP. It is not a function.
You will need to create a different a BSP project for each NIOS processor in your design. This will result in a different ALT_CPU_CPU_ID_VALUE in each BSP. Alternatively, connect a different System ID peripheral to each NIOS processor, with the value set to match the CPU ID. You can then read the value of the peripheral instead of using the# define. That way it will be a run-time calculated value, not a compile time value.