Skip to main content
← CPUs Lesson 2 / 6

Logic Gates

A transistor is just an electric switch. Wire a couple together and you get a "gate" that answers one yes/no question.

Pick a gate

lights only if BOTH inputs are on

Flip the inputs

A B Out
0 0 0
0 1 0
1 0 0
1 1 1

Every decision a computer makes is built from these four switch-tricks.