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.
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
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
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
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 |
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)
- IB Computer Science chapter index — All chapters in this subject
- Data representation and logic — The other chapter: binary, seven gates, truth tables
- Tutor prep guide index — Matching chapters in other subjects
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.



