/en-tutor-prep-ib-cs-cpu-components-fetch-decode-execute/
/en-tutor-prep-ib-cs-cpu-components-fetch-decode-execute/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

IB Computer Science CPU Components and the Instruction Cycle: Tutor Prep Guide (registers, buses, FDE)

IB Computer Science CPU Components and the Instruction Cycle: Tutor Prep Guide (registers, buses, FDE)

  • 2026-11-27

Students can say the CPU is the brain of the computer and then fail to trace one byte from memory to the arithmetic logic unit. This lesson does one job: it ties every register and every bus to one action, so a student can take a single instruction and say which wires the data travels along.

Objectives — Students can: (1) name the division of labour between the arithmetic logic unit and the control unit, and state what each of the five registers holds (instruction register, program counter, memory address register, memory data register, accumulator); (2) explain every step of fetch, decode and execute through the address, data and control buses; (3) use a 32-bit address bus to get 4,294,967,296 addressable bytes (4 GiB) and a 64-bit data bus to move 8 bytes at a time; (4) compute cache benefit: hit rates of 96% then 75% over times of 1, 10 and 100 nanoseconds give 2.26 nanoseconds on average, 44.2 times faster than always going to main memory; (5) explain why multicore needs pipelining (HL) and why a cache hierarchy cuts waiting.

01 Prerequisites (3-minute check)

If any of these fails, fix it before the lesson starts.

Skill Quick check Pass mark
Bits and bytes How many bits in a byte Says eight
Instructions What a machine instruction is Names an opcode plus an operand
Clock speed What 3.2 GHz means Three point two billion cycles a second

02 Lesson flow (60 minutes)

Time Stage Tutor does Student does
0-6 min Opening probe Ask which parts an instruction passes through Write answers, compare at the end
6-18 min Five registers and three buses One sentence per register on what it holds Draw a CPU block diagram
18-32 min Fetch, decode, execute Each step is only which register moves to which bus Say the three steps back
32-42 min Clock and throughput 3.2 GHz, 4 cycles per instruction, 12,000 instructions Reach 11.25 microseconds
42-52 min Cache and multicore Hit rates 96% then 75%, average 2.26 nanoseconds Split 1000 accesses into tiers
52-60 min Exit check Collect three questions, mark at once Independent work

03 Teaching script (read it out)

Scene 1: Five registers and three buses: a desk with five drawers

Give the picture first. The control unit is the supervisor: it reads the instruction and issues signals. The arithmetic logic unit is the colleague who computes. The registers are five desk drawers, and each drawer holds exactly one thing.
The five drawers: the program counter holds the address of the next instruction; the memory address register holds the address being read or written this cycle, which makes it the only window onto memory; the memory data register holds the value just fetched or about to be written; the instruction register holds the instruction currently being decoded; the accumulator holds the running result of a calculation.
The three buses carry the lesson. The address bus is one way, out of the CPU. The data bus is two way, moving values in and out. The control bus carries read, write and clock signals, telling memory which operation is happening now.
Two numbers to place by hand: a 32-bit address bus addresses two to the 32, which is 4,294,967,296 bytes, exactly 4 GiB; a 64-bit data bus moves 8 bytes per transfer. Make the student compute both rather than reading them off the page.

Student task: draw the block diagram and mark which bus each register connects to, with the program counter on the address bus alone.

Scene 2: Fetch, decode, execute: every step is one register moving to one bus

Fetch has four steps and the order matters. The program counter is copied onto the address bus and into the memory address register. The control bus sends a read signal. Memory places the instruction on the data bus and into the memory data register. The instruction moves into the instruction register and the program counter increments to the next address.
Decode belongs to the control unit: it reads the opcode in the instruction register, decides whether this is an add, a load or a jump, and sets the control lines for the execute stage. Only then does the arithmetic logic unit work, adding the accumulator to the operand and writing the result back.
Work the clock numbers: at 3.2 GHz with 4 cycles per instruction the processor completes 800 million instructions a second; a program of 12,000 instructions at 3 cycles each needs 36,000 cycles, which is 11.25 microseconds. Four cores at two instructions per cycle give a theoretical 25.6 billion a second, but only when the work splits into parallel parts. Say that out loud, or students will multiply cores into clock speed.

Student task: start from the program counter increment and work backwards through the four fetch steps. If that fails, the student has memorised a slogan rather than the data flow.

Scene 3: Cache and multicore: why the hierarchy exists and how to cost it

