How is a computer built from a processor, memory and storage, and how does the fetch-execute cycle run a program?
Describe the von Neumann architecture, the components of the CPU, the fetch-execute cycle, memory and the storage hierarchy.
A focused answer to WJEC A-Level Computer Science Unit 1 hardware, covering the von Neumann architecture, the CPU components and registers, the fetch-execute cycle, primary and secondary storage, and factors affecting performance.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
WJEC wants you to describe the von Neumann architecture, name the components of the CPU and their registers, explain the fetch-execute cycle step by step, and describe the storage hierarchy from registers to secondary storage. Hardware is the foundation under the rest of Unit 1, and the fetch-execute cycle is one of the most reliably examined topics, usually as an extended-answer question worth several marks.
The answer
The von Neumann architecture
The key idea is the stored program: because instructions live in memory like data, a computer can run any program loaded into it, which is what makes it general-purpose rather than fixed-function.
The CPU and its registers
Registers are the fastest storage of all because they sit inside the CPU; the whole fetch-execute cycle is a choreography of moving values between these registers and memory.
The fetch-execute cycle
The processor repeats three phases. Fetch: the program counter's address goes to the MAR, the instruction is read into the MDR and copied to the CIR, and the program counter is incremented. Decode: the control unit interprets the instruction in the CIR. Execute: the operation is carried out, for example a calculation in the ALU with the result in the accumulator.
The storage hierarchy and performance
Performance depends on clock speed (cycles per second), number of cores (parallel instruction streams) and cache size (how much frequently used data stays close to the CPU).
Examples in context
- Example 1. Why a stored-program machine is general-purpose
- Because instructions sit in memory alongside data, loading a different program turns the same hardware into a calculator, a games console or a web server. This stored-program idea, central to the von Neumann model, is the reason one computer can do countless different jobs rather than one fixed task.
- Example 2. Cache hits and misses in everyday use
- When you scroll a document, the CPU repeatedly accesses the same nearby data. If that data is in cache, access is fast (a cache hit); if not, the CPU waits for slower RAM (a cache miss). A larger cache raises the hit rate, which is exactly why cache size is a stated performance factor.
- Example 3. More cores versus higher clock speed
- A video-editing task that can be split across cores benefits from a multi-core CPU, while a task that must run as one sequence benefits more from a higher clock speed. This illustrates that the right performance factor depends on whether the workload can be parallelised, a nuance examiners reward.
Try this
Q1. State what is stored in the program counter. [1 mark]
- Cue. The address of the next instruction to be fetched.
Q2. State one similarity and one difference between RAM and secondary storage. [2 marks]
- Cue. Both store data; RAM is fast and volatile, secondary storage is slower and non-volatile.
Exam-style practice questions
Practice questions written in the style of WJEC exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
WJEC 20196 marksDescribe the stages of the fetch-execute cycle, naming the registers used.Show worked answer →
Describe the fetch, decode and execute phases in order, naming the register at each step.
Fetch: the address in the program counter (PC) is copied to the memory address register (MAR). The instruction at that address is fetched along the data bus into the memory data register (MDR) and copied to the current instruction register (CIR). The PC is incremented to point at the next instruction.
Decode: the control unit decodes the instruction held in the CIR to determine the operation and any operands.
Execute: the operation is carried out, for example an arithmetic operation in the ALU with the result placed in the accumulator, or data moved to or from memory.
Markers reward the fetch, decode and execute order, correct use of the PC, MAR, MDR and CIR, and incrementing the PC.
WJEC 20214 marksState two factors that affect the performance of a CPU and explain how each one influences performance.Show worked answer →
Choose two genuine performance factors and link each to speed.
Clock speed: the number of fetch-execute cycles per second. A higher clock speed means more instructions processed per second, so faster execution.
Number of cores: a multi-core CPU can run several instruction streams in parallel, so suitable workloads complete faster.
Cache size is another acceptable factor: a larger cache holds more frequently used data and instructions close to the CPU, reducing slow trips to main memory.
Markers reward two distinct factors and a correct explanation of how each raises performance.
Related dot points
- Represent numbers in binary, hexadecimal and two's complement, perform binary arithmetic, and represent characters, sound and images as binary data.
A focused answer to WJEC A-Level Computer Science Unit 1 data representation, covering binary and hexadecimal, two's complement, binary arithmetic and shifts, and how characters, sound and images are stored as binary.
- Describe systems, application and utility software, the functions of the operating system, translators, and modes of operation.
A focused answer to WJEC A-Level Computer Science Unit 1 software and systems, covering system, application and utility software, operating system functions, compilers, interpreters and assemblers, and modes of operation.
- Use Boolean algebra, logic gates and truth tables to represent and simplify logical operations.
A focused answer to WJEC A-Level Computer Science Unit 1 logical operations, covering the logic gates and their truth tables, Boolean expressions and identities, and simplifying a logic circuit.
- Describe networks and topologies, transmission media and methods, protocols and the TCP/IP stack, and how the internet works.
A focused answer to WJEC A-Level Computer Science Unit 1 communication, covering LANs and WANs, network topologies, transmission methods, protocols and the TCP/IP stack, packet switching, and how the internet works.
- Explain the principles of programming: data types, the three control structures, procedures and functions, parameter passing and recursion.
A focused answer to WJEC A-Level Computer Science Unit 1 principles of programming, covering data types and variables, sequence, selection and iteration, procedures, functions and parameter passing, and recursion.