Computer Science 0478 ยท Chapter 3 of 12
Hardware
8 revision notes on Hardware for Cambridge IGCSE Computer Science (0478). 220 past-paper questions on this chapter to practise.
About this chapter
- Syllabus
- 3
- Section
- Paper 1 ยท Computer systems
- On Paper 1
- In every paper: usually two or three questions, often 20+ marks in total
- The CPU
- Von Neumann parts, registers, buses and the fetch-decode-execute cycle
- Devices
- Input and output devices; the 14 sensors and sensor control loops
- Storage and networks
- RAM/ROM, magnetic, optical, solid state, virtual memory, cloud; NIC, MAC, IP, router
- Reading time
- 8 notes ยท about 72 min
- Past-paper questions
- 220 to practise
Study these notes in order
8 notes cover this chapter. Work through them 1 โ 8: each one ends with a quiz, so you know you're ready for the next.
Start here ยท Note 1 of 8 ยท 10 min read
The CPU and Von Neumann architecture
- Computer Architecture
- Computer Architecture
- Computer Architecture
- Input and Output Devices
- Input and Output Devices
- Data Storage
- Data Storage
- Network Hardware
Download and print
A4 PDFs of the 8 notes above, ready to print or use offline.
Summary notes
The key points of every note, for a last read before a test.
The CPU and Von Neumann architecture
- CPU: processes instructions and data (runs the FDE cycle). Microprocessor: integrated circuit on a single chip.
- Von Neumann: instructions and data stored together in the same memory.
- CU: sends control signals, manages the FDE cycle, decodes. ALU: calculations and logical operations.
- PC: address of next instruction. MAR: address about to be fetched. MDR: data / instruction fetched. CIR: current instruction. ACC: results.
- Address bus (one way): addresses. Data bus: data and instructions. Control bus: signals.
The fetch-decode-execute cycle
- Fetch: PC โ MAR; PC + 1; MAR โ RAM (address bus); instruction RAM โ MDR (data bus); MDR โ CIR.
- Decode: the CU decodes the instruction in the CIR using the instruction set (opcode + operand).
- Execute: the CU sends signals; the ALU calculates; results in the ACC. Then the cycle repeats.
CPU performance and embedded systems
- Clock: timing signals; higher clock speed = more FDE cycles per second.
- Core: a processing unit; more cores = more instructions processed at the same time.
- Cache: fast memory for frequently used data; bigger cache = faster access than RAM.
- Instruction set: list of all the machine code commands a CPU can process; used to decode.
- Embedded system: one dedicated function, built into a larger device, microprocessor, firmware, cannot be reprogrammed.
Input and output devices
- Input device: captures data and sends it to the computer to be processed.
- Output device: receives data from the computer and presents it / makes something happen.
- Inputs: keyboard, mouse, touch screen, microphone, camera, barcode / QR scanner, 2D/3D scanner, sensor.
- Outputs: screen, speaker, printer, 3D printer, projector, LED, actuator.
Sensors
- A sensor is an input device that measures a physical quantity and sends the data to a microprocessor.
- Benefits: no human needed, continuous, accurate, fast, works in dangerous places.
- 14 sensors: acoustic, accelerometer, flow, gas, humidity, infra-red, level, light, magnetic field, moisture, pH, pressure, proximity, temperature.
- Control loop: sensor โ microprocessor compares with stored value โ signal to actuator โ repeat.
Primary and secondary storage
- Primary = directly accessed by the CPU: RAM (volatile, data in use) and ROM (non-volatile, read only, bootstrap / BIOS / firmware).
- Secondary = not directly accessed, non-volatile, permanent storage.
- Magnetic: spinning platters, tracks and sectors, read/write head with electromagnets.
- Optical: laser, pits and lands, spiral track; red laser CD/DVD, blue laser Blu-ray.
- Solid state: NAND/NOR, transistors with control and floating gates, electrons trapped; no moving parts.
Virtual memory and cloud storage
- Virtual memory: a partition of secondary storage used as RAM when RAM is full.
- Pages not needed now move RAM โ virtual memory; moved back when needed.
- Necessary: prevents crashing, more programs run. Drawback: slower than RAM.
- Cloud: remote collection of servers, third party, accessed over the internet; still physical servers.
- Cloud vs local: anywhere access, no maintenance, scalable, backed up ยท needs internet, third party, fees, security.
Network hardware
- NIC: needed to connect to a network; given a MAC address at manufacture.
- MAC: unique, set by the manufacturer, hex, 48 bits; manufacturer code + serial code.
- IP: allocated by the network to identify a device; static (same) or dynamic (can change each time).
- IPv4: 32-bit, 4 denary groups 0-255, dots. IPv6: 128-bit, 8 hex groups, colons, :: shortening, more addresses.
- Router: forwards packets to the destination, assigns IP addresses, connects a LAN to the internet.
What the syllabus says you need to know
- Understand the role of the CPU and what is meant by a microprocessor
- Understand the purpose of the components in a CPU with a Von Neumann architecture
- Describe the fetch-decode-execute cycle and the role of each component in it
- Explain how cores, cache and clock affect the performance of a CPU
- Understand the purpose and use of an instruction set
- Describe the purpose and characteristics of an embedded system and where they are used
- Understand what input and output devices are and why they are required
- Understand what a sensor is, the data each type captures and where it is used
- Understand primary storage (RAM and ROM) and secondary storage
- Describe the operation of magnetic, optical and solid-state storage
- Describe virtual memory: how it is created, used and why it is necessary
- Explain cloud storage and its advantages and disadvantages compared with local storage
- Understand NICs, MAC addresses, IP addresses (static/dynamic, IPv4/IPv6) and the role of a router
Can I do this? Chapter checklist
The CPU and Von Neumann architecture
The fetch-decode-execute cycle
CPU performance and embedded systems
Input and output devices
Sensors
Primary and secondary storage
Virtual memory and cloud storage
Network hardware
Ticks are saved on this device and match the checklist at the end of each note. Anything unticked: open it and revise that section.