AQA GCSE Computer Science (8525), section 3.4.5 (Systems architecture)
The CPU
The central processing unit (CPU), or processor, is the part of the computer that carries out instructions. It continually fetches instructions from main memory and executes them.
Components of the CPU
| Component | Role |
|---|---|
| Arithmetic logic unit (ALU) | does calculations (add, subtract...) and logical comparisons (AND, OR, greater than...) |
| Control unit (CU) | controls and coordinates everything: fetches and decodes instructions and sends signals to the other parts |
| Clock | sends out regular pulses that keep all the parts in step (synchronised) |
| Registers | very small, very fast storage inside the CPU, holding the data and instructions currently being used |
| Bus | a set of wires that carries data and signals between components |
You do not need to know the names of specific registers.
Buses
A bus is a collection of wires through which data and signals are sent from one component to another. Buses link the CPU to main memory and to input/output devices.
Main memory
Main memory (RAM) stores the programs and data currently in use. The CPU reads instructions and data from memory, and writes results back. It is where the CPU fetches each instruction from.
How they work together
- The control unit gets an instruction from main memory.
- It decodes it and tells other parts what to do.
- The ALU carries out any calculation, using values in registers.
- The result is stored in a register, or written back to memory.
- The clock controls the timing of each step.
Example
For the instruction "add 5 to the score": the CU fetches and decodes the instruction, the ALU does the addition using the score held in a register, and the result is stored.
Common mistake: mixing up the jobs of the ALU and the control unit. The ALU does the calculations and comparisons; the CU manages and directs the process. Also, registers are inside the CPU, whereas RAM is outside it.
Exam tip: learn a short phrase for each component: ALU = calculations and logic, CU = controls and decodes, clock = keeps in step, register = fast storage inside the CPU, bus = carries data and signals.
Check yourself
What is the job of the arithmetic logic unit?
To carry out calculations and logical comparisons.
What does the clock do?
It sends regular pulses to keep the parts of the CPU in step.
What is a bus?
A collection of wires that carries data and signals between components.