This topic is about the machine itself: what it is made of, how it thinks in ones and zeros, what software runs on it, and how the hardware inside it works. It is where the ideas of the data representation topic meet physical components — a bus carries the bits, a register holds them, the clock times them. Much of this topic is definitional, and exam questions reward precise terms, so learn the vocabulary and then the reasoning behind it.
What you need to know
The CPU's parts
Explain the role and operation of main memory and the major components of a central processing unit: the arithmetic logic unit, the control unit, the clock, the register and the bus. The ALU does the arithmetic and the logic. The control unit coordinates everything and fetches the next instruction. The clock times the operations. The register holds the data being worked on right now. The bus is the collection of wires through which data and signals are transmitted from one component to another.
Key fact: CPU parts: ALU, control unit, clock, register and bus.
The bus
A bus is a collection of wires through which data/signals are transmitted from one component to another. It is the internal wiring of the machine, and it is why data has to travel from the memory to the processor and back. The address bus and the data bus do different jobs, but the specification only asks you to know what a bus is and what it does.
Key fact: A bus is a collection of wires carrying data and signals between components.
What makes a CPU fast
Explain the effect of the following on the performance of the CPU: clock speed, the number of processor cores and cache size. Clock speed is how many cycles the clock ticks each second — a faster clock means more cycles and more work. More cores means more instructions can be worked on at the same time. A larger cache means the processor is more likely to find what it needs close to hand instead of going to main memory.
Key fact: Faster clock, more cores and a larger cache all improve CPU performance.
The fetch-execute cycle
Understand and explain the Fetch-Execute cycle. The CPU continually reads instructions stored in main memory and executes them as required. Fetch: the next instruction is fetched to the CPU from main memory. Decode: the instruction is decoded to work out what it is. Execute: the instruction is executed (carried out), which may include reading or writing to main memory. This cycle repeats for every instruction, billions of times a second.
Key fact: Fetch, decode, execute — over and over for every instruction.
The types of memory
Understand the different types of memory within a computer: RAM, ROM, Cache and Register, and know what they are used for and why they are required. RAM holds the programs and data currently in use, and it is volatile — it loses its contents when the power goes off, which is why an unsaved document is lost if the machine crashes. ROM holds the instructions needed to start the machine and is non-volatile. Cache sits between the processor and main memory, and a register is the smallest and fastest memory, inside the processor itself.
Key fact: RAM is volatile working memory; ROM is non-volatile start-up memory; cache and registers are fast processor memory.
Main memory and secondary storage
Main memory is any form of memory that is directly accessible by the CPU, except for cache and registers. Secondary storage is any non-volatile storage mechanism not directly accessible by the CPU. So RAM is main memory and a hard disk is secondary storage. Secondary storage is required because main memory is small, fast and wiped when the power goes off, and everything a computer does needs somewhere to keep its files.
Key fact: Main memory is directly accessible by the CPU; secondary storage is not, and it is non-volatile.
Solid state and magnetic storage
Be aware of different types of secondary storage, solid state and magnetic, and explain the operation of each. SSDs use electrical circuits to persistently store the data, while magnetic storage uses magnetised patterns on a rotating disc. The advantages of an SSD are speed and durability, because there are no moving parts to fail; the disadvantage is cost per gigabyte. Magnetic discs are cheaper and hold more for less, but they are slower and can be damaged by movement.
Key fact: SSDs are fast and durable but dearer per gigabyte; magnetic discs are cheaper and larger but slower and fragile in motion.
Cloud storage and embedded systems
Cloud storage uses magnetic and/or solid state storage at a remote location, so your data is somewhere else and you reach it over the network. The advantages are that you can get at it from anywhere and you do not need to buy the disk; the disadvantage is that you need a connection and you are trusting somebody else with your data. An embedded system is a system built into a larger device, such as the controller in a car or a microwave, and it differs from a non-embedded system because it does one dedicated job and is usually not a general-purpose computer you can install software on.
Key fact: Cloud storage is remote storage reached over the network; an embedded system does one dedicated job inside a larger device.
Flashcards
Name the five major components of a CPU.
Arithmetic logic unit, control unit, clock, register and bus.
What is a bus?
A collection of wires through which data and signals are transmitted from one component to another.
What are the three stages of the fetch-execute cycle?
Fetch the next instruction from main memory, decode it, then execute it.
Which memory is volatile, and how does main memory differ from secondary storage?
RAM is volatile, because it loses its contents when the power is removed. Main memory is directly accessible by the CPU, while secondary storage is not directly accessible and is non-volatile.
How does an SSD store data?
Using electrical circuits that persistently store the data, with no moving parts.
What is cloud storage?
Magnetic and/or solid state storage at a remote location, reached over a network.
What is an embedded system?
A system built into a larger device that performs one dedicated job, such as the controller in a car.
Name three things that affect CPU performance.
Clock speed, number of processor cores and cache size.
Exam questions
Written in the style of AQA Computer Science, with a mark scheme for each one. No question here is a real past paper question.
mcq1 mark
Which statement about RAM and ROM is correct?
RAM is non-volatile and ROM is volatile
Both are volatile
Both are non-volatile
RAM is volatile and ROM is non-volatile
Mark scheme: 1 mark for identifying that RAM loses its contents when the power is removed, so it is volatile, while ROM keeps its contents without power, so it is non-volatile.
short3 marks
Explain in English the three stages of the fetch-execute cycle, and why a computer repeats it constantly.
Mark scheme: 1 mark for stating that fetch brings the next instruction from main memory to the CPU. 1 mark for stating that decode works out what the instruction is and execute carries it out, possibly reading or writing to main memory. 1 mark for explaining that the cycle repeats for every instruction in the program, and that the CPU does nothing else, which is why clock speed matters so much.
six6 marks
Explain in English the main parts of a computer system, how the CPU works, and how memory is organised.
Mark scheme: Level 1 (1-2 marks): A short answer naming the CPU parts and the memory types. Level 2 (3-4 marks): A structured answer covering the CPU, the fetch-execute cycle and the memory hierarchy. Level 3 (5-6 marks): A detailed answer explaining the roles of the ALU, control unit, clock, register and bus, describing the fetch, decode and execute stages and how the cycle repeats, describing RAM, ROM, cache and registers and the difference between volatile and non-volatile, distinguishing main memory from secondary storage and explaining why secondary storage is needed, and contrasting solid state with magnetic storage in speed, durability and cost.