3.3.1 · D1Combinational Circuits

Foundations — Half adder and full adder

1,897 words9 min readBack to topic

Before you can read a single equation on the Half adder and full adder parent note, you must own every symbol it throws at you. This page builds them from nothing, in an order where each one leans on the one before it. Nothing is assumed.


0. What is a "bit"? (the atom)

The picture: a single lamp. Dark or bright — no dimmer.

Why the topic needs it: every wire in an adder carries exactly one bit at a time. The whole subject is "what to do when several of these switches are on."

Figure — Half adder and full adder

1. Counting in binary (why isn't just "2")

We usually count in decimal: ten symbols , and when we run past we start a new column — means "one ten, zero ones."

Binary does the same trick but with only two symbols. When you run past , you start a new column.

So (the little means "read me in binary") is:

The picture: two lamps both on. Their total "two" spills into a second lamp on the left.

Figure — Half adder and full adder

2. The two outputs: Sum and Carry

This is identical to carrying in ordinary addition. When you add by hand, you write 2 and carry 1. Here, , so you write and carry .

Why the topic needs it: "half adder" and "full adder" are just the names of the little machines that compute and .


3. Boolean values vs. Boolean operations

We now need a language for "this output is 1 only when...". That language is Boolean algebra: algebra where every variable is a bit ( or ).

A letter like or just names a bit — a stand-in for "whatever value that wire is carrying right now." might be on Tuesday and on Wednesday; the equations must hold either way.

Three operations are all we use. Meet them one at a time.

3a. NOT — the bar

The picture: a switch wired backwards — the lamp is on exactly when you press off.

Why we need it: to say " is zero AND is one" we write . The bar lets us test for a bit being off.

3b. AND — the dot

The picture: two switches in series on one wire — current flows only if both are closed.

Why we need it: the half-adder Carry is exactly "both bits are 1" → . See AND gate.

3c. OR — the plus

The picture: two switches in parallel — current flows if either is closed.

Figure — Half adder and full adder

3d. XOR — the circled plus

This is the star of the show, so it earns its own build.

0 0 0
0 1 1
1 0 1
1 1 0

Why "exclusive"? Plain OR says yes to ; XOR excludes the "both" case — it wants one or the other, not both.

The deep reason the topic loves XOR: look at the Sum column of the half-adder. exactly when and differ. That is XOR. And for three inputs, XOR chained () outputs whenever an odd number of inputs are — because each incoming flips the running answer. That "odd counter" behaviour is precisely a Sum bit. See XOR gate.

Figure — Half adder and full adder

4. Truth tables and minterms (the derivation method)

Why exactly rows? Each input independently doubles the number of cases: 1 input → 2, 2 inputs → 4, 3 inputs → 8. Covering all of them is what guarantees the circuit never meets a case you forgot.

The method the whole parent note uses: for any output, OR together the minterms of the rows where that output is . That gives a guaranteed-correct Boolean formula, which you then simplify. This is the engine behind Truth tables and minterms.

Example (half-adder Sum): on rows and , so


5. Subscripts: , , ,

Subscripts are just name tags, never operations:

  • = the carry coming into this column from the right.
  • = the carry going out of this column to the left.
  • = the Sum bits of column 0, 1, 2 (column 0 is rightmost, worth 1).
  • The little in = "this numeral is written in binary."

Why the topic needs them: in real addition you chain many adders. Each column's becomes the next column's — that chaining is the Ripple-carry adder. Without subscripts you couldn't tell the carries apart.


6. "Majority function" — a name you'll meet

Read it as three "pairs both on" tests OR-ed together — if any pair is both-on, at least two inputs are 1. This is exactly the full-adder Carry-out . (The Carry-lookahead adder speeds this up, but the logic is the same.)


How these feed the topic

Bit: 0 or 1

Binary counting

Two outputs needed: 1+1 = 10 base 2

Sum and Carry

NOT bar

AND dot

OR plus

XOR circled plus

Truth tables and minterms

Half adder and Full adder

Majority function

Subscripts Cin Cout

All roads lead into the parent: Half adder and full adder. This whole topic lives inside the family of Combinational circuits — circuits with no memory, where output depends only on the current inputs.


Equipment checklist

Cover the right side and check you can answer each before moving on.

What is a bit and what two values can it take?
A single value that is either or — like a light switch off/on.
Why does binary need a second column for "two"?
Because binary only has symbols and ; "two" is written = one 2 plus zero 1s.
What is the Sum output vs. the Carry output?
Sum is the bit written in this column; Carry is the bit pushed to the next column left.
What does the bar do?
Flips the bit: , (NOT).
When is (AND) equal to 1?
Only when both and are 1.
When is (OR) equal to 1?
When at least one of is 1 (0 only if both are 0).
In Boolean algebra, does mean arithmetic add?
No — means OR; in Boolean.
When is (XOR) equal to 1?
When the two bits differ.
How do you write XOR using NOT/AND/OR?
.
Why does 3 inputs give an 8-row truth table?
Because : each input doubles the number of combinations.
What is a minterm?
An AND-term that is 1 for exactly one row of the truth table.
What do and mean?
Carry coming into a column, and carry going out of it.
What does the majority-of-three function output?
1 when at least two of the three inputs are 1: .