CHIP Xor { IN a, b; OUT out; PARTS: Or(a=a, b=b, out=AorB); Nand(a=a, b=b, out=AnandB); And(a=AorB, b=AnandB, out=out); }