GCSE · Computer Science · Edexcel · Spec 1CP2

Von Neumann architecture

Your computer isn't clever. It grabs one instruction, works out what it means, does it — then repeats, billions of times a second. Let's follow one instruction round.

Computer Science · Fetch–decode–execute

Follow one instruction round the loop

RAM holds a tiny program. Address 20 holds the instruction LOAD 25, which means “copy the number stored at address 25 into the accumulator”. Address 25 holds the number 14. Your cast: PC = where the next instruction is · MAR = the address we're about to visit · MDR = whatever just arrived from memory · CIR = the instruction being worked on · ACC = the accumulator, where data being processed ends up.

Before you press Next: when the instruction arrives from memory, which register do you think it lands in first?

Phase: Ready

PC

20

MAR

—

MDR

—

CIR

—

ACC

—

Address bus

—

Data bus

—

Control bus

—

Control unit

—

Output

 

Step 1: The program is already loaded into main memory (RAM). The program counter (PC) holds 20: the address of the next instruction to fetch. Nothing has moved yet.

1 / 12

Press Next to move one step at a time. A dash means that store isn't in use at this step — a bus sitting idle, or a register this walk-through hasn't needed yet.

Step 1 of 12: The program is already loaded into main memory (RAM). The program counter (PC) holds 20: the address of the next instruction to fetch. Nothing has moved yet..

Exam line: For every fetch step, name the register AND the bus: PC copied to MAR; address sent along the address bus; instruction returned along the data bus to the MDR; MDR copied to CIR; PC increased by one.
Watch out: The PC holds an address, never an instruction. It points at where the next instruction lives — it doesn't hold the instruction itself.

Why is the program in memory at all?

Hardwired machinevsStored-program (von Neumann) machine

The loop you just watched only works because the program was sitting in RAM, waiting to be fetched. Earlier machines didn't work like that.

Focus

To change the program

Hardwired machine

Physically change the switches

Stored-program (von Neumann) machine

Load different instructions into memory

The insight

This is the big one. On a stored-program machine a new program is something you load, not a physical change to the machine.

Where the instructions are kept

Hardwired machine

Set by the machine's switches

Stored-program (von Neumann) machine

In memory, alongside the data — both stored in binary

How versatile it is

Hardwired machine

Each new job means physical changes to the machine

Stored-program (von Neumann) machine

Far more versatile: the same machine runs whatever program is loaded

Computer Science · Structure

Meet the machine that runs the loop

The dashed box is the CPU — the core of the computer, which receives instructions and executes them. Tap any part to see its job. The lines are buses: pathways that carry addresses, data and control signals between the parts.

CPU (processor)address busdata buscontrol bus

Tap any part of the diagram to see what it does.

Computer Science · Registers and buses

Address or contents?

Pick an item, then choose the category it belongs in: does it hold or carry an address, the contents of memory (data or an instruction), or control signals?

Still to sort

An address (0)

Where something is in memory

Where the line is: An address says WHERE to look. It is never the thing stored there.

Data or an instruction (0)

What is stored in memory

Where the line is: This is WHAT was found at an address — a value or an instruction — not the address itself.

Control signals (0)

Keeping everything in order and on time

8 of 8 still to sort.

It's easy to mix up WHERE something is with WHAT is stored there. Sort each register and bus to fix that line in your head.

Computer Science · Check your thinking

Does the CPU understand your program?

A program has been loaded into RAM and is ready to run.

Which of these is closest to what you think happens to each instruction?
How sure are you?

Computer Science · The clock

How fast does the loop go round?

A processor's clock runs at 2.5 GHz. Slide to how many cycles you think that is every second.

Your estimate

2000 million cycles

0 million cycles4000 million cycles

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

One small loop — fetch, decode, execute — repeated billions of times a second.

What you need to know

  • Von Neumann architecture: the program's instructions are stored in memory alongside the data, both in binary.
  • The architecture: a CPU, main memory (RAM), connections for input/output devices and secondary storage, joined by buses.
  • Inside the CPU: the control unit decodes instructions and controls the other parts; the ALU does arithmetic and logic; registers are tiny, fast stores; the clock sets the pace.
  • Registers: PC = address of the next instruction; MAR = address being accessed; MDR = data or instruction just fetched; CIR = instruction being decoded and executed; ACC = data being processed and results.
  • Buses: the address bus carries addresses; the data bus carries data and instructions; the control bus carries control signals.
  • Fetch: PC to MAR → address along the address bus → instruction back along the data bus to the MDR → MDR to CIR → PC + 1. Then decode (control unit) and execute.

