component xor2 "Two-input XOR (exclusive OR) gate"; pin in bit in0; pin in bit in1; pin out bit out; function _ nofp; license "GPL"; ;; FUNCTION(_) { if (( in0 && !in1 ) || ( in1 && !in0 )) { out = 1; } else { out = 0; } }