library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity compute_led is port (P,T,DC,CO: in std_logic; L0,L1,L2,L3:out std_logic); end compute_led; architecture behavioral of compute_led is begin process (P,T,DC,CO) begin if P = '1' then L0<='1'; L1<='1'; L2<='1'; L3<='1'; elsif T = '1' then L0<='1'; L1<='1'; L2<='1'; L3<='0'; elsif DC = '1' then L0<='1'; L1<='1'; L2<='0'; L3<='0'; elsif CO = '1' then L0<='1'; L1<='0'; L2<='0'; L3<='0'; else L0<='0'; L1<='0'; L2<='0'; L3<='0'; end if; end process; end behavioral;