CSCE 436 | [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 0); |
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 = 2516, the scancode for the character "4", then the converter should output H = 01002. Assume that the inputs are always legal hexadecimal scancodes. |