Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · How Computers Work · Bits and switches · about 16 min to read

Play it as a journeyTutor comes with a plan

Logic From Switches (transistors → gates → adder → memory)

Logic From Switches
Logic From Switches · Open board

The same wall of switches turning into gates, an adder, and a loop that remembers, walked through here in words instead of a diagram.

Before you start. Everything Is a Number (bits & bytes) showed a computer stores everything as switches wired into bytes, each one only on or off. Numbers for Real (signed ints, overflow, floating point) showed a byte holds just 256 patterns, so a sum needing a 257th loses its top bit. This lesson is where those switches start doing work: adding numbers, and holding onto the answer after the switches that made it have moved on.

Lesson 4 of 41 in How Computers Work

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 1936: the machine at MIT nobody could redesign without weeks of guessing
  • Today’s switch: no moving parts, and no finger required
  • Gates: wiring switches to answer one question
  • Two gates add a bit, and a third is where addition gets interesting
  • Memory from feedback: the loop that remembers
  • Down to the bytes

Terms it explains: relay, transistor, gate, sum, carry, latch, flip-flop, abstraction ladder, ALU, AND/OR/NOT/XOR, clock, combinational, flip-flop / latch, full adder, half adder, logic gate, NAND (NOT-AND), ripple-carry, SRAM, transistor (MOSFET), truth table.

Review How Computers Work