module sel (
   x,
   xb,
   c,
   cx1,
   cx0
);

   input x;
   input xb;
   input c;
   output cx1;
   output cx0;
   wire w1;
   wire w0;

   NA2 I0 (x, c, w1);
   NA2 I1 (xb, c, w0);
   IN1 I2 (w1, cx1);
   IN1 I3 (w0, cx0);
endmodule

