The CPU (Central Processing Unit) is the brain of the computer. It carries out all processing and runs the instructions of programs.
| Component | Function |
|---|---|
| ALU (Arithmetic Logic Unit) | Performs arithmetic (+, −, ×, ÷) and logical operations (AND, OR, NOT, comparisons) |
| CU (Control Unit) | Directs the operation of the processor — fetches, decodes and coordinates execution of instructions |
| Registers | Tiny, ultra-fast storage locations inside the CPU that hold data being processed |
| Cache | Small, very fast memory inside/near the CPU for frequently used data |
| Clock | Sends regular pulses to synchronise CPU operations — clock speed measured in GHz |
| Register | Full name | Purpose |
|---|---|---|
| PC | Program Counter | Holds address of next instruction to fetch |
| MAR | Memory Address Register | Holds address in memory being accessed |
| MDR | Memory Data Register | Holds data read from or written to memory |
| ACC | Accumulator | Holds results of ALU calculations |
| IR | Instruction Register | Holds the current instruction being decoded/executed |
The CPU constantly repeats the FDE cycle to run programs:
The address in the PC is copied to the MAR. The instruction at that memory address is fetched into the MDR, then copied to the IR. The PC is incremented (increased by 1) to point to the next instruction.
The CU decodes the instruction in the IR — it identifies the operation code (opcode) and any operands (data addresses). It determines what type of operation is needed.
The appropriate component carries out the instruction. If it's arithmetic/logic, the ALU processes it and stores the result in the ACC. If it's a memory operation, data is read from or written to RAM. If it's a branch, the PC may be changed.
This cycle repeats continuously — billions of times per second — until the program ends.
Data travels between CPU and memory via three buses:
8 Edexcel-style questions · instantly marked
| Term | Definition |
|---|
Timed exam-style test.