Forum Discussion
Altera_Forum
Honored Contributor
8 years agoNIOS II Multi-Processor System's On-chip Memory
Hi, I was just wondering if anyone can help me in finding the answer of the following given question; Q. Suppose we have a NIOS II Multi-Processor System and all the processors are executi...
Altera_Forum
Honored Contributor
8 years agorizwanfazal
Here's the basic info. Look in the the GCC compiler & GNU linker documentation for the proper syntax & usage. 1 - Declare the shared array in your "C" code with something alike: char Array[???] __attribute__ ((section ("MySharedBuffer"))); 2 - In the linker script file, define the memory address & range occupied by the shared memory and assign the section: MEMORY { SH_MEM (rwx) : ORIGIN = 0x????? , LENGTH= ??K; .... } SECTIONS { MySharedBuffer : { *(MySharedBuffer) } > SH_MEM; ... } Regards