-
-
Save censored--/8629ed99d894bf9c1912 to your computer and use it in GitHub Desktop.
keyboard controller interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ibrary IEEE; | |
use IEEE.std_logic_1164.all; | |
package types is | |
type keyboard_in_type is record | |
input : std_logic_vector (7 downto 0); | |
command : std_logic_vector (7 downto 0); | |
end record; | |
type keyboard_out_type is record | |
output : std_logic_vector(7 downto 0); | |
status : std_logic_vector (7 downto 0); | |
interupt : std_logic; | |
end record; | |
component keyboard_ is | |
port( | |
clk : in std_logic; | |
rst : in std_logic; | |
PS2_CLK : inout std_logic; | |
PS2_DAT : inout std_logic; | |
keyboard_in : in keyboard_in_type; | |
keyboard_out : out keyboard_out_type); | |
end component; | |
end package; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment