3.3.10 · D1Combinational Circuits

Foundations — Parity generators - checkers

1,715 words8 min readBack to topic

Before you can understand a parity generator, you must be fluent in the tiny alphabet it is written in. This page defines every single symbol the parent note throws at you — starting from "what is a bit?" — so that not one squiggle arrives unexplained.


1. The bit — a single light switch

Picture a wall switch. Down = OFF = . Up = ON = . That's the whole idea — there is no "half on".

Figure — Parity generators - checkers

2. The word — a row of switches

The symbol reads as "the data bit sitting in position ". The subscript is just a house-number:

The symbol just means how many data bits there are. If the data bits are — note the last index is , not , because we start counting at zero.


3. Counting the 1s — "how many switches are ON?"

Parity cares about exactly one number: the count of 1s in a word. Everything else — the order, the positions — is irrelevant to the promise.

Figure — Parity generators - checkers

4. Complement / inversion — the bar

Picture a switch and its mirror-twin wired to always be in the opposite position.


5. XOR — the star operator

This is the tool the whole topic runs on, so we build it slowly.

in words
0 0 0 same → 0
0 1 1 differ → 1
1 0 1 differ → 1
1 1 0 same → 0

Look at the table a second way: exactly when an odd number (i.e. exactly one) of the two inputs is a . That re-reading is the bridge to parity.

Figure — Parity generators - checkers

Why chaining works — associativity


6. XNOR — XOR wearing a hat


7. Putting the symbols together — , , and

Now every letter in the parent's formulas has a home:

Symbol Plain meaning Picture
the -th data bit one switch in the row
number of data bits length of the row
XOR — "differ?" / "odd count?" the odd-counter gate
complement / NOT mirror switch
"is the data's 1-count odd?"
the appended parity bit the extra safety switch
checker's error signal alarm: 1 = parity broke

8. Prerequisite map

Bit = one switch 0 or 1

Word = row of bits d_i

Complement bar means flip

Count of 1s

Even or Odd

XOR asks are you odd

Associativity lets us chain

XNOR is XOR inverted

Parity generator and checker


Equipment checklist

A bit can be in how many states, and what are they?
Two states: (OFF) and (ON).
In the word , what is ?
(the middle bit).
If a word has data bits, what is the index of the last one?
(we start counting at ).
What does "even" mean for a count of 1s?
It splits into pairs with nothing left over ().
What is ?
— the overbar flips the bit.
When does equal ?
When and differ (equivalently, an odd number of them are ).
Why XOR rather than OR to test "odd count"?
On OR gives 1 (wrong, count is even) but XOR gives 0 (correct).
What does associativity of XOR let us do?
Chain many XORs in any grouping/order and get the same answer.
What is in the parity formulas?
— "is the data's 1-count odd?".
XNOR is XOR followed by what?
An inversion (complement) — output is 1 when inputs are the same.
What does the checker's represent?
The error signal computed from all received bits including .

Connections