qmux 4-1


entity qmux41 is
Port ( a : in STD_LOGIC_VECTOR (3 downto 0);
b : in STD_LOGIC_VECTOR (3 downto 0);
c : in STD_LOGIC_VECTOR (3 downto 0);
d : in STD_LOGIC_VECTOR (3 downto 0);
s : in STD_LOGIC_VECTOR (1 downto 0);
z : out STD_LOGIC_VECTOR (3 downto 0));
end qmux41;

architecture meh of qmux41 is

begin
process (s)
begin
case s is
when "00" => z <= a; when "01" => z <= b; when "10" => z <= c; when other => z <= d; end case; end process; end meh;