Start with the obvious question. If main memory takes 100 nanoseconds, why not use only the fastest memory? Because fast memory is expensive, small, and has to sit close to the core. So the machine is tiered: registers, L1, L2, L3, then RAM.
Do the arithmetic once: of 1000 accesses, L1 hits 96%, so 40 go to L2; L2 hits 75% of those, so only 10 reach RAM. Average access time is 0.96 times 1 plus 0.04 times 0.75 times 10 plus 0.04 times 0.25 times 100, which is 2.26 nanoseconds, against 100 for always going to RAM: 44.2 times faster. Students must press the calculator themselves, because the exam asks what happens when the hit rate changes.
Secondary storage for contrast: solid state at 550 MB per second against 120 for a spinning disk, a ratio of 4.58; a 20 GB file takes 37.2 seconds against 170.7. Two ideas land: capacity and speed always trade off, and moving parts make random access far slower.

Student task: recompute the average with the first hit rate cut to 90 per cent and explain why six points of hit rate move the average so much.

04 Question types and worked steps

Type Example Steps Answer
Label CPU components and data flow An instruction that loads the value at address 200 into the accumulator Write the program counter and memory address register first, then the data bus direction, then the accumulator Four fetch steps, one decode, one execute, one register per step
Compute throughput and run time 3.2 GHz, 4 cycles per instruction, 12,000 instructions Cycles a second, then instructions a second, then multiply by count 800 million a second; 11.25 microseconds
Compute average cache access time L1 96%, L2 75%, 1 / 10 / 100 nanoseconds Three weighted terms, with miss rates multiplied through 2.26 nanoseconds, 44.2 times faster
Compare storage tiers Registers, cache, RAM, solid state drive, hard disk Order by speed, cost per byte and capacity Each step down is roughly an order of magnitude bigger
Sanity check (teach this): Three checks: (1) a 32-bit address bus always gives 4,294,967,296 bytes, so an answer near four hundred million has lost two powers; (2) average access time must sit between the fastest and slowest tier, and 2.26 nanoseconds sits between 1 and 100, while 0.9 means the weighting is wrong; (3) instructions per second cannot exceed the clock, since an instruction needs at least one cycle, and 0.8 billion against 3.2 GHz is one quarter, which is sound. The usual misjudgement is treating more cores as a faster clock: cores add simultaneous work, they do not shorten the cycle count of a single instruction.

05 Independent practice (3 questions)

Question Answer What to watch
With a 32-bit address bus and a 64-bit data bus, how many bytes are addressable and how many move per transfer? 4,294,967,296 bytes (4 GiB); 8 bytes Whether bits were converted to bytes
At 3.2 GHz with 4 cycles per instruction, how many million instructions run each second? 800 million Cycles a second before division
Of 1000 accesses with L1 at 96% and L2 at 75%, how many reach each tier? 40 reach L2 and 10 reach RAM Miss rates multiply; they do not subtract

06 Common mistakes and what to say

Mistake Student writes Say this
Thinking the program counter holds the instruction Writing that the program counter stores the instruction being executed “It holds an address. The instruction sits in the instruction register. One holds a location, the other holds contents.”
Drawing the data bus as one way Arrows only from memory to the CPU “The data bus runs both ways, because values are written back. Only the address bus is one way.”
Multiplying cores into clock speed Writing that four cores at 3.2 GHz means 12.8 GHz “Cores do not make one instruction faster, they run more of them at once, and only if the work splits.”
Adding the two hit rates Treating 96 per cent plus 75 per cent as the hit rate “The second level only sees the 4 per cent that missed, so it is 75 per cent of 4 per cent.”

07 Homework (paper, section and question numbers)

08 Exit check (last 5 minutes)

Question Answer Decision
Five registers Program counter, memory address, memory data, instruction, accumulator One missing means replay act one
Three buses Address one way, data both ways, control signals Wrong direction means replay act one
Cache arithmetic Miss rates multiplied tier by tier Adding them means replay act three

09 Tutor FAQ

Must students memorise the register abbreviations?

Yes, because questions and diagrams use them directly. But each register should first be named by what it holds, otherwise students recognise the letters and still connect the wrong wire.

When is pipelining taught?

Pipelining is HL only. SL students only need to know that multicore can run different instructions at once. For HL, add the four overlapping stages and the flush caused by a branch.

What does this chapter look like in the exam?

Paper 1 covers Theme A, often asking for registers and buses to be added to a diagram, or for a time to be computed from clock speed and cycle count. The case study questions place the same ideas inside a real system.

Find a tutor — freeTutor Registration →

A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →