Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module debouncer(
- input CLOCK_50,
- input button,
- output reg out
- );
- reg toCounter;
- reg [19:0] count;
- always @(posedge CLOCK_50)
- count <= count + 1'b1;
- always @(posedge count[19])
- out <= button;
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement