Forum Discussion
Altera_Forum
Honored Contributor
13 years agousing Dual Port Memory with simple Nios II Qsys system
Hi all, I created a Qsys system with an internal Onchip memory dual port RAM (internal port s1, and exported port s2) I would like to be able to write data from s2 (my test bench) and read data ...
Altera_Forum
Honored Contributor
13 years agoIf you are trying to do very specific assignments of code and data to specific memory blocks (eg because of the way they need to be dual-ported, or because you want all code and data accesses to by 'tightly coupled') then you'll almost certainly need to write your own linker script.
In particular, if you want the code to be 'pure' (ie contain no data), the .rodata (etc) will need to linked with the read-write data and not the code. You also can't use the Altera-built gcc4 as that puts switch statement jump tables directly into the code segment.