CDL Modules
|
Files | |
file | ps2_host_keyboard.cdl |
PS2 interface converter for keyboard as host. | |
module ps2_host_keyboard::ps2_host_keyboard | ( | clock | clk, |
input bit | reset_n, | ||
input t_ps2_rx_data | ps2_rx_data, | ||
output t_ps2_key_state | ps2_key | ||
) |
Module to convert from PS2 receive data, from a host PS2 receive module, in to keyboard data (up/down, extended key).
An incoming valid byte helps build the result. An 0xe0 sets the extended
bit. A 0xf0 sets the released
bit. The rest set the key
field, and valid
out. valid
is made in to a single cycle pulse.
[in] | clk | Clock |
[in] | reset_n | Active low reset |
[in] | ps2_rx_data | Receive data from a ps2_host module |
[out] | ps2_key | PS2 key decoded |