module mux2_prim ( input a, input b, input sel, output y ); wire sel_n, wa, wb; not u_inv (sel_n, sel); and u_a (wa, a, sel_n); and u_b (wb, b, sel); or u_or (y, wa, wb); endmodule
sel = x
x