module four_sources(input logic [9:0] SW, output logic [9:0] LEDR);
    logic [1:0] first_pair, second_pair;
    always_comb begin
        first_pair = SW[8] ? SW[5:4] : SW[7:6];
        second_pair = SW[8] ? SW[1:0] : SW[3:2];
        LEDR = {8'b0, first_pair}; // TODO: choose a pair using SW[9].
    end
endmodule
