Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
All support for Intel NUC 7 - 13 systems has transitioned to ASUS. Read latest update.
12577 Discussions

Nios2 and external Microcontroller together access a SDRAM

Altera_Forum
Honored Contributor II
1,101 Views

Hi all, 

 

My system consists of a microcontroller (TI Concerto Cortex M3) 

and a FPGA (altera cyclon IV E) and a SDRAM. 

The microcontroller connects only with FPGA(Address / data / control signals). The SDRAM is connected directly with the FPGA. 

 

I plan to: 

A portion of the SDRAM is reserved for Nios2 (Data and 

Instructionmemory), the remainder of the SDRAM 

is for the Microcontroller (Concerto). 

 

My question is, how can i achieve this? 

 

In this case i have 2 Avalon MM Masters, Nios2 (higher priority) and the external Microcontroller (lower priority), both access the SDRAM over SDRAM Controller IP. Which solution is the best for me? 

 

Thanks in advance! 

Tomy
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
210 Views

Leave the bus arbitration for the subsystem itself - it will do it automatically. However I hope You don't need speed, since sharing a memory bus slows down the system because of many wait requests...

0 Kudos
Altera_Forum
Honored Contributor II
210 Views

Hi Socrates, 

 

many thanks for your reply!:-) 

 

My Nios2 runs at 75Mhz, but this is not fixed. 

Is there an other solution besides the Avalon MM Master for me? Cant i tell the Qsys, let Nios2 higher priority, so that the Microcontroller must wait until ther Nios2 is done with SDR-SDRAM? 

 

thanks in advance! 

Tomy 

ps. sorry for my english!:(
0 Kudos
Reply