Code:
ENTITY mux4_1 IS
-- Declarations
port(a,b,c,d :in std_logic;
s: in std_logic_vector;
y: out std_logic);
END mux4_1 ;
-- with/select statement
ARCHITECTURE second OF mux4_1 IS
BEGIN
with s select
y<= a when s= "00" , -- it tells me there is an error in this line ?!
b when s= "01" ,
c when s= "10" ,
d when s= "11" ,
'-' when others ;
END second;
i need help