non ho capito la tua domanda
cmq la porta xor ha tavola di veritā
a b |xor
0 0 |0
0 1 |1
1 0 |1
1 1 |0