A = 1, B = 1 — XOR gate

introthe row that separates XOR from OR

Answer

output 0

Why this example is worth doing

Both inputs high gives 0, which is the single row where XOR and OR disagree and therefore the row worth opening on. XOR is exclusive: one or the other, not both. Since xor truth table is the highest-volume query on the entire site, the page is built so that this distinction is visible above the fold rather than three paragraphs down.

Try your own input in the XOR gate. Truth table, symbol and algebraic form for A ⊕ B, the difference detector.

How the answer is reached

The probed row

A = 1, B = 10Row 3 of 4.

Truth table

Truth table — columns #, A, B, A ⊕ B
#ABA ⊕ B
0000
1011
2101
3110

Compare with

Open this example in the XOR gate

The field arrives filled in with this example’s input.

Note:

Notation this page assumes

  • Symbols: · is AND, + is OR, ⊕ is XOR, a prime or an overline is NOT. The field also takes ∧ ∨ ¬ ~ ! & | and the words.
  • Operator precedence, tightest first: NOT, then AND (including juxtaposition), then XOR/XNOR, then NAND/NOR, then OR, then IMPLIES, then IFF.
  • Gate symbols follow whichever standard the header toggle is set to: ANSI/IEEE Std 91-1984 distinctive shapes, or IEC 60617-12 rectangles.

Sources

  • ANSI/IEEE Std 91-1984, Graphic Symbols for Logic Functions
  • IEC 60617-12, Graphical Symbols for Diagrams — Binary Logic Elements