Project Journeys · A computer from logic gates
I want to build…
a working computer, starting from single logic gates
Start with one bit. Wire gates into adders, flip-flops into registers, and finish by programming the processor you built.
11 steps · 8 named by the project
The route, from foundations to evaluation
Every step is something this project needs, or something one of those needs first (required prerequisites only), in an order where nothing comes before what it builds on. Already shown? It is ticked. Want to jump ahead? Every link is open.
- Foundations0/1shown / steps
- Maths–none needed
- Programming0/9shown / steps
- Sensing–none needed
- Integration–none needed
- Experimental evaluation0/1shown / steps
Checking what you have already shown… Every step is open now: skip ahead whenever you like.
- ProgrammingStep 1 · L1 Explorerproject skillnext up →
Binary, hexadecimal and digital signals
Every wire inside a computer is a 0 or a 1; numbers, letters and instructions are all patterns of bits.
- FoundationsStep 2 · L1 Explorerproject skill
Logic gates and Boolean algebra
Gates are the computer's only building block. Everything else is gates wired together.
Builds on: Binary, hexadecimal and digital signals
- AND, OR, NOT: the three little deciders · Lesson
- Practice: AND, OR, NOT: the three little deciders · Lesson practice
- Adder architecture: ripple carry or carry lookahead · Simulation OS
- Boolean Logic & Logic Gates: Crash Course Computer Science #3 · Learning Room
- On the skill tree
- ProgrammingStep 3 · L2 Builderproject skill
Binary arithmetic and adders
An adder made of gates is the heart of the arithmetic unit.
Builds on: Binary, hexadecimal and digital signals, Logic gates and Boolean algebra
- Half adders and full adders · Lesson
- Practice: Half adders and full adders · Lesson practice
- Digital logic lab · Playground lab
- How Computers Calculate - the ALU: Crash Course Computer Science #5 · Learning Room
- On the skill tree
- ProgrammingStep 4 · L2 Builder
Variables, types and expressions
Comes first: Decisions and loops builds on it, on the way to Testing and debugging.
- ProgrammingStep 5 · L2 Builder
Decisions and loops
Comes first: Functions and decomposition builds on it, on the way to Testing and debugging.
Builds on: Variables, types and expressions
- Flowcharts: drawing a decision · Lesson
- Code Lab: Minimum, maximum, range · Code Lab
- Intro to Algorithms: Crash Course Computer Science #13 · Learning Room
- On the skill tree
- ProgrammingStep 6 · L2 Builder
Functions and decomposition
Comes first: Testing and debugging builds directly on it.
Builds on: Decisions and loops
- Instructions a robot can't misunderstand · Lesson
- Practice: Instructions a robot can't misunderstand · Lesson practice
- On the skill tree
- Experimental evaluationStep 7 · L2 Builderproject skill
Testing and debugging
A processor is only finished when every instruction passes its tests.
Builds on: Functions and decomposition
- Truth tables: checking every possibility · Lesson
- Practice: Truth tables: checking every possibility · Lesson practice
- Electronics Studio: Find the open circuit · Studio
- Intro to Algorithms: Crash Course Computer Science #13 · Learning Room
- On the skill tree
- ProgrammingStep 8 · L3 Innovatorproject skill
Fixed-width integers, bits and registers
Registers have a fixed number of bits, so you need to know what happens when a sum does not fit.
Builds on: Binary, hexadecimal and digital signals
- Running out of bits: overflow · Lesson
- Code Lab: Set, clear and test register bits · Code Lab
- Silicon Studio: Arithmetic logic unit · Studio
- Binary Numbers and Base Systems as Fast as Possible · Learning Room
- On the skill tree
- ProgrammingStep 9 · L3 Innovatorproject skill
Sequential logic and memory
Without flip-flops the computer forgets everything between clock ticks.
Builds on: Logic gates and Boolean algebra
- A state machine in hardware · Lesson
- Practice: A state machine in hardware · Lesson practice
- Silicon Studio: Basic memory · Studio
- On the skill tree
- ProgrammingStep 10 · L3 Innovatorproject skill
Inside a microcontroller
Fetch, decode, execute: this is how the parts become a processor.
Builds on: Sequential logic and memory
- Multiplexers and decoders: choosing and pointing · Lesson
- Practice: Multiplexers and decoders: choosing and pointing · Lesson practice
- Battery sensor node: sample, sleep, send · Simulation OS
- The Central Processing Unit (CPU): Crash Course Computer Science #7 · Learning Room
- On the skill tree
- ProgrammingStep 11 · L4 Systems Engineerproject skill
Instruction set architecture
The instruction set is the contract between your hardware and the programs you write for it.
Builds on: Binary, hexadecimal and digital signals, Inside a microcontroller
- Instructions are just numbers · Lesson
- Practice: Instructions are just numbers · Lesson practice
- On the skill tree
Switch goals, or follow several
- Virtual autonomous rover
- Robotic arm
- Smart greenhouse
- Traffic junction
- Sorting machine
- Computer-controlled machine
Honest notes
Worked out from the content
The project's needs and their reasons were written with AI assistance; the route under them is computed from required prerequisites in the Engineering Knowledge Graph and checked by automated tests (technically checked). No educator has reviewed it yet, and it is one learnable order, not the only one.