Altera_Forum
Honored Contributor
20 years agolinker script and dual port memories
Hi everybody,
that's probably a simple question, basically I cannot find where to look at: I have a design with a CPU that has an instruction master and a data master. First case ------------ there is a dual ported onchip ROM memory, with two slaves s1 and s2. - s1 is connected to the CPU instruction master, - s2 is connected to the CPU data master. - system library properties specifies .text should go into s1 The automatically generated linker script has this relevant informations: on the MEMORY part, onchip_rom_cpu_2_s1 : ORIGIN = 0x00800020, LENGTH = 65504 onchip_rom_cpu_2_s2 : ORIGIN = 0x00800020, LENGTH = 65504 on the SECTIONS part, there is: .exceptions : { .... } > onchip_rom_cpu_2_s2 .text : { .... } > onchip_rom_cpu_2_s1 =0x3a880100 /* NOP on Nios2 (big endian) */ Question: - why the exceptions section is located onchip_rom_cpu_2_s2 --> is it a data port! Second case --------------- there is a dual ported onchip ROM memory M1, with two slaves M1_s1 and M1_s2. there is another onchip rom memory M2 - M1_s1 and M2 are connected to the CPU instruction master, - M1_s2 is connected to the CPU data master. - system library properties specifies .text should go into M1_s1 M1 appears before (or after, it is the same) M2 in SOPCBuilder in this case, exceptions goes to M2, .text goes to M1_s1 Questions: - is there a way from the system library dialog box to say that .exceptions should go in a particular section? Thanks again for all the support, Paolo