--- /dev/null
+library IEEE;
+use IEEE.STD_LOGIC_UNSIGNED.ALL;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+library work;
+use work.all;
+use work.version.all;
+use work.trb_net_std.all;
+use work.trb_net16_hub_func.all;
+use ieee.std_logic_arith.all;
+
+entity multiplexer is
+ port (
+ RESET : in std_logic;
+ CLK : in std_logic;
+ MULTIPLEXER_OUT : out std_logic;
+ MULTIPLEXER_IN : in std_logic_vector(7 downto 0);
+ MULTIPLEXER_SELECT : in std_logic_vector(2 downto 0)
+ );
+end multiplexer;
+
+architecture multiplexer of multiplexer is
+ signal input_address : integer range 0 to 7 :=0;
+
+
+begin
+ input_address <= conv_integer(MULTIPLEXER_SELECT(2 downto 0));
+ MULTIPLEXER_OUT <= MULTIPLEXER_IN(input_address);
+end multiplexer;