-- Student starter for Digital Logic, Lab 1, Part II.
library ieee;
use ieee.std_logic_1164.all;

entity selector is
    port (SW : in std_logic_vector(9 downto 0);
          LEDR : out std_logic_vector(9 downto 0));
end entity;

architecture rtl of selector is
begin
    LEDR(3 downto 0) <= SW(3 downto 0); -- TODO: select X or Y using SW(9).
    LEDR(8 downto 4) <= (others => '0');
    LEDR(9) <= SW(9);
end architecture;
