Forum Discussion
Altera_Forum
Honored Contributor
9 years agoFollowing Figure 1-1, the easiest and simplest way is to simply add (2) more PIO instances just like how the LED was handled. (one for your addr# 1 NIOS->peripheral, one for addr# 2 peripheral->NIOS).
Then connect the PIO top level "conduit" wires to your VHDL peripheral. Getting beyond a trivial example, you would want to google for the topic of creating Qsys "components". e.g. https://www.youtube.com/watch?v=v6rhbvablo8 https://www.altera.com/support/support-resources/design-examples/intellectual-property/embedded/nios-ii/exm-checksum-acc.html ftp://ftp.altera.com/up/pub/altera_material/13.0/tutorials/making_qsys_components.pdf