LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
ENTITY comparator IS
PORT(data_in:IN STD_LOGIC_VECTOR(3 DOWNTO 0));
y:out STD_LOGIC);
END comparator;
ARCHITECTURE one OF comparator IS
BEGIN
p1:PROCESS(data_in)
BEGIN
IF data_in>9 THEN
y <= '1';
ELSE
y <= '0';
END IF;
END PROCESS p1;
END one;