Cambridge IGCSE · Topic 3.1
IGCSE Computer Science 0478 / Topic 3 / IGCSE

Inside the processor.

Every program you run is carried out by the central processing unit, one tiny instruction at a time. Meet the parts inside it: two units, five registers and three buses, all working with one shared memory.

The key idea

The central processing unit (CPU) processes the instructions and data that are input into the computer so that the result can be output. A microprocessor is a type of integrated circuit with the CPU on a single chip. In a Von Neumann architecture the instructions and data are both stored in the same memory (RAM) and travel along the same buses. The CPU contains the control unit (CU), the arithmetic logic unit (ALU) and registers: PC, MAR, MDR, CIR and ACC.

CPU Control unit (CU) Arithmetic logic unit (ALU) PC CIR MAR MDR ACC registers clock times every step RAM 20 | LDA 25 21 | ADD 26 22 | STO 27 25 | 7 addressdatacontrol Von Neumann: instructions and data share one memory and the same buses
Fig. 1: the CPU's units and registers, linked to RAM by the address, data and control buses
Section 01

What the CPU does.

Explore each part in the lab to see its job. The CPU is the part of the computer that carries out program instructions: it takes in data, processes it and produces results that can be output or stored.

Examiner trap

"The CPU stores all the files" is wrong. The CPU processes; files are kept in storage. Registers inside the CPU hold only a few values at a time.

Section 02

Units and registers.

A register is a tiny, very fast store inside the CPU that holds one value. Learn each register's full name and what it holds: exam questions often give a description and ask you to name the register.

ComponentPurpose
Control unit (CU)Decodes instructions and sends control signals to manage the other parts of the CPU and the flow of data; uses the clock to keep everything in step.
Arithmetic logic unit (ALU)Carries out calculations (add, subtract) and logic operations (AND, OR, comparisons).
Program counter (PC)Holds the address of the next instruction to be fetched.
Memory address register (MAR)Holds the address of the memory location about to be read from or written to.
Memory data register (MDR)Holds the data or instruction just read from memory, or about to be written to it.
Current instruction register (CIR)Holds the instruction currently being decoded and executed.
Accumulator (ACC)Holds the result of calculations done by the ALU.
Worked example Name the register
Which register holds the address of the next instruction, and which holds the instruction being executed?
  1. "Address of the next instruction" describes a pointer to where the next instruction is: that is the program counter.
  2. "Instruction being executed" is the current instruction: that is the current instruction register.
Answer: PC and CIR
Your turn
An instruction tells the CPU to add two numbers. Which unit does the addition, and which register will hold the answer?
Examiner trap

Do not mix up the MAR and the MDR. The MAR holds an address (where); the MDR holds data or an instruction (what).

Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

Which register holds the address of the next instruction to be fetched?

Quick check+10 XP

In the lab, which part carries out comparisons and arithmetic?

Quick check+10 XP

What does a Von Neumann architecture mean?

Quick check+10 XP

Which bus is one-directional?

Section 03

Three buses.

A bus is a set of parallel wires that carries signals between the CPU, memory and input/output devices. Each bus has its own job and direction.

BusCarriesDirection
Address busMemory addresses, from the MAR to memoryOne way (CPU to memory)
Data busData and instructions, to and from the MDRTwo way
Control busControl signals from the CU, such as read, write and clock signalsTwo way
Your turn
Why is the address bus one-directional?
Examiner trap

The data bus carries instructions as well as data, because in a Von Neumann computer both are stored in the same memory.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to IGCSE Paper 1 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

Which register holds data that has just been read from memory?

Exam style+20 XP

What is a microprocessor?

Exam style+20 XP

What is the purpose of the control unit?

Exam style+20 XP

Which statement about the buses is correct?

Skill unlocked

The CPU and Von Neumann architecture, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
The role of the CPU, microprocessors, and the purpose of the ALU, CU, registers and buses in a Von Neumann computer.