module selector3 (
input [7:0] a,
input [7:0] b,
input [7:0] c,
input [1:0] sel,
output reg [7:0] y
);
always @* begin
if (sel == 2'd00) begin
y = a;
end else if (sel == 2'd1) begin
y = b;
end else if (sel == 2'd2) begin
y = c;
end else begin
y = 8'd00;
end
end
endmodule