Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNew to NIOS
Hello all, I am a moderately experienced fpga programmer but brand new to NIOS. So, I have used SOPC to generate a NIOS II and designated onchip memory to go with it. From Eclipse I have ...
Altera_Forum
Honored Contributor
16 years agoFor that particular action, you're going to want to instantiate an output PIO, 1 bit wide (assuming 1 LED), and hook it up to your LED at the top level.
In your Nios II code, you'd just use a PIO macro to write a 1 or 0 to control the LED. Look at the count_binary example for a decent sample of how to do this. Cheers, --slacker