4 use ieee.std_logic_1164.
all;
5 use ieee.std_logic_arith.
all;
6 use ieee.std_logic_unsigned.
all;
17 architecture behav1
of mux2to1
is
29 architecture behav2
of mux2to1
is
42 architecture behav3
of mux2to1
is
44 y
<= a
when (s
= '1') else b
;
47 architecture behav4
of mux2to1
is
50 y
<= a
when '1', b
when others;