library IEEE; use IEEE.std_logic_1164.all; entity Vcomblck is port ( CLOCK, RESET, X: in STD_LOGIC; UNLK: out STD_LOGIC ); end; architecture Vcomblck_arch of Vcomblck is signal XHISTORY: STD_LOGIC_VECTOR (7 downto 1); constant COMBINATION: STD_LOGIC_VECTOR (7 downto 1) := "0110111"; begin process (CLOCK) begin if CLOCK'event and CLOCK = '1' then if RESET = '1' then XHISTORY <= "0000000"; else XHISTORY <= XHISTORY(6 downto 1) & X; end if; end if; end process; UNLK <= '1' when (XHISTORY=COMBINATION) and (X='0') else '0'; end Vcomblck_arch;