CKiel
New Contributor
7 years agoError 10500
Library IEEE; USE IEEE.NUMERIC_STD.ALL; USE IEEE.STD_LOGIC_1164.ALL; ENTITY mux4 IS PORT( mux_in_a:IN UNSIGNED(3 downto 0); mux_in_b :IN UNSIGNED(3 downto 0); mux_sel :IN STD_LOGIC; mux_...
Library IEEE;
USE IEEE.NUMERIC_STD.ALL;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY mux4 IS
PORT(
mux_in_a:IN UNSIGNED(3 downto 0);
mux_in_b :IN UNSIGNED(3 downto 0);
mux_sel :IN STD_LOGIC;
mux_out :OUT UNSIGNED(3 downto 0)
);
END mux4;
ARCHITECTURE behavior OF mux4 IS
begin
process(mux_in_a, mux_in_b, mux_sel) begin
if mux_sel='0' then mux_out <= mux_in_a;
elsif mux_sel='1' then mux_out <= mux_in_b;
end if;
end process ;
end behavior;