ECE 383 | [Your name] | HW#1 | [Due Date] | [Page ref] |
Keyboard Key | Scancode (in hex) |
0 | 0x45 |
1 | 0x16 |
2 | 0x1E |
3 | 0x26 |
4 | 0x25 |
5 | 0x2E |
6 | 0x36 |
7 | 0x3D |
8 | 0x3E |
9 | 0x46 |
Nomenclature: | Scancode decoder |
Data Input: | D = std_logic_vector(7 downto 0); |
Data Output: | H = std_logic_vector(3 downto ); |
Control: | none |
Status: | none |
Behavior: | Converts the scancode d, representing a the key of a decimal digit, into its 4-bit value. For example, if D = 25_16, the scancode for the character "4", then the converter should output H = 0100_2. Assume that the inputs are always legal hexadecimal scancodes. |