Chargement…
Chargement…
The debouncer filters mechanical button bouncing. It waits for the input to remain stable for a configurable duration (default 20 ms) before updating the output.
Reset is asynchronous and active-high.
g_clk_freq (default 100 MHz) and g_stable_ms (default 20 ms)| Signal | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | System clock |
i_reset | Input | 1 bit | Active-high async reset |
i_btn | Input | 1 bit | Raw button signal |
o_btn | Output | 1 bit | Filtered signal |