library IEEE;
use IEEE.std_logic_1164.all;
entity selectorHDL is
port (
SEL: in STD_LOGIC_VECTOR (1 downto 0);
IN0: in STD_LOGIC_VECTOR (3 downto 0);
IN1: in STD_LOGIC_VECTOR (3 downto 0);
IN2: in STD_LOGIC_VECTOR (3 downto 0);
IN3: in STD_LOGIC_VECTOR (3 downto 0);
OUTS: out STD_LOGIC_VECTOR (3 downto 0)
);
end selectorHDL;
architecture selectorHDL_arch of selectorHDL is
begin
with SEL select OUTS <= IN0 when "00",
IN1 when "01",
IN2 when "10",
IN3 when "11",
"ZZZZ" when others;
end selectorHDL_arch;