Forum Discussion
Altera_Forum
Honored Contributor
15 years agoLinker script and several SRAM components
Hi everyone, I've got a PCB with four SRAM modules which are connected to the NiosII cpu via a tri-state bridge. This gives me four components in the SOPC builder and in turn four sections in t...
Altera_Forum
Honored Contributor
15 years agoIf the physical addresses of the SRAM modules are adjacent, it ought to be possible to get is seen as a single memory area - and describe it in the linker script as a single area.
Alternatively you could mark some data with __attribute__((".bss.a")) (or similar - and I might have the syntax wrong!) so that the linker can split the .bss between the memory regions. I'm not sure whether the linker can split one section (eg .bss) between multiple memory regions.