GCSE · Computer Science · Eduqas · Spec C500QS

Fetch-decode-execute cycle

A CPU can't just run a program: it has to go and get every instruction, one at a time, and remember where it got up to.

Computer Science · Inside the CPU

Follow one program, one instruction at a time

A tiny made-up program is sitting in main memory. Address 0 holds LOAD 10, address 1 holds ADD 11, address 2 holds STORE 12. Address 10 holds 7 and address 11 holds 5.

Watch the registers fill, change and fill again. Before each click, guess which register is about to change.

Phase: Ready

PC

0

MAR

—

MDR

—

CIR

—

ACC

0

ALU

—

Memory 10

7

Memory 11

5

Memory 12

empty

Output

 

Step 1: The program is sitting in main memory. The PC holds 0: not an instruction, but the address of the first one. The MAR, MDR and CIR are empty.

1 / 27

Press Next to move one transfer at a time. The PC always holds an address; the instruction itself only reaches the CIR after a trip through main memory and the MDR.

Step 1 of 27: The program is sitting in main memory. The PC holds 0: not an instruction, but the address of the first one. The MAR, MDR and CIR are empty..

Watch out: The PC never holds the instruction. It holds the address of the next one, and that address is used to go and fetch it.

Computer Science · Fetch

Put the fetch in order

Order the four fetch transfers by when they happen

1 · Happens first4 · Happens last
  1. The instruction is copied from the MDR into the CIR

  2. The instruction stored at that address is copied from main memory into the MDR

  3. The address in the PC is copied into the MAR

  4. The address in the MAR is sent to main memory

Computer Science · Registers

What does each register hold?

Tick every property that each register has, then check your grid.

PC
MAR
MDR
CIR
ACC

Computer Science · Common ideas

Which idea is closest to yours?

Four students are explaining the CPU to a friend. Each one says something different about the program counter and the control unit.

Which idea is closest to what you think right now?
How sure are you?

Predict, then check

This one has a jump in it. A jump (branch) instruction changes which address the program carries on from.

The CPU is executing JUMP 20, which was fetched from address 4. During that fetch the PC was incremented to 5. When the cycle comes round again, which address does the next fetch use?

Computer Science · Execute

Which line goes wrong?

A student describes the execute stages of LOAD 10, ADD 11 and STORE 12 (memory address 10 holds 7, address 11 holds 5). One line is wrong. Which one?

A student's answer — which line goes wrong?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

How the CPU runs a program: one instruction at a time, by moving addresses and data between registers.

What you need to know

  • Every instruction goes through fetch, then decode, then execute, in that fixed order.
  • Instructions and data live in main memory, each at its own address, so every instruction has to be fetched first.
  • The control unit (CU) runs the show, sending control signals that move addresses, instructions and data around.
  • Fetch begins: the program counter (PC) holds the address of the next instruction, and that address is copied into the memory address register (MAR).
  • Have a goYour friend Sam says, "The program counter holds the instruction the CPU is about to run." Using the bullet you just read, what has Sam mixed up?

    The PC holds an address, not an instruction.

    That address is what gets copied into the MAR, so the PC can't be the instruction itself: the instruction is still in main memory.

  • The MAR sends that address to main memory, and the instruction stored there is copied into the memory data register (MDR).
  • The instruction then moves from the MDR into the current instruction register (CIR), and the PC is incremented (increased by one).
  • Have a goThe PC holds 7 when a fetch begins. What does the PC hold once that fetch is finished?

    8

    The PC is incremented (increased by one) during fetch, so it already holds the address of the next instruction.

  • Decode: the CU interprets the instruction in the CIR to work out the operation, and any data or memory address it uses.
  • Execute: the CU signals the parts needed. The ALU does any arithmetic or logic, and its result is stored in the accumulator (ACC).
  • Have a goA program needs 6 + 9. Which part of the CPU does the adding, and where does the answer go?

    The ALU adds them, and the 15 goes into the accumulator.

    The ALU is the part that carries out calculations, and its result is stored in the accumulator, not decoded or held elsewhere.

  • A jump (branch) instruction changes the value in the PC, so the next fetch comes from the new address.
  • When execute finishes, the cycle repeats with a fetch from the address now in the PC, for as long as the computer is running.

The big picture

The CPU runs a program one instruction at a time. For each instruction it fetches it from main memory using the address in the program counter, decodes it with the control unit, and executes it, then loops back to fetch again from the updated PC.

Key points

1Fetch moves an address from the PC to the MAR, then the instruction from main memory through the MDR into the CIR, and the PC is incremented.
2Decode is the control unit working out which operation the instruction in the CIR asks for, and which data or address it uses.
3Execute may bring data in through the MAR and MDR, use the ALU for arithmetic or logic, and store a result in the accumulator.
4A jump instruction changes the PC, so the next fetch starts from a new address instead of the next one in sequence.
5The cycle repeats while the computer is running, and every fetch starts from the address in the PC.

Worked example

Problem

Address 40 holds SUB 90 and address 90 holds 3. The PC holds 40 and the ACC holds 10. Work out what the PC, MAR, MDR, CIR and ACC hold once SUB 90 has been fetched, decoded and executed.

⚠ Watch out

Saying the PC holds the instruction, or that the ALU decodes it. The PC holds the address of the next instruction. The instruction is fetched from main memory through the MDR into the CIR, and the control unit decodes it.

🧠

Memory hook

PC points, MAR asks, MDR delivers, CIR holds, CU decodes, ALU calculates, ACC keeps.

✓

Check yourself

Cover the page: name each register an instruction passes through between main memory and decoding, and the one whose value said where to look.

Flashcards

(12)
Name the three stages of the cycle, in order.
Fetch, then decode, then execute, and then the cycle repeats.
Why does the CPU have to fetch every instruction?
Instructions are stored in main memory, each at its own address. The CPU has to copy one in before it can carry it out.
What does the control unit (CU) do in the cycle?
It coordinates the whole cycle with control signals, and in decode it interprets the instruction to work out what is required.
What is the first transfer in fetch?
The address in the program counter (PC) is copied into the memory address register (MAR).
What happens to the PC during fetch?
It is incremented (increased by one) so it holds the address of the next instruction to be fetched.
What does the CIR hold, and for how long?
The current instruction, copied from the MDR. It is held while the instruction is decoded and executed.
What is worked out in the decode stage?
The operation the instruction requires, and what data or memory address, if any, it uses.
What is the ALU for?
It carries out arithmetic and logic operations: calculations or comparisons.
What happens to a result from the ALU?
It is stored in the accumulator (ACC). To be kept, it can be copied back to main memory via the MDR, to the address in the MAR.
Which two registers are involved when an instruction needs data from main memory?
The MAR takes the data's address, and the MDR receives the data copied from main memory.
What does a jump (branch) instruction do?
It changes the value in the PC, so the next fetch comes from the new address instead of the next one in sequence.
When execute finishes, what happens?
The cycle repeats, starting with a fetch from the address now in the PC, for as long as the computer is running.

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 Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)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 16 November 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.