Systems architecture: revision & practice
Master how the Central Processing Unit (CPU), Fetch–Execute cycle, main memory, and secondary storage work together. Revise each concept in order, test mechanisms interactively, and practise exam-style questions with revealable mark-scheme solutions.
The purpose of a CPU is to carry out a set of instructions contained in a computer program. It coordinates this using four core internal components alongside communication channels called buses.
Interactive CPU & bus schematic
Click any component or bus in the diagram—or use the buttons below—to inspect its exact function and exam terminology.
Control Unit (CU)
Coordinates the activity of the CPU by obtaining and decoding instructions from memory, then sending out signals to control how data moves around the parts of the CPU and memory to execute those instructions.
Exam tip: Always include both roles—decoding instructions and sending control signals to coordinate data movement.
| Component | Core responsibility | Key examples / details |
|---|---|---|
| Arithmetic Logic Unit (ALU) | Carries out calculations and logical decisions required by instructions. | Arithmetic (+, -, ×, ÷); logical (AND, OR, NOT); comparisons (<, >, =); binary shifts (left or right). |
| Control Unit (CU) | Coordinates CPU activity. | Obtains and decodes instructions from memory; sends control signals to manage data movement. |
| Clock | Synchronises all CPU activity. | Vibrating crystal generating digital pulses at a constant speed (up to 4 GHz). |
| Registers | Hold data temporarily inside the CPU with very fast access. | Accept, store, and transfer an instruction, storage address, or data for immediate use. |
| Buses | Communication channels moving data and signals between CPU, memory, and I/O. | Beyond the spec: Data bus (data), Control bus (control signals), Address bus (memory addresses to read/write). |
The processor continually runs through three repeated stages: it fetches an instruction from memory, decodes it, and executes it. Each ‘tick’ of the CPU clock represents one step in this cycle.
Interactive Fetch–Execute cycle stepper
Step through the three stages in order or select any stage directly to see which hardware components are active.
Fetch — Retrieve instruction from main memory
Each instruction in a computer program is stored in a particular location (address) in main memory. The data contained in the address of the next instruction is fetched and placed in a register inside the CPU.
Active components: Main memory → Buses → CPU Registers
Clock speed
Measured in gigahertz (GHz). Typical modern computers operate at speeds up to 4 GHz (4 billion instructions per second). Faster clock speed means more instructions completed per second.
Cache memory
Small, very expensive memory located between main memory (RAM) and the CPU (often just a few MB compared with 8 GB of RAM). It stores instructions and data used repeatedly or likely to be required next. More cache reduces slow fetches from main memory.
Processor cores
Each core performs separate Fetch–Execute cycles independently. A multi-core CPU (such as a quad core with four cores) can handle multiple instructions simultaneously—only if the program is written to take advantage of multiple cores and the task can be split up.
CPU performance & cache lookup simulator
Adjust clock speed, core count, and software parallelism, then test cache hit vs cache miss pathways.
2.3 GHz · Quad core (4 independent Fetch–Execute units)
Each core runs up to 2.3 billion pulses per second. Because the program is written to split the task, all 4 cores handle separate instructions simultaneously (up to 9.2 billion combined cycles/sec).
Cache lookup pathway (Figure 4.18)
Test what happens when the Control Unit requests data:
Control Unit checks cache first for the needed data.
Cache hit! Data is already copied here and sent straight to the CPU at high speed.
Bypassed on this lookup—slower main memory fetch avoided.
A computer needs memory for data it must access quickly: start-up (boot) instructions, the operating system, programs currently running, and any associated data. Memory is made of main memory (directly accessible by the CPU), cache memory, and registers.
Relative data access speed hierarchy (Figure 4.20)
| Feature | RAM (Random Access Memory) | ROM (Read-Only Memory) |
|---|---|---|
| Volatility | Volatile — needs constant electrical power; loses contents when turned off. | Non-volatile — does not require power; keeps contents when switched off. |
| Read / Write | Read and write — data can be read from and written to RAM by the computer. | Read-only — fixed contents; computer cannot overwrite ROM (written at manufacture or via special process). |
| What it holds | Operating system, applications currently running, and any associated data in use. | Data and instructions required to start up (boot) the computer — the Bootstrap Loader. |
When a program is opened, it and its data are copied from slow secondary storage (e.g. an HDD) into RAM so the CPU can access them quickly. More RAM lets a computer hold more programs and data open simultaneously without a noticeable drop in performance.
Quick check: Does it live in RAM or ROM?
Select RAM or ROM for each item to check your understanding immediately.
Unlike primary memory (RAM and ROM), secondary storage is not directly accessible by the CPU. We need it to permanently store the operating system, programs, documents, images, and other files so they are not lost when switched off. Secondary storage must be non-volatile, low cost, high capacity, and reliable.
Key terms to use in exam answers
- Flash memory: Memory made from electronic circuits (used in solid-state storage).
- Latency: A delay before data can be read, written, or transferred (higher in HDDs due to platter rotation and head movement).
- Fragmentation: Data saved in different physical locations across a magnetic hard disk drive, slowing down access speeds.
| Storage type | How it works | Advantages | Disadvantages |
|---|---|---|---|
| Magnetic (HDD) | Rotating stack of platters coated in tiny magnets (north = 1, south = 0); moving read/write heads. | Large capacity (terabytes); low cost per GB; reliable for medium-term storage (5–7 years); small drives can be portable. | Slower access speeds than SSD (latency & fragmentation); large drives not portable; damaged by shocks or strong electric/magnetic fields. |
| Solid-state (SSD) | Flash memory electronic circuits with no moving parts (SSDs, USB pen drives, memory cards). | Very fast access speed (low latency); very portable (light, thin); very durable; low power, no noise or heat; reliable long term. | Lower capacity than magnetic HDDs (though larger than optical); more expensive per GB than magnetic drives. |
| Optical (CD, DVD, Blu-Ray) | Laser light shone onto rotating disk covered in tiny pits/indentations; reflections read as 1s or 0s. | Very portable; durable against shocks and extreme conditions (but not scratches); reliable for many years; low cost per disk. | Limited capacity; slowest access times; cost per GB is expensive on CDs. |
| Cloud storage | Remote servers in data centres (using magnetic or solid-state drives) accessed via the internet. | Access anywhere with internet; flexible capacity; automatic backups & updates; easy global sharing. | Requires internet connection; less user control over security (hacker target); unclear legal data ownership; terms/prices can change. |
700 MB (~18p) · DVD = 4.7 GB / 8.5 GB (~60p–80p) · Blu-Ray = 25 GB / 50 GB (£1.80–£3.00, ideal for HD films and console games).
Hybrid systems: Combine a smaller SSD (OS and frequent files) with a high-capacity HDD (large archives) to balance speed and cost.
Storage scenario advisor
Select a scenario to review the recommended storage medium and exam justification points.
Scenario 1: Portable tablet or digital camera in motion
Best choice: Solid-state storage (flash memory / SSD / memory card). Because it uses electronic circuits with no moving parts, it is compact, lightweight, uses low power, produces no noise or heat, and is durable against sudden movements.
Review all core definitions, performance factors, memory comparisons, and storage trade-offs on one quick-reference sheet before starting the practice questions below.
Computer systems & the CPU
- A computer system consists of hardware (physical components) and software (programs that provide instructions).
- The computer inputs, processes and stores, and outputs data.
- Computer hardware works with software to process data.
- The hardware that processes the data is the Central Processing Unit (CPU); its purpose is to carry out a set of instructions contained in a computer program.
Components of a CPU
- Arithmetic Logic Unit (ALU): Carries out all arithmetic calculations (e.g. add, subtract), logical decisions (e.g. AND, OR) and comparisons (e.g. equal to, greater than).
- Control Unit (CU): Decodes instructions and sends signals to control how data moves around the CPU and memory to execute them.
- Clock: A vibrating crystal generating digital pulses at a constant speed to synchronise CPU activity.
- Registers: Tiny memory locations inside the CPU with very fast access; hold an instruction, storage address, or data.
- Buses: Communication channels through which data moves, connecting the CPU with main memory and input/output devices.
The performance of the CPU
- Clock speed: The CPU works at high speeds governed by the clock; a faster clock completes more instructions per second (up to 4 GHz or 4 billion instructions/sec).
- Cache memory: Small in size but accessed very quickly by the CPU; more cache provides faster access to data.
- Number of processor cores: Each core performs separate Fetch–Execute cycles, so multiple cores may process more instructions simultaneously.
The Fetch–Execute cycle
The CPU continually fetches, decodes, and executes instructions:
- Fetch — an instruction in the form of data is retrieved from main memory.
- Decode — the CPU decodes the instruction.
- Execute — the CPU performs an action according to the instruction.
Memory overview
A computer needs memory for data it must access quickly:
- Start-up or boot instructions
- The operating system
- Programs that are running
- Any data associated with the operating system or programs
Memory is made of main memory (RAM & ROM), cache memory (sits between processor and RAM; very small but faster than RAM), and registers (tiny locations inside the CPU with very fast access times).
RAM & ROM key points
- RAM (Random Access Memory): Volatile (loses contents when power is off), read/write, much faster for the CPU to access than secondary storage. More RAM allows more programs and data to run at the same time, improving performance.
- ROM (Read-Only Memory): Non-volatile (keeps contents when power is off), read-only (cannot be overwritten; normally written at manufacture), stores start-up / boot instructions.
| RAM | ROM |
|---|---|
| Is volatile and needs power to maintain the content | Is non-volatile and does not require power to maintain the content |
| Is read and write — data can be read from and written to RAM by the computer | Is read-only — the computer cannot overwrite ROM |
| Holds the operating system and any programs and data currently in use by the computer | Holds the data and instructions required to start up (boot) the computer |
Secondary storage: purpose & media types
Secondary storage is needed to permanently store files and programs. It needs to be non-volatile (doesn’t lose data when switched off), low cost, high capacity, and reliable.
- Magnetic storage (HDDs): Uses a stack of rotating magnetic platters and a moving read/write head to read and write data; reliable, cost-effective, high-capacity storage at low cost.
- Solid-state storage (SSDs): Uses flash memory electronic circuits with no moving parts — faster access, low power, no noise or heat, robust, lightweight, and compact (ideal for tablets, phones, cameras, and general-purpose computers), but smaller capacity and higher cost per unit than HDDs.
- Optical storage (CDs, DVDs, Blu-Ray): Uses laser light reflected off a rotating disk and reads reflections as 1s or 0s. Blu-Ray has a much higher capacity than CDs and DVDs (ideal for HD video films or large data). Low cost and robust for distributing data.
| Storage medium | Advantages | Disadvantages |
|---|---|---|
| Magnetic storage |
|
|
| Solid-state storage |
|
|
| Optical storage |
|
|
The cloud is a generic term for services and applications stored or run on remote servers accessed via the internet rather than locally on your computer, tablet, or phone. These remote servers use magnetic or solid-state storage technology.
Advantages of cloud storage
- Files and applications can be accessed from anywhere in the world with an internet connection.
- Storage space is flexible — users can buy additional storage when they run out.
- Data stored in the cloud is regularly backed up and kept secure by the hosting company.
- Data can be shared easily with colleagues anywhere in the world.
Disadvantages of cloud storage
- An internet connection is required to access files and services.
- Users have little control over the security of their data.
- Data stored in the cloud could be targeted more easily by hackers than data stored locally.
- Cloud providers can change their terms and prices with little notice.
Practise answering all 13 textbook Knowledge Check questions (28–40) plus 4 additional topic questions. Type your own draft response first, then select Reveal solution & explanation to compare against the source mark-scheme points and examiner guidance.