Even-parity generator over four bits — XNOR gate

edge casethe transmit-side parity circuit

Answer

P column 1001011001101001

Why this example is worth doing

Three XNOR gates over four data bits produce the even-parity bit that gets appended before transmission. The page builds it as a balanced tree rather than a chain, because the tree has two gate delays instead of three and parity circuits sit on the critical path of memory interfaces. It hands off to the parity and checksum tool, where the same computation is done on bytes and words with the arithmetic shown.

Try your own input in the XNOR gate. Truth table, symbol and algebraic form for A ⊙ B, the equality detector.

How the answer is reached

Output table

Output table — columns B3, B2, B1, B0, P
B3B2B1B0P
00001
00010
00100
00111
01000
01011
01101
01110
10000
10011
10101
10110
11001
11010
11100
11111

Compare with

Open the XNOR gate

This input is entered in the tool itself — it is too rich for a link to carry.

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