Forum Discussion
Altera_Forum
Honored Contributor
15 years agoAssuming you are talking about the Cyclone (one) Nios dev kit the push buttons are active low (they have pull ups) and the LEDs are active high (they have pull downs).
So your logic should be: assign led = (!pin[0]) & (!pin[1]); or this using that law I learned in school but can't remember what it's called :) assign led = !(pin[0] | pin[0]);