LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; ENTITY LED IS PORT(A:INSTD_LOGIC_VECTOR (3DOWNTO0); B:INSTD_LOGIC_VECTOR (2DOWNTO0); LED:OUTSTD_LOGIC_VECTOR (6DOWNTO0); C:OUTSTD_LOGIC_VECTOR (2DOWNTO0)); END; ARCHITECTURE one OF LED IS BEGIN PROCESS(B) BEGIN C<=B; ENDPROCESS; PROCESS (A) BEGIN CASE A IS WHEN"0000"=> LED<="0111111"; WHEN"0001"=> LED<="0000110"; WHEN"0010"=> LED<="1011011"; WHEN"0011"=> LED<="1001111"; WHEN"0100"=> LED<="1100110"; WHEN"0101"=> LED<="1101101"; WHEN"0110"=> LED<="1111101"; WHEN"0111"=> LED<="0000111"; WHEN"1000"=> LED<="1111111"; WHEN"1001"=> LED<="1101111"; WHEN"1010"=> LED<="1110111"; WHEN"1011"=> LED<="1111100"; WHEN"1100"=> LED<="0111001"; WHEN"1101"=> LED<="1011110"; WHEN"1110"=> LED<="1111001"; WHEN"1111"=> LED<="1110001"; WHENOTHERS=> NULL; ENDCASE; ENDPROCESS; END;