The CPU and the Fetch-Decode-Execute Cycle
The CPU (Central Processing Unit) carries out instructions from programs. Its job is controlled by the fetch-decode-execute (FDE) cycle, which repeats constantly:
- Fetch: the next instruction address is held in the Program Counter (PC); the instruction is fetched from memory into the Memory Address Register (MAR) then the Memory Data Register (MDR), and the PC increments.
- Decode: the Control Unit (CU) works out what the instruction means.
- Execute: the instruction is carried out, often using the Arithmetic Logic Unit (ALU) for maths or logic operations.
- Registers are tiny, super-fast storage locations inside the CPU used to hold data during this cycle (PC, MAR, MDR, Accumulator).
Von Neumann Architecture
- Edexcel GCSE is based on the Von Neumann model: a single shared memory stores both data and instructions, and a single bus system moves them.
- Common mistake: forgetting that because instructions and data share the same memory and bus, the CPU cannot fetch an instruction and fetch/write data at exactly the same time (the Von Neumann bottleneck).
Factors Affecting CPU Performance
Three key factors, and you must be able to explain each:
- Clock speed: measured in Hertz (Hz), typically GHz today; how many FDE cycles per second. Higher clock speed usually means faster processing.
- Number of cores: a core is an independent processing unit; more cores allow more instructions to be processed in parallel (multi-core processing), but only if software is written to use them.
- Cache size: a small, very fast memory built into or very close to the CPU that stores frequently used instructions/data, reducing the need to fetch from slower RAM. Bigger cache generally means fewer slow trips to RAM.
Embedded Systems
- An embedded system is a computer system built into a larger device to perform a specific, dedicated function.
- Examples: washing machines, microwave controllers, cars' engine management systems, digital watches, traffic lights.
- Common mistake: confusing an embedded system with a general-purpose computer. Embedded systems usually run one fixed program and cannot run other software.
Common Exam Mistakes
- Mixing up the roles of the CU (decodes/controls) and the ALU (performs calculations and logic).
- Saying 'more cores always means faster' without qualifying that software must be able to use multiple cores.
- Forgetting the PC holds the address of the NEXT instruction, not the current one.
- Writing 'RAM' when the question is about CPU registers or cache (different types of memory, different speeds/locations).
What are the three stages of the fetch-decode-execute cycle?
Fetch, decode, execute.
tap to reveal
What does the Program Counter (PC) store?
The memory address of the next instruction to be fetched.
tap to reveal
What is the role of the Memory Address Register (MAR)?
It holds the address of the data or instruction currently being fetched or written.
tap to reveal
What is the role of the Memory Data Register (MDR)?
It holds the actual data or instruction that has just been fetched or is about to be written.
tap to reveal
What does the Control Unit (CU) do?
Decodes instructions and coordinates and controls the operation of the CPU.
tap to reveal
What does the Arithmetic Logic Unit (ALU) do?
Performs arithmetic calculations and logical/comparison operations.
tap to reveal
What unit is clock speed measured in?
Hertz (Hz), commonly gigahertz (GHz) in modern CPUs.
tap to reveal
What architecture is Edexcel GCSE Computer Science based on?
Von Neumann architecture, with a single shared memory and bus for data and instructions.
tap to reveal
What is the Von Neumann bottleneck?
The limitation that the CPU cannot fetch an instruction and access data at the same time because they share one memory and one bus.
tap to reveal
What is a core in CPU terms?
An independent processing unit within the CPU; multiple cores allow parallel processing if the software supports it.
tap to reveal
What is cache memory and why does it help performance?
Small, very fast memory close to the CPU storing frequently used data/instructions, reducing slower trips to RAM.
tap to reveal
Define an embedded system and give an example.
A computer system built into a larger device to perform one specific dedicated function, e.g. a washing machine controller.
tap to reveal
Name three factors that affect CPU performance.
Clock speed, number of cores, and cache size.
tap to reveal
Why does a higher clock speed generally mean faster processing?
Because more fetch-decode-execute cycles can be completed per second.
tap to reveal
What common mistake do students make about multi-core CPUs?
Assuming more cores always means faster performance, without the software being written to use multiple cores in parallel.
tap to reveal