signal output: std_logic_vector(3 downto 0);
signal LED : std_logic_vector;
signal count : integer:=0;
process(clk)
begin
if(clk'event = true and clk='1') then
state <= nextState;
end if;
end process;
process(state,rst,in1,in2,in3)
begin
LED <= '0';
case state is
when state 1 =>
output <= "0010";
if(in1 = '1') then
count <= count +10;
elsif (in2 ='1') then
count <= count +5;
elsif (in3 ='1') then
count <= count +20;
end if;
if(count >90) then
LED <='1';
count <= 0;
end if;
when state 2=>
output<= "0001";
end case;
end if;