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 agotry this:
always @ (posedge slowclock)
begin
debounce1 <= debounce1;
debounce1 <= A;
out1 <= debounce1 == 4'hf ? 1'b1 : 1'b0;
debounce2 <= debounce2;
debounce2 <= B;
out2 <= debounce2 == 4'hf ? 1'b1 : 1'b0;
end