1.1 THE CPU AND VON NEUMANN ARCHITECTURE
Definition: The central processing unit (CPU) is the component that processes data and instructions by repeatedly fetching, decoding and executing program instructions stored in memory.
Key Points:
- The CPU is often called the "brain" of the computer, but a better description is the instruction processor.
- In the von Neumann architecture, both program instructions and data are stored together in the same main memory.
- Instructions are stored in consecutive memory locations and are fetched and executed one at a time.
- The CPU communicates with memory and other components along pathways called buses (address bus, data bus, control bus).
Why This Matters: Almost every modern computer, from a phone to a laptop, uses the von Neumann model. Understanding that instructions and data live together in memory is the foundation for understanding the fetch-decode-execute cycle.
Common Misconception: "Data and instructions are stored in different places." In the von Neumann architecture they are stored together in the same main memory; the CPU simply treats some memory contents as instructions and others as data.
Exam Tip: If asked to define von Neumann architecture, include the key idea that "instructions and data are stored in the same memory" - this is the marking point examiners look for.
1.2 CPU COMPONENTS AND REGISTERS
Definition: The CPU is built from several internal components that work together: the arithmetic logic unit, the control unit, cache, and a set of small fast storage locations called registers.
Key Points:
- The ALU (arithmetic logic unit) performs calculations (add, subtract) and logical comparisons (greater than, equal to, AND/OR).
- The CU (control unit) coordinates and controls the activity of the CPU; it sends control signals to fetch, decode and execute instructions.
- Cache is a small amount of very fast memory inside or very close to the CPU that stores frequently used data and instructions so they can be accessed quickly.
- Registers are tiny, extremely fast storage locations inside the CPU used to hold data during processing.
The Special Registers (OCR named registers):
| Register | Full Name | Purpose |
|---|
| PC | Program Counter | Holds the memory address of the next instruction to be fetched |
| MAR | Memory Address Register | Holds the address of the memory location to be read from or written to |
| MDR | Memory Data Register | Holds the data or instruction that has just been fetched from, or is about to be written to, memory |
| ACC | Accumulator | Stores the result of calculations carried out by the ALU |
Why This Matters: These registers are not just names to memorise - they each play a specific role in the fetch-decode-execute cycle. Knowing what each one holds lets you describe the cycle precisely.
Common Misconception: "The MAR holds data." The MAR holds an address only; the MDR holds the data or instruction. Mixing these up is one of the most common exam errors.
Exam Tip: A handy memory aid: MAR = Address, MDR = Data. The PC always points to the next instruction, not the current one.
How the components work together: Think of the CU as a conductor directing an orchestra. It does not perform calculations itself - it sends timing and control signals telling the ALU when to add, the registers when to load or store, and memory when to read or write. The ALU is the "worker" doing the arithmetic and logic, the registers are the "notepads" holding values mid-task, and the cache is a "desk drawer" of items used so often it is not worth fetching them from the slower main memory each time.
1.3 THE FETCH-DECODE-EXECUTE CYCLE
Definition: The fetch-decode-execute (FDE) cycle is the continuous process the CPU follows to run a program: it fetches an instruction from memory, decodes what it means, and then executes it.
Key Points - the three stages:
-
Fetch
- The address in the PC is copied to the MAR.
- The instruction at that memory address is fetched and copied into the MDR.
- The PC is incremented by 1, so it points to the next instruction.
-
Decode
- The instruction in the MDR is sent to the control unit.
- The CU decodes (works out) what the instruction means and what needs to happen.
-
Execute
- The instruction is carried out. This might mean the ALU performs a calculation (storing the result in the ACC), loading data, storing data, or jumping to a different instruction.
Then the cycle repeats - this happens millions or billions of times per second.
Why This Matters: Every program a computer runs - games, browsers, the operating system - is just billions of repetitions of this single cycle. It is the most fundamental process in computing.
Common Misconception: "The PC is incremented at the end of the cycle." In the standard OCR description the PC is incremented during the fetch stage, immediately after the address is read, so it is already pointing at the next instruction.
Exam Tip: Always give the stages in the correct order (fetch, then decode, then execute) and use the register names. A "describe the fetch-decode-execute cycle" question often carries 4-6 marks - one mark per accurate, ordered point.
1.4 FACTORS AFFECTING CPU PERFORMANCE
Definition: CPU performance is how quickly the CPU can process instructions. It is influenced mainly by clock speed, the number of cores, and the amount of cache.
Key Points:
- Clock speed is the number of FDE cycles the CPU can carry out per second, measured in hertz (Hz). A 3.5 GHz CPU performs about 3.5 billion cycles per second. A higher clock speed generally means more instructions processed per second.
- Number of cores: A core is effectively a processing unit. A dual-core CPU has two cores, a quad-core has four. More cores allow the CPU to process more instructions at the same time (in parallel).
- Cache size: Larger or faster cache means the CPU spends less time waiting for data from slower main memory, which speeds up processing. Cache levels (L1, L2, L3) increase in size but decrease in speed.
Soft comparison of the three factors:
| Factor | What increasing it does | Limitation |
|---|
| Clock speed | More cycles per second, so more instructions processed | Generates more heat; limited by cooling |
| Number of cores | Allows parallel processing of multiple instructions | Only helps if software is written to use multiple cores |
| Cache size | Reduces time spent fetching from slower RAM | More cache is expensive; benefit eventually levels off |
Why This Matters: When people compare computers ("which laptop is faster?"), they are really comparing these factors. A balanced understanding stops you from believing marketing claims that one number alone determines speed.
Common Misconception: "Doubling the cores always doubles the speed." Extra cores only help if the software is written to split work across them. A program that runs as a single sequence of instructions cannot use extra cores, so performance may not improve at all.
Exam Tip: For "explain how X affects performance" questions, give the factor and a consequence - for example, "more cache means fewer slow accesses to RAM, so instructions are processed more quickly".
1.5 EMBEDDED SYSTEMS
Definition: An embedded system is a computer built into a larger device to perform a specific, dedicated function, rather than acting as a general-purpose computer.
Key Points:
- Embedded systems usually have a single, fixed task and cannot run any program the user chooses.
- They are typically small, low-power, low-cost and reliable.
- Their instructions are often held in ROM because the function does not change.
Examples:
| Device | Embedded function |
|---|
| Washing machine | Controls wash cycles and water temperature |
| Microwave | Controls timing and power level |
| Car engine management | Controls fuel injection and timing |
| Digital camera | Controls image capture and storage |
| Central heating thermostat | Maintains a set temperature |
Why This Matters: Embedded systems are far more common than desktop PCs - they are inside thousands of everyday objects. They show that "a computer" does not have to look like a laptop.
Common Misconception: "A laptop is an embedded system." A laptop is a general-purpose computer because it can run many different programs. An embedded system performs one dedicated task.
Exam Tip: Contrast embedded with general-purpose: dedicated single function vs. able to run a wide range of software.
1.6 PRIMARY STORAGE: RAM, ROM AND VIRTUAL MEMORY
Definition: Primary storage (main memory) is the memory the CPU can access directly, holding the data and instructions currently in use. The two main types are RAM and ROM.
Key Points - RAM:
- RAM (Random Access Memory) is the computer's working memory, holding currently running programs and the data they use.
- RAM is volatile - its contents are lost when the power is turned off.
- RAM can be read from and written to.
- More RAM allows more programs to run at once without slowing down.
Key Points - ROM:
- ROM (Read Only Memory) stores the instructions needed to start up the computer (the bootstrap / BIOS).
- ROM is non-volatile - its contents are kept when the power is off.
- ROM is normally read-only and is not changed during normal use.
RAM vs ROM:
| Feature | RAM | ROM |
|---|
| Volatile? | Yes (loses data on power off) | No (keeps data) |
| Read/Write? | Read and write | Read only (normally) |
| Typical use | Holds running programs and data | Holds start-up / boot instructions |
| Changes during use? | Constantly | Rarely / never |
Virtual Memory:
- Virtual memory is a section of secondary storage used as if it were extra RAM when the physical RAM is full.
- When RAM fills up, the operating system moves data that is not currently needed out to virtual memory on the hard drive or SSD, freeing RAM for active tasks.
- Because secondary storage is much slower than RAM, heavy use of virtual memory slows the computer down (sometimes called "disk thrashing").
Why This Matters: RAM is why a computer with more memory can multitask smoothly. Virtual memory explains why a machine "slows to a crawl" when too many programs are open - it is constantly swapping data to and from slow storage.
Common Misconception: "Virtual memory is the same as RAM." Virtual memory is part of slow secondary storage being used to imitate RAM. It is much slower than real RAM.
Exam Tip: The single most-tested fact here is volatility: RAM is volatile, ROM is non-volatile. Learn it precisely.
1.7 SECONDARY STORAGE
Definition: Secondary storage is non-volatile storage used to keep programs and data long-term, even when the power is off. It is not directly accessible by the CPU.
Key Points - the three main types:
- Magnetic (e.g. hard disk drive, magnetic tape): data is stored as magnetised patterns on spinning platters or tape. High capacity and low cost per gigabyte, but has moving parts so is less durable.
- Optical (e.g. CD, DVD, Blu-ray): data is read and written using a laser that detects pits and lands on the disc surface. Cheap and portable, but low capacity and slower.
- Solid State (e.g. SSD, USB flash drive, memory card): data is stored electronically in flash memory with no moving parts. Fast, durable and silent, but more expensive per gigabyte than magnetic.
Comparing storage characteristics:
| Characteristic | Magnetic (HDD) | Optical (DVD) | Solid State (SSD) |
|---|
| Capacity | Very high (TBs) | Low (GBs) | High (TBs, but pricier) |
| Speed | Moderate | Slow | Fast |
| Portability | Low (internal, bulky) | High (light discs) | High (small, light) |
| Durability | Lower (moving parts) | Lower (scratches) | High (no moving parts) |
| Cost per GB | Low (cheapest) | Low | Higher |
Why This Matters: Choosing the right storage is a real engineering decision. A data centre archive might choose magnetic tape for cheap bulk storage, while a laptop chooses an SSD for speed and durability when carried around.
Common Misconception: "SSDs are just fast hard drives." SSDs use completely different technology (flash memory, no moving parts) - they are not spinning magnetic disks at all.
Exam Tip: When justifying a storage choice, name at least two characteristics and link them to the scenario - e.g. "an SSD is chosen because it is durable (no moving parts when the laptop is carried) and fast (so programs load quickly)".
1.8 UNITS OF DATA STORAGE
Definition: Data storage is measured in units that build up from the bit, the smallest unit of data.
Key Points - the order of units:
| Unit | Symbol | Size |
|---|
| Bit | b | A single binary digit (0 or 1) |
| Nibble | - | 4 bits |
| Byte | B | 8 bits |
| Kilobyte | KB | 1,000 bytes |
| Megabyte | MB | 1,000 KB |
| Gigabyte | GB | 1,000 MB |
| Terabyte | TB | 1,000 GB |
| Petabyte | PB | 1,000 TB |
Why This Matters: Knowing the units lets you make sense of real specifications - a "256 GB SSD" or a "16 MB photo" - and answer questions about how much data a device can hold.
Common Misconception: "A byte is the smallest unit." The bit is the smallest unit of data; a byte is 8 bits.
Exam Tip: OCR J277 uses powers of 1,000 (1 KB = 1,000 bytes) for these conversions. Learn the order so you can step up or down between units confidently.
Worked conversions you may be asked for:
- A 4 MB file in kilobytes: 4 × 1,000 = 4,000 KB.
- A 2 GB memory stick in megabytes: 2 × 1,000 = 2,000 MB.
- How many 5 MB photos fit on a 1 GB card: 1,000 MB ÷ 5 MB = 200 photos.
Work in one direction at a time (multiply when moving to a smaller unit, divide when moving to a larger unit) and show the conversion factor each step.
1.9 SYSTEMS SOFTWARE: THE OPERATING SYSTEM
Definition: The operating system (OS) is systems software that manages the computer's hardware and software resources and provides an interface between the user and the machine.
Key Points - the main OS functions:
| OS Function | What it does |
|---|
| Memory management | Allocates RAM to programs and uses virtual memory when needed |
| Process management | Schedules which program/task the CPU works on and when |
| Peripheral / device management | Controls input/output devices using device drivers |
| User management | Manages user accounts, log-ins and access rights/permissions |
| File management | Organises files and folders, controls saving, naming and access |
| User interface | Provides a way to interact (e.g. graphical user interface, GUI) |
Why This Matters: Without an operating system, you would have to communicate directly with the hardware. The OS hides that complexity and lets multiple programs share one set of hardware safely.
Common Misconception: "The operating system is the same as application software." The OS is systems software that runs the computer; applications (word processors, browsers) are programs that run on top of the OS to do user tasks.
Exam Tip: Learn the five management functions (memory, process, peripheral, user, file). A common question asks you to "describe two functions of an operating system" - state the function and give a one-line explanation of each.
1.10 UTILITY SOFTWARE
Definition: Utility software is systems software designed to help maintain, configure and optimise a computer system.
Key Points - common utilities:
| Utility | Purpose |
|---|
| Defragmentation | Reorganises files on a magnetic hard drive so related data is together, speeding up access |
| Compression | Reduces file size so files take up less storage or transfer faster |
| Encryption | Scrambles data so it cannot be read without the key, improving security |
| Backup | Creates copies of data so it can be recovered if lost or corrupted |
| Anti-malware / antivirus | Detects and removes malicious software |
Why This Matters: Utilities keep a system healthy, secure and efficient. For example, regular backups protect against ransomware or hardware failure.
Common Misconception: "Defragmentation helps SSDs." Defragmentation benefits magnetic hard drives. SSDs have no moving parts and access any location equally quickly, so defragmenting them gives no speed benefit and can shorten their lifespan.
Exam Tip: Be ready to match a utility to a problem - e.g. "files load slowly on a hard drive" suggests defragmentation; "a file is too big to email" suggests compression.
Software categories at a glance:
| Category | Examples | Role |
|---|
| Systems software - operating system | Windows, macOS, Linux, Android | Manages hardware and runs the computer |
| Systems software - utility | Backup, antivirus, compression tools | Maintains and optimises the system |
| Application software | Word processor, browser, game | Lets the user complete specific tasks |
Remember: utilities are part of systems software, not applications. They serve the computer itself rather than the user's everyday tasks.
1.11 LOGIC GATES AND TRUTH TABLES
Definition: Logic gates are electronic circuits that take one or more binary inputs (0 or 1) and produce a single binary output based on Boolean logic.
Key Points - the three OCR J277 gates:
- AND gate: output is 1 only when both inputs are 1.
- OR gate: output is 1 when at least one input is 1.
- NOT gate: has one input; output is the opposite of the input (also called an inverter).
Truth table for AND (inputs A and B, output Q):
| A | B | Q (A AND B) |
|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Truth table for OR (inputs A and B, output Q):
Truth table for NOT (input A, output Q):
Writing Boolean expressions: A logic circuit can be written as an expression. For example, a circuit where A and B both feed an AND gate, and the result feeds an OR gate together with NOT C, is written as Q = (A AND B) OR (NOT C). Some boards use symbols: AND = ·, OR = +, NOT = a bar or NOT, so this could appear as Q = (A · B) + C̄.
Describing a simple circuit in words: "Inputs A and B are connected to an AND gate. The output of the AND gate and input C are connected to an OR gate. The output of the OR gate is Q." This gives the expression Q = (A AND B) OR C.
Why This Matters: Every decision a CPU makes is built from logic gates. The ALU itself is made of combinations of these gates. Logic gates are how hardware "makes decisions".
Common Misconception: "OR means exactly one input is 1." The standard OR gate outputs 1 when at least one input is 1, including when both are 1. (The "exactly one" behaviour is XOR, which is not always required at GCSE.)
Exam Tip: When completing a truth table, list the input combinations systematically: for two inputs use 00, 01, 10, 11; for three inputs use all eight rows from 000 to 111. Work out any intermediate gate outputs in extra columns before finding the final output.