Entity io_Debounce
This module debounces several input pins preventing input changes
following a previous one within the configured BOUNCE_TIME
to pass.
Internally, the forwarded state is locked for, at least, this BOUNCE_TIME
.
As the backing timer is restarted on every input fluctuation, the next
passing input update must have seen a stabilized input.
The parameter COMMON_LOCK
uses a single internal timer for all processed
inputs. Thus, all inputs must stabilize before any one may pass changed.
This option is usually fully acceptable for user inputs such as push buttons.
The parameter ADD_INPUT_SYNCHRONIZERS
triggers the optional instantiation
of a two-FF input synchronizer on each input bit.
Name |
Type |
Default |
Description |
---|---|---|---|
CLOCK_FREQ |
|||
BOUNCE_TIME |
time |
||
BITS |
positive |
1 |
|
INIT |
std_logic_vector |
x"00000000" |
|
ADD_INPUT_SYNCHRONIZERS |
boolean |
true |
|
COMMON_LOCK |
boolean |
false |
Name |
Type |
Direction |
Description |
---|---|---|---|
Clock |
std_logic |
in |
|
Reset |
std_logic |
in |
|
Input |
std_logic_vector |
in |
|
Output |
std_logic_vector |
out |