FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5930 Discussions

DE0-Nano Tutorial for Nios II <-> Cyclone communication

Altera_Forum
Honored Contributor II
1,436 Views

I've seen a lot of tutorials for programming the FPGA on the DE0-Nano and for the Nios II but is there a tutorial for communicating between the two? ... Like adding a counter in FPGA and using that counter in Nios.

0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
314 Views

You could do your counter in Verilog or VHDL and add it as a custom instruction to nios or a new component in Qsys.

0 Kudos
Altera_Forum
Honored Contributor II
314 Views

https://www.youtube.com/watch?v=v6rhbvablo8 is a video that describes how to add custom components. It's made for a slightly older Quartus version, but it should be easy to figure out the differences. 

 

You will also need to understand how the Avalon bus works. That is what NIOS uses. After you have created your custom component, it will be added to the IP catalog and you can insert it into a Nios system.
0 Kudos
Altera_Forum
Honored Contributor II
314 Views

You could also create a counter that has Avalon-MM slave and connect Nios II data master to it.

0 Kudos
Altera_Forum
Honored Contributor II
314 Views

 

--- Quote Start ---  

https://www.youtube.com/watch?v=v6rhbvablo8 is a video that describes how to add custom components. It's made for a slightly older Quartus version, but it should be easy to figure out the differences. 

 

You will also need to understand how the Avalon bus works. That is what NIOS uses. After you have created your custom component, it will be added to the IP catalog and you can insert it into a Nios system. 

--- Quote End ---  

 

 

this example is fantastic...
0 Kudos
Altera_Forum
Honored Contributor II
314 Views

Great example, thanks.

0 Kudos
Reply