Exclusive-OR
 

Exclusive-OR, or XOR function can be described verbally as, "Either A or B, but not both."

"NOT A and B, or A and NOT B."

The circuit required to implement this description is shown below:

 

OR

(c) Shilpa Sayura Foundation 2006-2017