always@(in1 or in2 or in3 or in4 or in5 or in6 or in7 or in8 or switch) begin case(switch) 3'b000: outdata=in1; 3'b001: outdata=in2; 3'b010: outdata=in3; 3'b011: outdata=in4; 3'b100: outdata=in5; 3'b101: outdata=in6; 3'b110: outdata=in7; 3'b111: outdata=in8; default: outdata=4'bx; endcase end