maestro/Project/Components/mux_3_1.vhd
João Vitor Rafael Chrisóstomo d9ee52826d Adding all the files
2019-09-11 21:17:07 -03:00

20 lines
No EOL
432 B
VHDL

library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity mux_3_1 is
port (
selection : in std_logic_vector(1 downto 0);
input_0, input_1, input_2 : in std_logic_vector(31 downto 0);
output_0 : out std_logic_vector(31 downto 0)
);
end mux_3_1;
architecture behavioral of mux_3_1 is
begin
with selection select
output_0 <=
input_0 when "00",
input_1 when "01",
input_2 when "10",
X"00000000" when others;
end behavioral;