Forum Discussion
5 Replies
- Altera_Forum
Honored Contributor
You could do your counter in Verilog or VHDL and add it as a custom instruction to nios or a new component in Qsys.
- Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
You could also create a counter that has Avalon-MM slave and connect Nios II data master to it.
- Altera_Forum
Honored Contributor
--- 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... - Altera_Forum
Honored Contributor
Great example, thanks.