Forum Discussion
Altera_Forum
Honored Contributor
17 years agoLED/Debouncing problems
Hello All, I am trying to test LED/debouncing logic for basic gates. Following is my code module ledtesting ( input clock, input A, input B, output C, output D, output E, out...
Altera_Forum
Honored Contributor
17 years agoSorry for not being clear,
When i press one of the push buttons for a good amount of time (enough time to be debounced), led1 (which is suppossed to work as an and gate) lights on instead of led2 similarly led3 (supposed to work as a NAND gate) lights off instead of led4 being off. When i press both the push-buttons led1 and led2 turns on and led3 and led4 turns off (which is correct behaviour). Thus it seems like AND,OR logic are switched, NAND,NOR logic are switched as seen on the LEDs. The push-buttons have been pressed for a good amount of time so that i can see some effect on the leds.