The big picture

Modern computers are built on the von Neumann design. The program is stored in memory alongside the data, both in binary. The CPU runs it with one loop: fetch the next instruction from memory, decode it in the control unit, execute it — then go round again for the next one. Registers (the PC, MAR, MDR, CIR and accumulator) are tiny, fast stores inside the CPU, each with its own job, and three buses carry addresses, data and control signals between the components.

Key points

1A stored-program computer runs a new program just by loading new instructions into memory — no changing of switches — which makes it far more versatile than a hardwired machine.
2Instructions are fetched from memory one at a time, in order, and each one is decoded before it is executed.
3The PC is increased by one during the fetch, so it always points at the next instruction in sequence.
4The control unit decodes the instruction held in the CIR and then tells the other components what to do to execute it.
5RAM holds the instructions and data currently being processed, and it is volatile: its contents are lost when the power goes off.
6Clock speed is measured in hertz: 2.5 GHz means 2.5 billion cycles per second, so the fetch-decode-execute cycle repeats billions of times a second.

Worked example

Problem

The program counter holds 47. Describe what happens during the fetch stage of the next instruction, naming each register and bus involved, and state what the PC holds at the end of the fetch.

⚠ Watch out

Swapping the MAR and the MDR (or the address bus and the data bus). The MAR and the address bus deal with WHERE something is — an address. The MDR and the data bus deal with WHAT is there — the data or instruction itself.

🧠

Memory hook

Point, ask, catch, hold, decode, do: the PC POINTS at the next instruction, the MAR ASKS memory for it, the MDR CATCHES what comes back, the CIR HOLDS it, the control unit DECODES it — and then the CPU DOES it. Then round again.

✓

Check yourself

Try it without looking: the PC holds 90. Which register gets 90 first, which bus takes it to memory, where does the instruction arrive, and what does the PC end on?

Flashcards

(15)
What is computer architecture?
The design of a computer system. Most modern computers use the von Neumann architecture, proposed by John von Neumann.
What is the stored program concept?
Program instructions are stored in memory alongside the data, and both instructions and data are stored in binary.
Why was the stored-program computer more versatile than a hardwired machine?
To change a hardwired machine's program you had to physically change its switches. A stored-program computer runs a new program simply by loading different instructions into memory.
Name the four main parts of the von Neumann architecture.
A processor (CPU), main memory that communicates directly with the processor, connections for input/output devices, and secondary storage for saving and backing up data.
What does the control unit do?
It decodes each instruction and tells the other components what that instruction needs from them — it manages the instructions and controls the other components.
What does the ALU do?
The arithmetic logic unit carries out the arithmetic (mathematical) and logical operations an instruction requires.
What does the CPU's clock do, and what does 2.5 GHz mean?
It regulates the number of fetch-decode-execute cycles carried out per second and synchronises the other components. 2.5 GHz means 2.5 billion cycles per second.
What is a register?
A very small, very fast memory location inside the CPU, with its own specific function.
What does the program counter (PC) hold?
The memory address of the next instruction to be fetched.
MAR vs MDR — what does each hold?
MAR: the address of the memory location to be accessed. MDR: the data or instruction fetched from memory.
What do the CIR and the accumulator hold?
CIR: the instruction currently being decoded and executed. Accumulator (ACC): the data being processed and the results of calculations.
What does each bus carry — address, data and control?
Address bus: the memory address the CPU wants to access. Data bus: the actual data or instructions. Control bus: control signals that keep everything in the right order at the right time.
What is RAM's job, and what does 'volatile' mean?
RAM holds the instructions and data currently being processed so the CPU can fetch them (a program is loaded into RAM before it runs). Volatile means its contents are lost when the power is switched off.
What happens in the decode stage?
The control unit takes the instruction from the CIR and decodes its binary to work out what the other components need to do. An instruction can only run once it has been fetched and decoded.
What happens in the execute stage of an instruction that loads data?
The control unit places the data's address in the MAR, the address goes along the address bus to memory, the data comes back along the data bus to the MDR, and it is stored in the accumulator.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 30 September 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.