Entity io_KeyPadScanner
This module drives a one-hot encoded column vector to read back a rows vector. By scanning column-by-column it's possible to extract the current button state of the whole keypad. The scanner uses high-active logic. The keypad size and scan frequency can be configured. The outputed signal matrix is not debounced.
Name |
Type |
Default |
Description |
---|---|---|---|
CLOCK_FREQ |
100 MHz |
||
SCAN_FREQ |
1 kHz |
||
ROWS |
positive |
4 |
|
COLUMNS |
positive |
4 |
|
ADD_INPUT_SYNCHRONIZERS |
boolean |
TRUE |
Name |
Type |
Direction |
Description |
---|---|---|---|
Clock |
std_logic |
in |
|
Reset |
std_logic |
in |
|
KeyPadMatrix |
out |
|
|
ColumnVector |
std_logic_vector |
out |
|
RowVector |
std_logic_vector |
in |
×