mirror of
https://github.com/Artoriuz/maestro.git
synced 2025-04-18 18:44:44 -04:00
20 lines
No EOL
432 B
VHDL
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; |