-- ************************************************** -- Kathleen Williams -- Enhanced Traffic Light Controller -- KatieCo Systems Engineering -- April 29th, 2001 -- Keyboard-Input Converter -- Specify Later -- ************************************************** library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity keyconvert is port(scan_code: in std_logic_vector(7 downto 0); car,car1,car2,boat,train,reset,dummytest: out std_logic); end keyconvert; architecture structure of keyconvert is begin process (scan_code) begin case scan_code is when "00010101" => car <= '1'; when "00011101" => car <= '0'; when "00101101" => car1 <= '1'; when "00101100" => car1 <= '0'; when "00111100" => car2 <= '1'; when "01000011" => car2 <= '0'; when "00100010" => train <= '1'; when "00100001" => train <= '0'; when "00110010" => boat <= '1'; when "00110001" => boat <= '0'; when "01000010" => reset <= '1'; when "01000001" => reset <= '0'; when "00011100" => dummytest <= '1'; when others => end case; end process; end structure;