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
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

How does NiosII communicate with other FPGA blocks

Altera_Forum
Honored Contributor II
1,250 Views

Hi,  

 

I am designing a simple CPU+FPGA application. The FPGA has data bus 

for setting registers, one at a time. The data bus includes  

inputs: TSData[15:0]  

Addr [3:0] 

TSDataRdy 

TSControl 

TSControlValid 

output: TCdata[15:0] 

TCDataRdy 

TCControlRdyToAccpet 

So, in SOPC, what's the best way to set up the CPU external interface 

for talking to FPGA? Should I use PIO or some exsiting memory controller? 

 

Thanks a lot,
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
559 Views

Hi, 

 

I think you can use user interface logic. 

You can write the proper timing logic between avalon and user interface and add to the SOPC.
0 Kudos
Altera_Forum
Honored Contributor II
559 Views

Hi,  

 

Maybe a simple question.  

 

How can I make avalon bus available to custom logic module? 

Should I choose a component from SOPC builder? Which one? 

 

Thanks!
0 Kudos
Altera_Forum
Honored Contributor II
559 Views

As I know you need not to add any component called Avalon bus since SOPC Builder by default does all the connections to cpu thru Avalon. You know what all signals you need to connect to Avalon signals. Make an HDL entity where you interface Avalon signals with ur user logic. And add the HDL file of this interface as a new component in SOPC Builder. Read "Avalon Bus Specification" for details on what all signals you require for interfacing with Avalon.

0 Kudos
Altera_Forum
Honored Contributor II
559 Views

Use component editor (PIO is too simple for most external interfacing). If your interface uses non-Avalon timing add some extra logic to conform to the standard (see the Avalon Bus Spec). If your interface goes off chip and runs at a significantly high speed I recommend re-syncronizing the signals with registers.

0 Kudos
Altera_Forum
Honored Contributor II
559 Views

Thanks, I found the right document to follow.

0 Kudos
Altera_Forum
Honored Contributor II
559 Views

Thanks for everyone&#39;s replies. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif

0 Kudos
Reply