Professional Documents
Culture Documents
Use IEEE.STD_LOGIC_1164.ALL;
Use IEEE.STD_LOGIC_arith.ALL;
entity FSM_VentB is
Port (S0, S1,H ,Reset :IN std_logic;
V1,V2:OUT std_logic);
end FSM_VentB;
Memoire: Process(H,Reset)
begin
if (Reset = '1') then EP <= E0;
elsif (H = '1' and H'event) then Ep <= Ef;
end if;
end process;
Sortie: process(Ep)
begin
case Ep is
when E0 => V1<='0';V2<='0';
when E1 => V1<='1';V2<='0';
when E2 => V1<='0';V2<='0';
when E3 => V1<='0';V2<='1';
when E4 => V1<='1';V2<='1';
when E5 => V1<='1';V2<='0';
end case;
end process;
end Arch_VentB;