The processor: registers and buses
About this lesson: The processor: registers and buses
In short
In a von Neumann computer, programs and data are stored together in memory. The program counter (PC) holds the address of the next instruction. Move the PC through a short program.

What you'll explore
- Stored programs: Instructions live in memory
- In a von Neumann computer, programs and data are stored together in memory. The program counter (PC) holds the address of the next instruction.
- The fetch–decode–execute cycle: Three steps, billions of times
- Fetch: copy the instruction from memory into the CPU. Decode: work out what it means. Execute: carry it out. Then repeat.
- Main memory: Where running programs live
- Programs and the data they use are loaded into RAM while running. RAM is fast but volatile: switch off and it is wiped.
- Check yourself: Registers
- During the fetch stage, the CPU needs to know where in memory the next instruction is.
Also in this lesson
- Step by step
- Registers and buses
- Watch out for these
- More than the lesson
- Stretch your brain
- Try it yourself
Words to know
- CPU
- Central processing unit: runs instructions.
- register
- A tiny, very fast store inside the CPU.
- program counter
- Holds the address of the next instruction.
- accumulator
- Holds results from the ALU.
- ALU
- Arithmetic logic unit.
- control unit
- Manages the fetch–decode–execute cycle.
- bus
- A set of wires carrying data, addresses or signals.
- RAM
- Volatile main memory for running programs.
- volatile
- Loses its contents without power.
- von Neumann architecture
- Program and data stored in the same memory.
Sources
- BBC Bitesize, GCSE Computer Science: The CPU
- Isaac Computer Science: Computer architecture
- Computer History Museum: Stored-program computers
- Raspberry Pi Foundation: How computers work