summaryrefslogtreecommitdiffstats
path: root/serial.v
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-10-25 20:49:30 -0700
committerH. Peter Anvin <hpa@zytor.com>2014-02-10 18:07:48 -0800
commit63b1c9685d8376942f292c9398f9fa392948ccc3 (patch)
tree6126008ddf954c0f41b40cd7f831958b592ff1d7 /serial.v
parentd9b68b7d37c6bedd36890960ee179dc5be16847d (diff)
downloadabc8000-63b1c9685d8376942f292c9398f9fa392948ccc3.tar.gz
abc8000-63b1c9685d8376942f292c9398f9fa392948ccc3.tar.xz
abc8000-63b1c9685d8376942f292c9398f9fa392948ccc3.zip
debounce: remove reset
Simplify the debouncer by removing the reset; instead output X until the output converges, and keep the value across soft resets. For startup/hard resets we should be well converged by the time the PLL is locked and the post-lock counter expires.
Diffstat (limited to 'serial.v')
-rw-r--r--serial.v3
1 files changed, 1 insertions, 2 deletions
diff --git a/serial.v b/serial.v
index 5cc2321..4f85871 100644
--- a/serial.v
+++ b/serial.v
@@ -118,12 +118,11 @@ module serial (
end // always @ (negedge rst_n or posedge clk)
// Deglitch for the input
- reg rx_deglitched;
+ wire rx_deglitched;
debounce #(.width(1), .count(4)) rx_deglitch
(
.clk ( clk ),
- .reset_n ( rst_n ),
.in ( tty_rxd ),
.out ( rx_deglitched ),
.strobe ( )