Forum Discussion
Altera_Forum
Honored Contributor
13 years agoCreate a PIO in your SOPC Builder / QSys project, and in the top level file in Quartus, connect this PIO port to the FPGA pins connected to the leds.
Then in your Nios II project you will have some macros to control the PIO port, defined in altera_avalon_pio_regs.h.