A-Level Computer Science — CPU Architecture and the Fetch-Execute Cycle: registers, buses and interrupts (lesson-prep guide for tutors)
- 2026-11-27
Students can say the CPU is the brain for a minute, then answer that the program counter holds the current instruction. This chapter pins the seven registers to their jobs, writes the fetch-execute cycle as four steps of register transfer notation in fixed order, and turns two numbers, 20 address lines and 3.0 GHz, into results students can check for themselves.
01 Prerequisites (3-minute check)
If any of these fails, fix it before the lesson starts.
| Skill | Quick check | Pass mark |
|---|---|---|
| Binary and powers of two | What is 2 to the 10 and roughly 2 to the 20 | 1024 and about one million |
| The unit of memory | How much data does one address usually hold | One byte |
| Address versus contents | The address on an envelope versus what is inside | The address locates it, the contents are the data |
| Clock speed | What does 3 GHz mean | Three billion clock cycles per second |
| Buses | Is a bus a wire or data | A group of wires carrying addresses, data or control signals |
02 Lesson flow (60 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0-8 min | Quick check and the three parts | Ask where the program lives, then draw CPU, memory and I/O | Explain stored program |
| 8-20 min | The seven registers | PC, MAR, MDR, CIR, ACC, IX and status one by one | Say which holds an address and which holds data |
| 20-32 min | Three buses and memory size | Address one way, data both ways, control issues commands | Size memory from 20 address lines |
| 32-44 min | Four fetch steps and register transfer | Copy the four steps, then decode and two instructions | Write the four steps unaided |
| 44-52 min | Four performance factors and cache | Cores, bus width, clock and cache, each with a number | Compute the effective access time |
| 52-60 min | Interrupts and exit check | Causes, detection point, five ISR steps | State the five steps in order |
03 Teaching script (read it out)
Scene 1: One machine, three parts, one memory
The point of stored program is that instructions and data sit in the same memory and are fetched the same way. An instruction is just a bit pattern like any other data; it becomes an instruction only through how the control unit treats it. Ask for two consequences: a program can be loaded and replaced like data, and instructions compete with data for the same bus, so bandwidth becomes the bottleneck.
Teach the seven registers in two groups. General purpose: the ACC is the arithmetic workbench and the IX supports indexed addressing. Special purpose, five of them: the PC holds the address of the next instruction to run, not the current one; the MAR holds the address to be read or written; the MDR holds the data read from or about to be written to memory, which may be an instruction; the CIR holds the instruction just fetched and being decoded; the status register holds flags from the last operation such as zero, carry and overflow.
Student task: given a number in each of PC, MAR and MDR, say which is an address, which is data, and which has already been incremented by one.
Say this: the PC points at the next one, the MAR holds the address, the MDR holds the goods.
Scene 2: Three buses, three directions
The data bus is two way and its width sets how much moves at once: 16 bits is 2 bytes and 64 bits is 8 bytes. At one transfer per cycle, a 16-bit bus at 1.0 GHz carries 2 billion bytes a second and a 64-bit bus at 1.6 GHz carries 12.8 billion.
The control bus carries commands and timing: read, write, interrupt request and the clock. Make one point explicit: the CPU never sees memory, it puts an address on the address bus, a read signal on the control bus, then waits for the data bus to settle. The interrupt line also runs through the control bus, which sets up the last scene.
Then the four performance factors with one number each: processor type and number of cores (4 cores at 3.0 GHz gives 1.2e+10 cycles a second, which is not four times faster), bus width (bytes per transfer), clock speed (0.333 ns per cycle) and cache (the higher the hit rate the closer to cache speed).
Student task: a machine has 24 address lines and a 16-bit data bus. How much memory can it address, and how many bytes move at once?
Say this: address lines set how big, data lines set how much at a time.
Scene 3: Four steps to fetch, five to interrupt
Only then split the execute stage. For LDD 300: MAR gets 300, MDR gets [[MAR]], ACC gets MDR. For ADD #5: ACC gets ACC plus 5. For STO 400: MAR gets 400, MDR gets ACC, contents of 400 get MDR. For JMP 250: PC gets 250, which is why the next instruction comes from 250. Indexed addressing costs one more addition: LDX 300 with IX at 7 uses effective address 307, and a base of 500 with IX 12 uses 512.
Time comes from the same model: at 3.0 GHz one cycle is 0.333 ns, four cycles is 1.333 ns and that is 750 million instructions a second; at 2.0 GHz it becomes 2 ns and 500 million. Students should state the direct proportion and also that real processors overlap stages, so this figure is an upper-bound model rather than a measurement.
Cache uses hit rate: with 4 ns in cache and 60 ns in main memory, a 90% hit rate gives 0.9 times 4 plus 0.1 times 60, which is 9.6 ns, 6.25 times faster than going to memory every time. 95% gives 6.8 ns and 8.82 times; dropping to 80% gives 15.2 ns and only 3.95 times. Over 1,000 accesses that is 60.0 microseconds down to 9.6, saving 50.4.
Interrupts come last and must be one chain: causes (an I/O transfer completes, a timer ticks, hardware fails or power drops, software errors such as division by zero or an illegal opcode), detected at the end of each fetch-execute cycle rather than at any moment, then finish the current instruction, save the PC and register state usually on the stack, load the ISR start address into the PC from the interrupt vector table, run the ISR, restore state and return to the saved PC. Uses include responding to a key press, a print job finishing, a disk read completing and a timer driving multitasking.
Student task: write the four fetch steps and say at which point in them the interrupt is checked.
Say this: the PC increments before the instruction arrives, and an interrupt waits for the instruction to finish.
04 Question types and worked steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Memory from address lines | 20 address lines | Two to the number of lines for locations, then convert units | 1,048,576 locations, 1 MiB |
| Instruction rate from a clock | 3.0 GHz, four cycles per instruction | Period is one over frequency, times the cycle count; rate is frequency over cycles | 0.333 ns, 1.333 ns, 750 million a second |
| Write the four fetch steps | register transfer notation | MAR gets PC, PC plus one, MDR gets [[MAR]], CIR gets MDR, in that order | Four fixed steps, then decode and execute |
| Cache effective access time | 4 ns cache, 60 ns memory, 90% hit rate | Hit rate times cache plus miss rate times memory | 9.6 ns, 6.25 times faster |
| Indexed effective address | LDX 300 with IX at 7 | Effective address is the operand plus the contents of IX | 307 |
| Interrupt handling order | What happens when a key is pressed | Check at cycle end, finish the instruction, save state, load the ISR, run, restore, return | The five steps are fixed |
05 Independent practice (3 questions)
| Question | Answer | What to watch |
|---|---|---|
| A computer has 24 address lines with one byte per address. How much memory can it address, and how much with 32 lines? | 16,777,216 locations, 16 MiB; 4,294,967,296 locations, 4 GiB | Always go back to two to the power, then divide by 2 to the 20 to reach MiB |
| A clock of 2.0 GHz with 4 cycles per fetch-execute. How long is one instruction and how many million per second? | 2 ns and 500 million a second | One over 2 gives 0.5 ns per cycle, times four gives 2 ns; the rate is 2 over 4 |
| Cache 4 ns, memory 60 ns, hit rate rising from 90% to 95%. What happens to the effective access time and the speed-up? | 9.6 ns down to 6.8 ns, and 6.25 times up to 8.82 times | Only the miss fraction pays the slow price, so each point of hit rate shrinks it |
06 Common mistakes and what to say
| Mistake | Student writes | Say this |
|---|---|---|
| Thinking the PC holds the current instruction | The PC contains the instruction being executed now | The PC holds the address of the next instruction; step two increments it, and the current one has already moved to the CIR. |
| Swapping MAR and MDR | The MAR holds the data read out and the MDR holds the address | MAR is the Memory Address Register and holds only an address; MDR is the Memory Data Register and holds contents. Use the full names. |
| Thinking an interrupt stops the CPU at once | Pressing a key immediately halts whatever the CPU is doing | Interrupts are checked at the end of each fetch-execute cycle, so the current instruction always completes before state is saved and the ISR address is loaded. |
| Multiplying performance by the core count | Four cores at 3.0 GHz must be four times faster than one | Cores only allow several streams at once; shared cache, memory bandwidth and the parallel share of the program keep the gain well below 4 times. |
07 Homework (paper, section and question numbers)
- A-Level Computer Science chapter index — Every chapter in this subject
- All lesson-prep guides — Other subjects in the same series
- Redo this chapter — Practice questions 1 to 3: 24 and 32 address lines, a 2 GHz instruction time, and hit rate from 90 to 95 percent
08 Exit check (last 5 minutes)
| Question | Answer | Decision |
|---|---|---|
| One register | The PC holds the address of the next instruction | Saying current instruction means scene 2 needs redoing |
| One formula | Locations equal two to the number of address lines | Saying multiply by two means scene 3 needs redoing |
| One moment | Interrupts are checked at the end of a fetch-execute cycle | Saying any time means scene 5 needs redoing |
09 Tutor FAQ
Why is the address bus one way and the data bus two way?
Addresses only ever come from the CPU, so memory only needs to receive them. Data must travel both ways because the CPU reads contents out, including instructions and operands, and writes results back over the same wires. The control bus is also two way, since memory uses it to report completion or request an interrupt.
Why does a few megabytes of cache beat 16 GB of main memory?
Because a program revisits a small working set of data again and again, so the hit rate is high. At 90% the average access is 9.6 ns against 60 ns every time, a factor of 6.25. Cache wins by hitting, not by holding everything.
How is a hardware interrupt different from a software one?
A hardware interrupt comes from a device or the clock: a key press, a finished disk read, a timer tick, a power warning. A software interrupt comes from the program itself: division by zero, an illegal opcode, a system call. Both use the same mechanism of saving state, jumping to an ISR, running it and restoring state, and differ in cause and priority.
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.



