works, but with high noises

This commit is contained in:
Imants Pulkstenis
2019-10-13 23:22:48 +03:00
parent c69d8b6ae5
commit 31f01e93b3
6 changed files with 49 additions and 44 deletions
+2 -1
View File
@@ -4,7 +4,8 @@ module debounce_switch(
output o_switch);
// parameter c_debounce_limit=250000;// 2.5ms at 25MHz
parameter c_debounce_limit=1_000_000;// 10ms at 25MHz
// parameter c_debounce_limit=1_000_000;// 10ms at 100MHz
parameter c_debounce_limit=100_000; // 10ms at 10MHz
reg r_state=1'b0;
reg [19:0] r_count = 0;