Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
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.
21615 Discussions

two avalon buses in one FPGA tutorial?

Altera_Forum
Honored Contributor II
3,403 Views

Hi, 

 

I know it is possible to have multiple avalon buses in one FPGA, but how can I do it? 

somebody know where I can found a tutorial? 

 

Thanks, 

 

Sam
0 Kudos
12 Replies
Altera_Forum
Honored Contributor II
1,548 Views

What do you want to go exactly? If you just connect two separate masters to two separate slaves, then you will have two separate Avalon buses.

0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

 

--- Quote Start ---  

What do you want to go exactly? If you just connect two separate masters to two separate slaves, then you will have two separate Avalon buses. 

--- Quote End ---  

 

So 2 nios II proccesor and I have 2 Avalon buses?
0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

Yes... or no. 

If you connect your two Nios II processors to the same memory, for example, they will share a common bus. If you connect them individually to two separate memories, then you'll have two buses.
0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

So one nios II with the sdram and other nios II with de sram ? 

then I will have 2 busses?
0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

At a guess the sram and sdram interfaces share pins. 

So eventually there will need to be an arbiter of some sort.
0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

What I want is to use 1 nios II processor with 2 avalon busses. 

1 bus for the sram and other bus for the sdram. 

 

is this possible?  

if yes how?
0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

AFAIK the SRAM and the SDRAM don't share any pins, but the SRAM and the CFI flash do, on the kits that have a parallel flash. 

If you use only one Nios CPU it has only one data master, so it will share it between the two memories anyway. Why exactly do you absolutely want 2 buses?
0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

Also remember that the avalon 'bus' isn't like a normal cpu bus. 

It is 'slave arbitrated' - so there is an arbiter and mux in front of each slave that can be accessed by multiple masters. 

So two different masters can access two different slaves without there being any contention.
0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

But how can I make 2 avalon busses? 

I am a beginner in this dont understand it so good
0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

Perhaps you should explain what you are trying to achieve.

0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

I want a separate communication with the sram

0 Kudos
Altera_Forum
Honored Contributor II
1,548 Views

If you have two different Avalon masters (eg two different nios cpu) they can do bus cycles to different Avalon slaves at the same time. 

Arbitration only happens when two masters try to access the same slave at the same time.
0 Kudos
Reply