Study · Pearson Edexcel 1CP2 · 3.1.1–3.1.3
Follow an instruction through the CPU and choose storage for a purpose.
About 90 minutes. Predict each figure, then try the green checks before you open them. The Quiz tab is the chapter check. Resources holds the long written questions.
Your learning route
A processor is easier to explain if you follow one instruction than if you memorise a list of names. This chapter follows an instruction from memory into the CPU, then looks at what makes a machine faster, which storage suits a job, and what makes a system embedded.
Sit down three times. First, the stored-program idea and the fetch-decode-execute figure. Second, performance, RAM and secondary storage. Third, embedded systems and the written questions. Step through the figure before you draw your own trace.
The specification references are Pearson Edexcel 1CP2, sections 3.1.1–3.1.3. OCR J277 and AQA 8525 use the same central model, with a few differences of emphasis noted at the end.
Learning objectives
By the end of the chapter you should be able to:
- Separate hardware from software, and a saved program from a running program
- Describe the roles of the control unit, ALU, registers, cache, clock and the three buses
- Trace a fetch-decode-execute cycle using the program counter, address bus, data bus and a read or write signal
- Explain why clock speed, cache, cores and RAM do not each speed up every task
- Compare magnetic, optical and solid-state storage for a stated purpose
- Define an embedded system by its dedicated function, not by its size
13.1 Hardware, software and the stored program
Definition: Hardware is the physical parts of a computer. Software is the instructions and data. A computer system needs both. The von Neumann stored-program model keeps instructions and data in the same main memory. The CPU repeatedly fetches an instruction, decodes it and executes it. A different program can be loaded without rewiring the processor.
Key terms:
- Main memory (RAM): holds the instructions and data the processor needs now. It is volatile: the contents are lost when power is removed.
- Secondary storage: keeps programs and files without power.
- Register: a tiny, very fast storage location inside the processor.
- Cache: a small store of recently used instructions or data, close to the CPU, so some slow memory reads can be avoided.
Why This Matters: "The program is saved" and "the program is running" are different claims. A saved program can sit on secondary storage with the power off. To run it, the instructions have to be available to the processor, normally by being copied into RAM. Saying the CPU reads the entire program in one go is too crude for this course.
Common Misconception: "RAM and the hard drive are the same kind of memory, just bigger and smaller." RAM is the working store and loses its contents without power. Secondary storage keeps the files. The processor's registers are smaller and faster than both.
Examiner tip
If a question says "explain", give the role and the consequence. "The control unit controls things" does not say what it controls.
Check yourself: Why can a laptop run a new program without a new processor?
Retrieval answer
Instructions and data live in memory, not in fixed wiring. Loading a different program into main memory changes what the fetch-decode-execute cycle will carry out. The same CPU hardware can execute the new instructions.
13.2 Fetch, decode and execute
Follow one program through the processor
Step through LOAD 104, ADD 105, STORE 106 and HALT. Predict which bus is carrying something before you press Next.
Address bus 100 · control bus: memory read
The address 100 is copied into the memory address register and placed on the address bus. A read signal travels on the control bus. The address bus carries where to look, not the contents of that location.
Definition: The fetch-decode-execute cycle is the repeating process by which the CPU gets an instruction from memory, works out what it means, and carries it out. The program counter holds the address of the next instruction. The memory address register holds the address currently being used. The memory data register holds the value that has just been read or is about to be written. The current instruction register holds the instruction while it is decoded.
Key terms:
- Address bus: carries the address of the location being accessed. It does not carry the contents of that location.
- Data bus: carries the instruction or data being transferred.
- Control bus: carries signals such as memory read and memory write.
- Control unit: directs the cycle and decodes the instruction.
- ALU: performs arithmetic and logical operations.
- Accumulator: in this chapter's model, the register that holds the running result.
Use the figure. The tiny program is:
| Address | Contents | Role |
|---|---|---|
| 100 | LOAD 104 | Instruction |
| 101 | ADD 105 | Instruction |
| 102 | STORE 106 | Instruction |
| 103 | HALT | Instruction |
| 104 | 12 | Data |
| 105 | 7 | Data |
| 106 | 0 | Data |
Follow LOAD 104. The program counter holds 100. That address is copied to the memory address register and placed on the address bus. A read signal goes out on the control bus. The instruction LOAD 104 returns on the data bus into the memory data register and then the instruction register. The program counter becomes 101. Only then does the control unit decode LOAD and notice that the operand address is 104. A second read puts address 104 on the address bus. The data bus carries 12, not "the number 104". The accumulator becomes 12.
ADD 105 fetches the next instruction in the same way, then reads the 7 stored at address 105. The ALU calculates 12 + 7. The accumulator becomes 19. STORE 106 puts 106 on the address bus, puts 19 on the data bus, and sends a write signal. Address 106 changes from 0 to 19. HALT is fetched and decoded, and the program stops.
This is a teaching model. A real processor may use different register names, extra cache transfers, or several clock pulses for one of these stages. A branch instruction can replace the program counter instead of letting it move to the next address. Fetching an operand is another memory access. Decode does not itself do the addition.
Why This Matters: Edexcel, OCR and AQA all ask for this cycle. The marks come from the correct item moving on the correct bus. The figure is there so you can point at the bus before you write the sentence.
Common Misconception: "The address bus carries the instruction from memory to the CPU." The address bus carries the location number. The instruction travels on the data bus. Mixing those two loses the question.
Examiner tip
Label three kinds of thing in a trace: address, instruction and data. Address 100 contains an instruction that mentions address 104. Those addresses have different jobs. The value 12 is stored at 104. It is not the number 104.
Check yourself: During the fetch of the instruction at address 100, what is on the address bus, and what is on the data bus?
Retrieval answer
The address bus carries 100. The data bus carries the instruction LOAD 104. A read signal is on the control bus. The program counter then moves on to 101.
13.3 What actually changes performance
Definition: Performance is how quickly and how reliably a system completes a stated task. A higher clock frequency means more cycles per second. It does not, by itself, mean every program finishes in proportionally less time. The processor may be waiting for memory, for a disk, or for another core's result.
Key terms:
- Clock speed: the number of timing pulses per second, often written in GHz.
- Cache size: more cache can hold more recently used instructions and data, so the CPU waits less often for RAM.
- Cores: separate processing units. They help when the work can be split. A single-threaded task may still use one core.
- RAM capacity: more RAM can hold more of the working program and its data, which can reduce slow transfers to secondary storage. It does not change what an ADD instruction means.
Why This Matters: "Add a faster processor" is not an explanation. Link the change to the bottleneck. A video export that is waiting for the disk will not be fixed only by a small increase in clock speed. A laptop that constantly moves data into virtual memory may improve if it has enough RAM for the open files.
Common Misconception: "Two cores make every program twice as fast." They can run two suitable pieces of work at the same time. A program that must do step 2 after step 1 may not split that way. The operating system's scheduler, covered in the next chapter, is what shares the cores between programs.
Examiner tip
Name the task. Then name the limit. Then say how the chosen upgrade reduces that limit. Three linked sentences beat a list of specifications.
Check yourself: A laptop is slow only when many large videos are open at once, and the disk light is busy. Which upgrade is the better first explanation: a slightly higher clock, or more RAM?
Retrieval answer
More RAM is the better match. The machine is moving working data because memory is too small, which shows up as heavy secondary-storage use. A small clock increase does not create space for those videos. More RAM still does not make the disk a backup, and it does not change the video codec.
13.4 Choose storage for a purpose
Match the device to the job
Read the constraint first. Capacity, speed, durability, portability and cost are not won by one technology.
There is no moving read head to be jolted, and the files need to open quickly. It can still fail, so it is not a backup by itself.
Definition: Secondary storage keeps data without power. Magnetic storage, such as a hard disk, records patterns in magnetised regions and is read by a moving head. Optical storage, such as a DVD, is read by a laser. Solid-state storage stores data electronically and has no moving read head.
Key terms:
- Capacity: how much can be stored.
- Speed: how quickly data can be read or written for the task.
- Durability: how well the device survives being carried, dropped or used in a rough place.
- Portability: how practical it is to move.
- Cost: what has to be paid for the capacity and speed required.
Use the storage figure. A researcher walking over rough ground, opening large files often, is a solid-state case: no moving head to be knocked, and fast access. A cheap archive of files that are rarely opened can suit a magnetic disk because of the capacity for the price. An optical disc can hand a copy to a room of machines that have drives, but it is a poor everyday working drive. None of these is "the best storage" in the abstract.
A backup on the same device, even in another folder, dies if that device dies. A backup has to be separate from the failure it is meant to survive. The security chapter returns to that point.
Why This Matters: Storage questions are scenario questions. The marks are for the property linked to the user's constraint, not for the name of a brand.
Common Misconception: "Solid-state cannot fail, so nobody needs a backup." It has no moving head, so one kind of mechanical damage is less likely. It can still be lost, stolen, wiped or electronically damaged.
Examiner tip
Give two linked reasons when the question asks for two. "It is better and faster" is one vague idea. "No moving head, so a knock is less likely to stop the read mechanism" is one developed reason. "Fast access, so the large files open with less waiting" is a second.
Check yourself: Why is defragmenting a hard disk a different argument from defragmenting a solid-state drive?
Retrieval answer
On a magnetic disk, fragments of a file can make the read head move between distant regions, which adds delay. Solid-state storage has no read head, so that mechanical reason does not apply. The software chapter picks this up when it discusses utilities.
13.5 Embedded systems have a dedicated job
Definition: An embedded system is a computer built into a larger device to do one job, or a small set of jobs. A washing-machine controller reads sensors and runs a wash cycle. A laptop is a general-purpose computer because it can run many unrelated applications. Both contain a processor and memory. "Small" does not define embedded.
Key terms:
- Dedicated function: the reason the computer is there.
- Constraint: a limit that shapes the hardware, such as battery life, cost, size, or a deadline for a response.
- Sensor and actuator: a typical embedded input and a typical physical output. You only need them when the question's device has them.
Why This Matters: A good answer names the input, the rule and the output, then one constraint. A temperature monitor might read a sensor, compare the reading with a limit, and sound an alarm or switch a heater. A battery-powered version may care more about energy use than about storing hours of video. A controller in a vehicle may need to respond within a fixed time. Listing household gadgets without a computing role does not answer the question.
Common Misconception: "If it has a screen, it is not embedded." Some embedded devices have screens. The test is whether the computer exists to perform that device's particular function.
Examiner tip
Use the device in the question. Do not replace it with a more familiar example unless you are only illustrating the definition.
Check yourself: A microwave's controller and a classroom laptop both contain processors. What makes only one of them embedded?
Retrieval answer
The microwave controller is built in to run the cooking cycle: read the keypad and sensors, time the magnetron, and stop at the end of the program. The laptop is general purpose. It can run a browser, an editor and a game that have nothing to do with one fixed job. Size is not the definition.
Independent practice
Original practice · 8 marks. Explain how an instruction is fetched from main memory, referring to the program counter, address bus, data bus and control signals. Then distinguish RAM from secondary storage using two relevant differences.
Eight-mark feedback
Award: program counter identifies the next instruction address [1]; that address is supplied to memory using the address bus [1]; a read control signal requests the contents [1]; the instruction is transferred on the data bus into the CPU [1]; program counter is updated for the next instruction [1]; instruction is available to decode [1]. RAM is volatile whereas secondary storage is non-volatile [1]; RAM holds working instructions/data while secondary storage retains programs/files for longer-term use [1]. Equivalent precise wording is valid.
Homework
Original practice · 4 marks. A field researcher carries a storage device over rough terrain and regularly opens large data files. Recommend a storage technology and explain two linked reasons.
Four-mark feedback
A solid-state device has no moving read head [1], making mechanical knocks less likely to disrupt that mechanism [1]. Its fast data access [1] can reduce waiting while large working files are opened [1]. Do not claim it cannot fail or that backups are unnecessary.
Draw a labelled diagram of the CPU and main memory with three separate buses. Annotate one fetch of the instruction at address 100 from the figure. Then design an embedded temperature monitor: one input, one processing rule, one output, and one constraint that would change the hardware. Check that your arrows do not put a memory address on the data bus.
How the exam boards differ
Pearson Edexcel 1CP2 expects the CPU components, the fetch-decode-execute cycle, buses, memory, secondary storage and embedded systems in topic 3.1. The register names in a question should be the ones the question gives. This chapter's MAR, MDR, program counter, instruction register and accumulator are the usual classroom set.
OCR J277 section 1.1 names the ALU, control unit, cache and registers, including the program counter, memory address register, memory data register and accumulator. It also expects the fetch-execute cycle, clock speed, cache size, number of cores, and embedded systems. Von Neumann architecture is the stored-program model above.
AQA 8525 section 3.4 expects the same cycle and the main registers, including the current instruction register, plus clock speed, cache and cores. Secondary storage characteristics and embedded systems sit in that computer-systems topic.
All three boards will accept a clear trace that uses the buses correctly. Do not invent a fifth bus. If a paper's diagram uses different abbreviations, use those abbreviations in the answer.
Sources and further practice
Practice questions and point allocations on this page are original Proof Academy material unless a question is explicitly identified as a past-paper bridge.
- Pearson Edexcel 1CP2 specification, topic 3.1
- OCR GCSE Computer Science J277, sections 1.1 and 1.2
- AQA GCSE Computer Science 8525, section 3.4
- PMT Paper 1 papers and mark schemes, for question style
When you use an original paper, open its matching mark scheme. A short classroom exercise is not a substitute for a full official task.
Keep your evidence
Export your notes before changing devices.
Notes stay in this browser. The Quiz tab records the chapter check, and Resources holds the long-answer questions.