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

18 lines
No EOL
354 B
VHDL

library ieee;
use ieee.std_logic_1164.all;
entity mux_2_1 is
port (
selection : in std_logic;
input_0, input_1 : in std_logic_vector(31 downto 0);
output_0 : out std_logic_vector(31 downto 0)
);
end mux_2_1;
architecture behavioral of mux_2_1 is
begin
with selection select
output_0 <=
input_0 when '0',
input_1 when '1';
end behavioral;