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++

Shared Bus

Altera_Forum
Honored Contributor II
979 Views

Hi, 

 

I'm trying to make a shared bus between 2 NiosII cores on a Stratix II fpga. Basically, I have a streaming application that does some processing on the first core and then passes the data to the second core for further processing and output. I can get this to work if I just use a shared memory component between the two processors.  

 

Since this is for a research project however, I also need to make it work using a simple shared bus between the two processors. I call it a shared bus because it needs to be scalable to 3 processors and beyond (once we go past 2 Ps, there should be contention on the bus).  

 

Does anyone have some suggestions on how I should go about doing this? 

 

Thanks.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
309 Views

 

--- Quote Start ---  

originally posted by mesh_guys@Jan 12 2006, 10:36 PM 

i'm trying to make a shared bus between 2 niosii cores on a stratix ii fpga.  basically, i have a streaming application that does some processing on the first core and then passes the data to the second core for further processing and output.  i can get this to work if i just use a shared memory component between the two processors.   

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12155) 

--- quote end ---  

 

--- Quote End ---  

 

 

Yes, that&#39;s probably the most natural way to do that for Nios II... 

 

 

--- Quote Start ---  

originally posted by mesh_guys@Jan 12 2006, 10:36 PM 

since this is for a research project however, i also need to make it work using a simple shared bus between the two processors.  i call it a shared bus because it needs to be scalable to 3 processors and beyond (once we go past 2 ps, there should be contention on the bus).   

 

does anyone have some suggestions on how i should go about doing this? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12155) 

--- quote end ---  

 

--- Quote End ---  

 

 

If I understood, you want to build a multiprocessor system where there is a shared bus where all the CPUs contend for the shared memory... Basically if you connect all the CPU to an onchip memory with a single port you probably get the contention you want for the access to the shared data because SOPCBuilder will build an arbiter to resolve the contention to the memory from all the CPUs... 

 

However you&#39;ll probably not get everything you want because istruction fetches and local data will probably go on other paths (SOPCBuilder basically generates a crossbar switch to connect CPUs and peripherals/memories...) 

 

Paolo
0 Kudos
Reply