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.
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.
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?
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
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.
Why does the CPU have to fetch every instruction?
What does the control unit (CU) do in the cycle?
What is the first transfer in fetch?
What happens to the PC during fetch?
What does the CIR hold, and for how long?
What is worked out in the decode stage?
What is the ALU for?
What happens to a result from the ALU?
Which two registers are involved when an instruction needs data from main memory?
What does a jump (branch) instruction do?
When execute finishes, what happens?
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 postedMore Eduqas GCSE Computer Science topics
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.