Forum Discussion
Altera_Forum
Honored Contributor
11 years agoWhy AND gate not working?
I'm new to FPGA and using Altera Cyclone 3 Starter Board. I'm trying to turn on Led by using the AND gate with two buttons. Weird things happen, the AND gate acted like the OR gate. The led turned on...
Altera_Forum
Honored Contributor
11 years agoWhat is the logic state of the keys when you are not pressing them?
What logic value do you need to drive to the LED to turn it on? I am guessing the keys are logic 1 when they are not pressed, and you need to supply logic 0 to turn on the LED. So when you press the key, the AND gate output becomes false and the LED turns on.