library ieee;
use ieee.std_logic_1164.all;


entity mux_2_to_1_1bit is
    port(
        aresetn : in std_logic;
        in_0 : in std_logic;
        in_1 : in std_logic;
        selector : in std_logic_vector(0 downto 0);
        out_0 : out std_logic
    );
end mux_2_to_1_1bit;


architecture rtl of mux_2_to_1_1bit is
begin
    main : process(aresetn, in_0, in_1, selector)
    begin
        if (aresetn = '0') then
            out_0 <= in_0;
        else
            if (selector = "0") then
                out_0 <= in_0;
            else
                out_0 <= in_1;
            end if;
        end if;
    end process main;
end rtl;
