Reading 3: Small Circuits: How Gates Work Together

When one gate just won't cut it, it's time for teamwork.

From Single Gates to Small Circuits

You now know how individual logic gates behave: AND insists on full agreement, OR is happy if anyone says yes, XOR rewards disagreement, and NOT flips whatever it sees.

But real computation requires multiple steps. That's where small circuits come in. A circuit is simply several gates connected together so that the output of one gate becomes the input to another.

In this reading, you will learn how to trace these circuits step-by-step and predict their output for any given set of inputs.

How to Read a Circuit

When you encounter a circuit, use this simple process:

  1. Start at the inputs (usually labeled A, B, C).
  2. Find a gate whose inputs you already know.
  3. Compute that gate's output as a new intermediate value.
  4. Feed that value into the next gate.
  5. Continue until you reach the final output.

We'll practice this process using small, approachable circuits designed to build your intuition.

Example 1 — NOT Feeding Into AND

This is a two-gate circuit that shows how one gate's output becomes the input to another.

A circuit where NOT(A) feeds into an AND gate with B.
Diagram: (NOT A) AND B

Step-by-step

  1. Compute NOT A.
  2. Feed NOT A and B into the AND gate.
  3. AND outputs 1 only when both NOT A and B are 1.
A
B
NOT A
(NOT A) AND B
0
0
1
0
0
1
1
1
1
0
0
0
1
1
0
0
Truth table for Example 1

Notice that the circuit outputs 1 only when A = 0 and B = 1.

Example 2 — OR Feeding Into NOT

This circuit takes a combined condition from an OR gate and then flips it using NOT.

A circuit where the output of OR(A,B) flows into a NOT gate.
Diagram: NOT(A OR B)

Step-by-step

  1. Compute A OR B.
  2. Compute NOT(A OR B).
A
B
A OR B
NOT(A OR B)
0
0
0
1
0
1
1
0
1
0
1
0
1
1
1
0
Truth table for Example 2

This circuit outputs 1 only when both A and B are 0. (This is also how a NOR gate behaves.)

Example 3 — AND and XOR Working Together

This circuit shows how two ideas can combine: agreement between A and B, and disagreement between B and C.

A circuit showing (A AND B) feeding into OR with (B XOR C).
Diagram: (A AND B) XOR C

Step-by-step

  1. Compute D = A AND B.
  2. Compute Output= D XOR C.

This circuit outputs 1 whenever A and B are both 1 but C is 0, or whenever C is 1 but at least one of A and B are 0.

Strategies for Solving Any Circuit

Why These Skills Matter

Understanding small circuits is an important step toward understanding how real CPUs work. Arithmetic units, comparisons, decision-making, and control flow are all built from circuits just like these.

These models also give you language and confidence to explain to K-12 students what the hardware is actually doing when it manipulates bits.

``