CDL Modules
Files
ps2_host_keyboard

Files

file  ps2_host_keyboard.cdl
 PS2 interface converter for keyboard as host.
 

Detailed Description

Modules

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.

Parameters
[in]clkClock
[in]reset_nActive low reset
[in]ps2_rx_dataReceive data from a ps2_host module
[out]ps2_keyPS2 key decoded