summaryrefslogtreecommitdiff
path: root/debounce.v
diff options
context:
space:
mode:
authoruvok2025-12-26 15:15:52 +0100
committeruvok2025-12-26 15:15:52 +0100
commit539e67d451e267fb8c6040bc95c64894372e8b66 (patch)
treed462e26630aeda256df0c3c2e85f4293f6a525cd /debounce.v
parente1c081bd2089b87808c592e3dabc4ac464b2a57c (diff)
Add comment/docu
Diffstat (limited to 'debounce.v')
-rw-r--r--debounce.v4
1 files changed, 4 insertions, 0 deletions
diff --git a/debounce.v b/debounce.v
index 014f7c4..9f0a0e2 100644
--- a/debounce.v
+++ b/debounce.v
@@ -16,6 +16,10 @@ reg prev_state;
always @(posedge clk_i or negedge rst_i) begin
if (!rst_i) begin
+ // Learning: I would like to set the output to the input on reset
+ // but then I get
+ // Warning: Async reset value `\signal_i' is not constant!
+ // and a synthesis error.
clk_counter <= 0;
prev_state <= INIT_SIG_STATE;
signal_o <= INIT_SIG_STATE;