Forum Discussion
Altera_Forum
Honored Contributor
15 years agoTwo NIOS2 sharing the same SDRAM for instruction/data master
Hello i made a system using C and the memory program is around 2~4MB, it isn't going to fit inside an onchip memory, i am also using a second NIOS2 with Linux inside a 128MB sdram. How can i u...
Altera_Forum
Honored Contributor
15 years agoI designed a similar 2 CPU / 1 SDRAM system (not Nios) a few years ago.
So, you can surely design a system with two Nios processors and a single shared sdram device, but you must be aware of these points: - sdram accesses will be shared between the two processors, so the running applications could suffer great performance decrement; the actual performance will depend on several factors, i.e. number of sdram accesses, arbitration priorities and cache usage. - you must carefully instruct the linker to place memory sections into proper sdram areas in order to avoid overlapping and consequent data/code corruption. I think the first point is the major issure. I'd suggest you keep the more program code you can in onchip memory, along with stack and often-accessed data. Move into sdram only non time-critical parts and bulk data or seldom accessed data.