Skip to content

0478 · Unit 3 · Paper 1: Computer systems

Hardware.

0478 · Unit 3 · Hardware
Revisionbyexamplicity

The CPU and von Neumann architecture

§3.1 · Computer architecture

Every program, from a game to a calculator, is a long list of simple instructions. The CPU processes instructions and data by repeating the fetch–decode–execute cycle. In the von Neumann model, instructions and data are stored together in the same main memory. Registers are small, very fast stores inside the CPU.

Everything inside the large box is the CPU. Main memory sits outside it, joined by the address, data and control buses.

Central processing unit (CPU)System clockControl unit (CU)decodes instructionssends control signalsCIRcurrent instructionPC · program counteraddress of next instructionMAR · memory address reg.address to accessMDR · memory data reg.data / instruction movedArithmetic logic unit (ALU)calculations and logical comparisonsACC · accumulatorresult of a calculationMain memory (RAM)instructions and data199…200instruction201next instruction202dataaddress | contentsoutside the CPUAddress busData busControl bus
CPU: registers are inside the processorSystem clockControl unit (CU)Decodes instructionsSends control signalsCIRcurrent instructionPCnext instruction’s addressMARaddress to accessMDRdata / instructionALUArithmeticand logicACCinterim resultAddress busCPU → RAMData busboth waysControl bussignalsboth waysMain memory (RAM)Instructions and data stored togetherOutside the CPU

Inside the CPU

Name each part and state its purpose.

ComponentPurpose
ALU · arithmetic logic unitDoes the arithmetic (e.g. adding) and the logic (e.g. comparing two values).
CU · control unitDecodes each instruction and sends control signals that coordinate the other components.
PC · program counterPoints to the next instruction: it stores that instruction’s address in memory.
MAR · memory address registerStores the address in RAM that is about to be read or written.
MDR · memory data registerStores whatever has just come from RAM, or is about to go to RAM: data or an instruction.
CIR · current instruction registerPart of the CU: holds the instruction currently being decoded and executed.
ACC · accumulatorBuilt into the ALU: holds the interim results of its calculations.

Three buses

What each one carries, and which way.

BusCarriesDirection
Address busmemory addressesone way: CPU → memory
Data busdata and instructionsboth ways
Control buscontrol signals, e.g. a read or write signalboth ways

A microprocessor is a CPU built as an integrated circuit on a single chip.

Your turn

1 Which register holds the address of the next instruction?

2 What does the ALU do?

3 Which bus carries memory addresses, and in which direction?

  1. 1
    The PC (program counter).
  2. 2
    It does the arithmetic (e.g. adding) and the logic (e.g. comparing two values).
  3. 3
    The address bus, one way: from the CPU to memory.
Tick what you can do now
Exam focusPC and MAR hold addresses; MDR holds the data or instruction being transferred; CIR holds the current instruction. The ALU calculates; the ACC stores the result.
Practise with s26/12 Q2(a)–(c); m26/12 Q3(b)(ii); s26/13 Q4; m24/12 Q2(a) (older paper)
1 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Fetch: from memory to the CIR

§3.1 · The fetch–decode–execute cycle

To run an instruction, the CPU must first fetch it: location 200 holds ADD 202, and the PC holds 200.

An instruction cannot run while it sits in memory: the CPU must first fetch a copy of it. Here location 200 holds ADD 202, and the PC holds 200.

Follow the numbered marks 1 to 5. Each one is a step in the list under the drawing.

Central processing unit (CPU)System clockControl unit (CU)decodes instructionssends control signalsPCprogram counterMARmemory address reg.MDRmemory data reg.CIRArithmetic logic unit (ALU)calculations and logical comparisonsACCaccumulatorMain memory (RAM)instructions and data199…200ADD 202201next instruction2027address | contentsoutside the CPUAddress busData busControl bus20112002+13200read4ADD 2025ADD 202
CPU: registers are inside the processorSystem clockControl unit (CU)Decodes instructionsSends control signalsCIRPCMARMDRALUarithmetic and logicACCAddress busData busControl busMain memory (RAM) · outside the CPU199…200ADD 202201next instruction202720112002+13200read4ADD 202ADD 2025ADD 202
1
The address in the PC is copied to the MAR.
2
The PC is incremented (+1) so it points to the next instruction.
3
The address in the MAR is sent to RAM along the address bus; the CU sends a read signal on the control bus.
4
The instruction at that address is sent from RAM to the MDR along the data bus.
5
The instruction is copied from the MDR to the CIR, inside the CU, along the internal data bus.

Who does what?

  • The control unit coordinates every transfer using control signals.
  • The system clock supplies pulses that coordinate the CPU’s operations.
  • Buses carry the address, the instruction and the signals.

Register contents after each step

Each row shows only the value that step writes. A blank cell keeps its value from the row above.

PCMARMDRCIRWhat happened
start200the PC holds the address of the next instruction
the PC holds the address of the next instruction
step 1200PC copied to the MAR
PC copied to the MAR
step 2201the PC is incremented
the PC is incremented
step 3200 sent on the address bus, with a read signal
200 sent on the address bus, with a read signal
step 4ADD 202the instruction arrives on the data bus
the instruction arrives on the data bus
step 5ADD 202MDR copied to the CIR
MDR copied to the CIR
Your turn

1 The PC holds 350. What does it hold after the fetch is finished?

2 Which register receives the instruction from RAM first?

3 Which bus carries the address from the MAR to RAM?

  1. 1
    The PC is incremented during fetch, so it holds 351.
  2. 2
    The MDR.
  3. 3
    The address bus.
Tick what you can do now
Exam focusSay that the contents of the address held in the MAR are fetched, not “the instruction from the PC”. Include the PC increment and name the bus used for each transfer.
Practise with s26/12 Q2(c); w25/11 Q6(a) (older paper); s24/11 Q5(d) (older paper)
2 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Decode and execute

§3.1 · The fetch–decode–execute cycle

ADD 202 is now in the CIR. The CPU decodes it to find out what to do, executes it, and the cycle repeats.

Fetching only brings a copy of the instruction into the CPU; nothing has been done yet. ADD 202 is now in the CIR. The CPU decodes it to find out what to do, executes it, and the cycle repeats.

Marks 6 and 7 carry on from the fetch: the CU splits ADD 202 into its parts, then the value at 202 comes in and the ALU adds it.

Central processing unit (CPU)System clockControl unit (CU)decodes instructionssends control signalsPCprogram counterMARmemory address reg.MDRmemory data reg.CIRArithmetic logic unit (ALU)calculations and logical comparisonsACCaccumulatorMain memory (RAM)instructions and data199…200ADD 202201next instruction2027address | contentsoutside the CPUAddress busData busControl bus201202ADD 20212ADD2026opcodeoperand7202read75 + 7 = 12
CPU: registers are inside the processorSystem clockControl unit (CU)Decodes instructionsSends control signalsCIRPCMARMDRALUarithmetic and logicACCAddress busData busControl busMain memory (RAM) · outside the CPU199…200ADD 202201next instruction2027201202ADD 20212ADD2026opcodeoperand7202read775 + 7 = 12

6 · Decode

  1. The fetched instruction is already in the CIR, inside the CU.
  2. The control unit decodes it, using the instruction set.
  3. It is split into the opcode (the operation to carry out) and the operand (the data, or where the data is stored).

7 · Execute

  • The CU sends signals from the CIR to the ALU and the other parts that carry out the instruction.
  • The CU signals RAM to fetch any data the instruction needs.
  • The ALU performs the operation.
  • The ACC, built into the ALU, holds the data being worked on and stores the result.
  • Not every instruction needs the ALU: some do no calculation.

The words to use

Use these when you describe decode and execute, or trace one instruction.

Instruction set

Every command that a given CPU can carry out. The commands are machine code, so each type of CPU understands its own instruction set.

Example: ADD 202

Opcode ADD · operand 202 (an address). Execute:

  1. 1
    202 → MAR
  2. 2
    the value stored at 202 (7) → MDR
  3. 3
    the ALU adds it to the 5 in the ACC
  4. 4
    the result, 12, stays in the ACC

202 → MAR; the value stored at 202 (7) → MDR; the ALU adds it to the 5 in the ACC; the result, 12, stays in the ACC.

The cycle repeats

The PC already points to the next instruction, because it was incremented during fetch.

Your turn

1 Split the instruction SUB 150 into its opcode and its operand.

2 The ACC holds 9. The instruction is ADD 150, and address 150 holds 4. What does the ACC hold afterwards?

3 Which unit decodes the instruction?

  1. 1
    Opcode SUB, operand 150.
  2. 2
    9 + 4 = 13, stored in the ACC.
  3. 3
    The control unit (CU).
Tick what you can do now
Exam focusThe CU decodes. The CIR is built into the CU and stores the instruction while it is decoded and executed. Use the words opcode and operand when you describe decoding.
Practise with s26/11 Q2(a)(ii)–(iii); s26/13 Q3(c)(i); w25/12 Q4(a) (older paper)
3 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

CPU performance and embedded systems

§3.1 · Computer architecture

Two phones can run the same app at very different speeds. Much of the difference is in the CPU: a higher clock speed, more cores and more cache all make it work faster. Not every CPU is in a phone or laptop, though: an embedded system is a small computer built into a device to do one job.

How the CPU’s design affects performance

Each factor speeds the CPU up in a different way. Read across a row to link it to instructions.

FactorWhat it isIncrease it and…
clock pulsesClock speedClock cycles per second, e.g. 2.5 GHz = 2.5 billion cycles per second.more instructions per second can be processed.
corecorecorecore4 coresNumber of coresA core fetches, decodes and executes instructions.more instructions can be processed at the same time (if the software uses them).
cacheRAMcache is closer, fasterCache sizeSmall, very fast memory near the CPU. It stores frequently used data and instructions.more are kept close to the CPU, so they are fetched faster than from RAM.

Clock speed

clock pulses

2.5 GHz means 2.5 billion clock cycles per second. A higher clock speed means more instructions per second.

Number of cores

corecorecorecore4 cores

A core fetches, decodes and executes instructions. With more cores, several instructions run together, if the software uses them.

Cache size

cacheRAMcache is closer, faster

Cache holds frequently used data and instructions near the CPU. More cache means more of them are fetched faster than from RAM.

Weigh up two changes to a processor

A new processor often changes two things at once, and they can pull in opposite directions.

Processor changeConsequence
2.0 GHz → 2.8 GHzMore instructions may be processed per second by each core.
4 cores → 2 coresFewer instructions can be processed simultaneously.
  • Neither change alone proves better performance.
  • A program that uses several cores may slow down; one that uses a single core may speed up.

Neither change alone proves better performance. A program that uses several cores may slow down; one that uses a single core may speed up.

Embedded systems

Say what makes a system embedded, and give a device that contains one.

Embedded system

A computer system built into a larger device to perform a dedicated function.

  • Contains a microprocessor (or microcontroller)
  • Dedicated hardware with its program stored as firmware
  • Not easily reprogrammed by the user
  • Part of a larger device, not a general-purpose computer: it cannot normally run other apps
DeviceDedicated function
Washing machinecontrols the wash cycle
Carcontrols braking (ABS) or the engine
Security systemmonitors sensors and sounds an alarm
Lighting systemswitches lights on when it is dark
Vending machinetakes payment and releases the item
A general-purpose computer (a PC or laptop) can run many different applications. An embedded system performs one dedicated function.
Your turn

1 A CPU runs at 3.2 GHz. How many clock cycles is that per second?

2 Why can a CPU with 4 cores sometimes do more than one with 2 cores?

3 Is a washing machine controller an embedded system? Give a reason.

  1. 1
    3.2 billion: 3,200,000,000 cycles per second.
  2. 2
    Each core can process an instruction at the same time, so more instructions are processed at once (if the software uses them).
  3. 3
    Yes: it is built into the machine and does one dedicated job, the wash cycle.
Tick what you can do now
Exam focusLink each factor to instructions: more per second, more at the same time, or faster access. Answers that say “tasks”, “programs” or “data” instead of instructions are marked too vague.
Practise with s26/11 Q2(b); s26/13 Q3(c)(ii); s26/12 Q2(d); w25/12 Q4(c) (older paper); s25/12 Q4(b) (older paper)
4 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Input devices

§3.2 · Input and output devices

A computer can only work on what it is given. An input device allows data or instructions to be entered into a computer so that they can be processed.

Name the input device a task needs, and say in a few words how it works.

Barcode scanner

Shines light on the bars; the reflected pattern is read as a number that identifies the item’s database record.

QR code scanner

Captures a two-dimensional QR code and reads the data stored in it, e.g. a web address or ticket.

Digital camera

Captures still images or video and stores them as digital data.

Keyboard

Enters characters, numbers and commands by pressing keys; a keypad enters a PIN.

Microphone

Converts sound into an electrical signal: records voice or music, or gives voice commands.

Optical mouse

Detects its movement using reflected light to move the pointer; buttons select and scroll.

2D scanner

Scans a flat document or photograph into a digital image.

3D scanner

Scans the shape of a solid object to create a three-dimensional digital model.

Touch screen: touch is the input, the display is the output

Describe how each type finds the touch point.

Resistive

Two flexible layers are pressed together at the touch point; the point of contact is calculated.

Capacitive

A finger changes the electrical charge on the screen at the touch point; the change is detected.

Infra-red

A grid of infra-red beams crosses the screen; the touch point is where beams are broken.

Your turn

1 Which input device reads the bars on a product at a till?

2 Which input device makes a three-dimensional model of a solid object?

3 On a smartphone, which hardware is the input device: the touch screen or the on-screen keyboard?

  1. 1
    A barcode scanner.
  2. 2
    A 3D scanner.
  3. 3
    The touch screen. The on-screen keyboard is software.
Tick what you can do now
Exam focusName the hardware that fits the device and the task. On a smartphone, the touch screen is the input device; an “on-screen keyboard” is software.
Practise with s26/11 Q4(a); s26/11 Q2(c)(i); s26/13 Q3(a)(i)–(ii)
5 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Output devices

§3.2 · Input and output devices

Processing is wasted if the result stays inside the computer. An output device shows or produces the result of processing: information for a person, or a physical action.

Name the output device a task needs, and say in a few words how it works.

LCD screen

A backlight shines through a layer of liquid crystals; the crystals in each pixel pass or block the light to form the image.

LED screen

Light-emitting diodes (LEDs) provide the light that forms the image; bright and energy efficient.

LCD projector

Shines light through liquid-crystal panels to project a large image onto a screen or wall.

DLP projector

Digital light processing: millions of tiny mirrors on a chip direct light to project an image.

Inkjet printer

Sprays tiny droplets of liquid ink onto paper to produce a hard copy.

Laser printer

Uses a laser and a charged drum to attract toner, which is fused onto paper by heat.

Speaker

Converts electrical signals into sound: speech, music or an alert.

3D printer

Builds a solid object layer by layer from a digital design.

Actuator

A motor, valve or other component that produces movement or a physical action when it receives a signal, e.g. opens a valve, applies a brake, moves a robot arm.

Your turn

1 Which output device moves a robot arm when it receives a signal?

2 A firm prints 500 copies of a newsletter. Which printer suits it, and why?

3 What does a speaker turn electrical signals into?

  1. 1
    An actuator.
  2. 2
    A laser printer: fast, high-quality printing of many pages.
  3. 3
    Sound.
Tick what you can do now
Exam focusAn actuator is an output device. In a control system, the sensor measures, the microprocessor decides and the actuator acts. Write “screen”, not just “display”; an LED (light) also counts.
Practise with m26/12 Q3(b)(iii); s26/11 Q2(c)(ii)
6 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Choosing input and output devices

§3.2 · Input and output devices

A lift panel, a smart speaker and a greenhouse need different devices, because their users and tasks differ. To choose one, ask who the user is and what the task needs. Then name the hardware and give a reason.

Every device either brings data in to the processor or carries a result out.

Input: data goes in
touch screen
microphone
camera
→
Processor
decides
→
Output: result or action
screen
speaker
vibration motor

Built-in devices of a phone, tablet or watch

Name the input and output devices inside a handheld, and what each does there.

In a handheldDevices it can containWhat they do there
Input devicestouch screen · microphone · camera · buttons · sensors, e.g. an accelerometer or a light sensortake in touches, voice, pictures, presses and readings of the surroundings
Output devicesscreen (the display part of the touch screen) · speaker · light (LED) · vibration motor (an actuator)show images, play sound, flash a light, buzz for a silent alert

Choose the device for the scenario

Give the hardware and a reason that fits the user and the task.

ScenarioDeviceWhy it fits
A lift control panel for passengers with sight lossinput: microphone; output: speakerthey say the floor they want and hear each floor announced, without reading the panel
A smart speaker that plays music on requestmicrophonetakes voice commands as input
A family printing a few colour photos at homeinkjet printera low-cost printer that gives good colour for a small number of copies
Supermarket self-checkoutbarcode scannerreads the product code quickly and accurately, so no typing is needed
Make a copy of a broken plastic part3D scanner, then 3D printercaptures the shape as a 3D model, then builds the part
Presentation to a large audience in a hallDLP or LCD projectorprojects a very large image that everyone can see
Printing 500 copies of a newsletterlaser printerfast, high-quality printing of many pages
Opening a window in a smart greenhouseactuator (motor)turns the computer’s signal into movement
Your turn

1 A supermarket self-checkout must read product codes with no typing. Which input device suits it?

2 A doorbell must alert a person who cannot hear. Which output device suits it?

3 A print shop needs 1000 leaflets quickly. Which printer, and why?

  1. 1
    A barcode scanner: it reads the code quickly and accurately.
  2. 2
    A flashing light (LED): it gives a signal that needs no hearing.
  3. 3
    A laser printer: fast, high-quality printing of many pages.
Tick what you can do now
Exam focusName a device, not a feature or an app. Read who the user is: someone who cannot see needs sound out (a speaker) and an input that needs no sight (a microphone or Braille keypad). Give only as many answers as the question asks for: the first ones given are marked, so put your best answer first.
Practise with s26/11 Q2(c); s26/13 Q3(a); m25/12 Q4(c) (older paper); s25/12 Q3(c)(i) (older paper)
7 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Sensors: choose the right one

§3.2 · Input and output devices

Some input comes from no person at all: a freezer has to know when it is getting warm, even at night. A sensor is an input device that measures a physical property of its surroundings and sends the reading to a computer or microprocessor.

Name the sensor that captures the data a task needs: the specific name, not “sound sensor”.

SensorData it capturesA use
Accelerometermovement and tilt: change of speed or directioncount steps on a fitness band
Acousticsound levelwarn when noise from a building site is too loud
Flowrate of flow of a liquid or gasmeasure the fuel a pump delivers
Gaswhich gas is present and how much (concentration), e.g. methanewarn miners of methane underground
Humidityamount of water vapour in the airswitch on a bathroom fan to stop mould
Infra-redinfra-red radiation (heat or a broken beam)start a tap when a hand is under it
Levelheight of a liquid or solid in a containerstop a water tank overflowing
Lightlight intensitybrighten a phone screen in strong sunlight
Magnetic fieldchanges in a magnetic fieldknow a garden gate is shut (a magnet in the gate)
Moistureamount of water in the soil or a materialcheck timber is dry enough to build with
pHpHacidity or alkalinitykeep a swimming pool safe to swim in
Pressureapplied pressure or weightweigh luggage at a check-in desk
Proximityhow close an object isturn a phone’s screen off when it is held to the ear
Temperaturetemperaturewarn when a shop freezer gets too warm

Why use sensors?

  • No one needs to be there: readings are taken automatically.
  • Readings go on day and night (continuously).
  • Readings are accurate and consistent.
  • A sensor can sit where it is dangerous for a person, e.g. inside a furnace.

Do not confuse

Humidity = water vapour in the air.
Moisture = water in the soil or a material.

Infra-red detects heat or a broken beam; proximity measures distance to an object.

Your turn

1 Which sensor starts a tap when a hand is under it?

2 Which sensor warns a shop when its freezer gets too warm?

3 What is the difference between a humidity sensor and a moisture sensor?

  1. 1
    An infra-red sensor (a hand breaks the beam or gives off heat).
  2. 2
    A temperature sensor.
  3. 3
    Humidity measures water vapour in the air; moisture measures water in the soil or a material.
Tick what you can do now
Exam focusName the specific sensor: use acoustic sensor for sound level. “Sound sensor” is too general.
Practise with s26/11 Q7(a)–(b); s26/12 Q1(d); s24/13 Q6(b)–(c) (older paper)
8 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Primary storage and virtual memory

§3.3 · Data storage

A computer needs somewhere fast for the work it is doing now, and somewhere safe for everything else. Primary storage is what the CPU reaches directly: RAM and ROM. Secondary storage keeps your files when the power is off.

Primary storage

Directly accessed by the CPU. RAM and ROM (cache too).

Secondary storage

Not directly accessed by the CPU. Non-volatile: it keeps files and software permanently, so they need not be installed again each time the computer is used.

RAM and ROM

Both are primary storage, so compare what each lets the CPU do and what is left when the power goes off.

RAM · random access memoryROM · read only memory
Accessread and writeread only (normally)
Volatile?volatile: contents lost when power is offnon-volatile: contents kept without power
Storesprograms and data currently in usestart-up instructions (BIOS / bootstrap), firmware
Why both? RAM holds the programs and data in use, so the CPU can access them quickly and change them. ROM keeps the start-up instructions safe when the power is off, so they are there at power-on and cannot be changed by accident.

Why a computer needs both

  • RAM holds the programs and data in use, so the CPU can access them quickly and change them.
  • ROM keeps the start-up instructions safe when the power is off, so they are there at power-on and cannot be changed by accident.

Virtual memory: when RAM is full

Follow the orange arrows: an idle tab’s page is copied out of RAM, and copied back when that tab is clicked.

CPUruns a browserwith 5 tabs openRAM (full: 4 pages)Tab 1’s pageTab 2’s pageTab 3’s pageTab 4’s pageSecondary storagepartitioned as virtual memoryidle page copied outTab 2’s pageTab 5’s pageidle page copied outTab 3’s pagecopied back when clickedspace freeTab 2’s page
CPUruns a browser with 5 tabs openRAM: fullTab 1’s pageTab 2’s pageTab 3’s pageTab 4’s pageVirtual memoryon secondary storage1Tab 2’s pageTab 5’s page3Tab 3’s pagespace freeTab 2’s pageidle page copied outidle page copied outcopied back when clicked

How it is created and used

  • The operating system partitions part of secondary storage to create virtual memory.
  • When RAM fills up, pages the CPU is not using at the moment are copied out to virtual memory.
  • This frees RAM for the data the CPU needs; pages are moved back to RAM when needed.

Why it is necessary

  • Programs still run when there is not enough RAM for them all: idle pages wait in virtual memory.
  • Lets more programs be open at once.
  • But it is slower than RAM, because the pages sit on secondary storage.
Your turn

1 Which loses its contents when the power is off, RAM or ROM?

2 Which holds the start-up instructions?

3 RAM is full. Where do idle pages go, and what is the cost?

  1. 1
    RAM is volatile.
  2. 2
    ROM.
  3. 3
    They are copied to virtual memory, space set aside on secondary storage. It is slower than RAM.
Tick what you can do now
Exam focus“Primary” means directly accessed by the CPU, not “temporary”: ROM is primary and non-volatile. Virtual memory acts as an extension to RAM, but it is space on secondary storage, so it is slower.
Practise with m26/12 Q5(a); s26/13 Q1(a); s25/11 Q7(a)–(c) (older paper); w24/12 Q4(c) (older paper)
9 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Secondary storage

§3.3 · Data storage

A hard disk, a DVD and a USB flash drive all keep your files when the power is off, but each holds its bits in a different way: magnetic, optical or solid-state. How each one works explains when it is the right choice.

Secondary storage technologies

Describe how each type stores its bits, and name an example of each.

spinsread/write headon a moving armtracklaserspiral track ofpits and landsspinscontrol gatefloating gatetransistor channeltrapped electrons = stored chargeno moving parts
Magnetic: spinning platter and moving headRead/write headTracks and sectorsElectromagnetreads/writes bitsOptical: pits and lands on a spiral trackLaserBurns pits to writeReads differentreflectionsSolid-state: charge in a memory cellControl gateFloating gateTransistor channelTrapped electrons store charge · no moving parts

Magnetic

  • Circular platters spin; the surface is split into tracks and sectors.
  • A read/write head on a moving arm uses an electromagnet.
  • It reads or changes magnetised dots, which stand for 1 and 0.

Example: hard disk drive (HDD)

Optical

  • The disc spins.
  • A laser burns pits into a spiral track; unburnt areas are lands.
  • To read, a laser detects the difference in reflection as 1s and 0s.

Examples: CD, DVD, Blu-ray. DVDs use a red laser; Blu-ray uses a blue laser, so it holds more data

Solid-state (flash)

  • A grid of memory cells built from transistors, wired as NAND or NOR.
  • In each cell a control gate sits over a floating gate, which traps electrons: that charge stores the data.
  • No moving parts.

Examples: SSD, SD card, USB flash drive

Magnetic

Circular platters spin, their surface split into tracks and sectors. A read/write head on a moving arm uses an electromagnet to read or change magnetised dots, which stand for 1 and 0.

Example: hard disk drive (HDD)

Optical

The disc spins. A laser burns pits into a spiral track; unburnt areas are lands. When reading, a laser detects the difference in reflection as 1s and 0s.

Examples: CD, DVD, Blu-ray. DVDs use a red laser; Blu-ray uses a blue laser, so it holds more data

Solid-state (flash)

A grid of memory cells built from transistors, wired as NAND or NOR. In each cell a control gate sits over a floating gate, which traps electrons: that charge stores the data. No moving parts.

Examples: SSD, SD card, USB flash drive

Which type of storage?

Cover the Type column, then name the type each statement describes.

StatementType
A head on an arm moves just above a spinning surfacemagnetic
Electrons are trapped to store data, and nothing movessolid-state
Light reflects differently from burnt and unburnt areasoptical
Each bit is a tiny area magnetised one way or the othermagnetic
Data sits as pits and lands along one spiraloptical
Memory cells built from transistors form a grid on a chipsolid-state

Why choose solid-state?

Each difference, and what it means for the user.

Solid-state compared with opticalSo…
No moving parts: no disc to spinit survives knocks (more durable), is quiet and uses less power
Faster access to datafiles open and save sooner
Larger capacityone drive holds what would fill many discs
More expensive per GBthe drawback: optical discs are cheaper for each GB stored
Your turn

1 Which type of storage reads pits and lands with a laser?

2 Which type has no moving parts? Name one example.

3 Give one drawback of solid-state compared with optical.

  1. 1
    Optical storage.
  2. 2
    Solid-state (flash), e.g. an SSD or a USB flash drive.
  3. 3
    It is more expensive per GB.
Tick what you can do now
Exam focusSay electromagnets for magnetic storage and that a laser burns pits for optical. When comparing two types, give both sides of each difference: “solid-state reads data faster; optical is slower to read”.
Practise with m26/12 Q5(b); s26/12 Q3(f); s26/13 Q1(b); s24/12 Q9(b) (older paper); s24/13 Q4 (older paper); w25/12 Q1(e)(iv) (older paper)
10 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Cloud storage

§3.3 · Data storage

Cloud storage keeps files on remote servers run by a third party (the provider), reached over the internet. The files still sit on physical disks: the servers are in the provider’s buildings, looked after by its staff.

Take a photo on a phone and a minute later it opens on a laptop, with no cable between them. Cloud storage keeps files on remote servers run by a third party (the provider), reached over the internet. The files still sit on physical disks, in the provider’s buildings and looked after by its staff.

Your deviceuploads / downloads filesa fileInternetconnection requiredRemote serversreal disks in the provider’s data centre
Your deviceuploads / downloads filesa fileInternetconnection requiredRemote serversreal disks in theprovider’s data centre

Cloud or local storage

Give an advantage of the cloud, and a disadvantage compared with storing files locally.

Advantage of the cloudDisadvantage compared with local storage
Accessopen files from any device, anywhere, and share them with othersno internet connection, no access; a weak one slows every open and save
Hardware and spaceno storage hardware to buy or look after; more space can be added when neededlarge files take time to upload and download
Controlthe provider maintains and backs up its serversless direct control over the provider’s backup and security arrangements
If something failsfiles survive if your own device breaks or is lostif the provider fails or is hacked, files may become unavailable or lost: you rely on a third party

Fit the advantage to the scenario

Choose the points that fit this user: the same feature can count for one user and against another.

A wildlife trail camera uploads its photos to the cloud

  • If the camera is stolen or damaged, the photos already uploaded are still available.
  • Nobody has to visit the forest to look after storage hardware: the provider maintains it.
  • With little memory of its own, the camera can be small and cheap.

A dental clinic keeps patient records on its own server

  • The clinic sets its own backup and decides who may see the records.
  • It controls server maintenance and does not depend on a third party to store its records.
  • Records still open when the internet is down.
Your turn

1 What is cloud storage?

2 Your laptop is stolen. Why are files in the cloud still safe?

3 Give one disadvantage of cloud storage when the internet is down.

  1. 1
    Files kept on remote servers run by a third party, reached over the internet.
  2. 2
    The files are on the provider’s servers, not on your device.
  3. 3
    With no internet connection you cannot reach your files.
Tick what you can do now
Exam focusDefine cloud storage as files kept on remote servers run by a third party, reached over the internet. Give advantages that fit the scenario, and say “internet connection”, not “Wi-Fi”.
Practise with m26/12 Q5(c); s26/12 Q6(c)
11 / 12
0478 · Unit 3 · Hardware
Revisionbyexamplicity

Network hardware and addresses

§3.4 · Network hardware

For data to reach your phone, the network has to know where your phone is, just as a letter needs an address. A NIC joins a device to a network and has a MAC address. The network gives the device an IP address. A router forwards each packet to its destination IP address.

Network hardware

Say what a NIC and a router do, and tell a static IP address from a dynamic one.

NIC · network interface card

The hardware (wired or wireless) a device needs to connect to a network and send and receive data. The manufacturer sets the NIC’s MAC address, unique to that card.

Router

Reads each packet’s destination IP address (in the packet header) and forwards the packet towards it, deciding its route. It connects a local network to the internet and can assign IP addresses to devices.

Static or dynamic IP

Static: the same address on every connection (e.g. a web server).
Dynamic: the network can give a different address at each connection.

NIC · network interface card

  • The hardware (wired or wireless) a device needs to connect to a network and send and receive data.
  • The manufacturer sets the NIC’s MAC address, unique to that card.

Router

  • Reads each packet’s destination IP address (in the packet header).
  • Forwards the packet towards it, deciding its route.
  • Connects a local network to the internet and can assign IP addresses to devices.

Static or dynamic IP

  • Static: the same address on every connection (e.g. a web server).
  • Dynamic: the network can give a different address at each connection.

Each device at home has its own local address. The router reaches the internet for all of them through one public IP.

Laptop192.168.0.10Phone192.168.0.11Printer192.168.0.12each device has a NIC (and a MAC address)Routerassigns IP addresses ·forwards data to its destinationpublic IPInternetother networksWeb serveron the internet
Laptop192.168.0.10Phone192.168.0.11Printer192.168.0.12Routerassigns local IP addressesforwards packets towardstheir destinationpublic IP addressInternetother networksWeb serveron the interneteach device has a NIC (and a MAC address)

MAC address · media access control

The first half names the maker of the card; the second half is that card’s own number.

5C:A6:E0:3B:91:7Fmanufacturer IDunique device number
First 24 bits: manufacturer ID5C: A6: E0Last 24 bits: unique device number3B: 91: 7F
  • Purpose: uniquely identifies a device’s network interface on a network.
  • Structure: 48 bits, written as six pairs of hexadecimal digits separated by colons or hyphens.
  • Set by the manufacturer and normally fixed.

Purpose: uniquely identifies a device’s network interface on a network.

Structure: 48 bits, written as six pairs of hexadecimal digits separated by colons or hyphens. Set by the manufacturer and normally fixed.

IP address · internet protocol

  • Purpose: uniquely identifies a device on a network or the internet, so that data can be sent to the right place.
  • The network gives it to the device, often through the router; the manufacturer does not.

Purpose: uniquely identifies a device on a network or the internet, so that data can be sent to the right place. The network gives it to the device, often through the router; the manufacturer does not.

IPv4IPv6
Size32 bits128 bits
Written as4 denary numbers, each 0–255, separated by dots8 groups of 4 hexadecimal digits, separated by colons
Example192.168.0.252001:0db8:0000:0000:0000:0000:0000:0001
Notesabout 4.3 billion addresses: not enough for every deviceabout 3.4 × 10³⁸ addresses. One run of all-zero groups can be written as ::, once only: 2001:0db8::0001

Is it a valid IPv4 address?

Check there are four denary groups, each from 0 to 255.

IPv4 candidateDecision
172.16.8.20Valid: four denary groups, each from 0 to 255.
172.16.8.260Invalid: 260 is greater than 255.
Your turn

1 Is 192.168.1.300 a valid IPv4 address?

2 How many bits are in an IPv4 address, and in an IPv6 address?

3 Who sets a device’s MAC address, and who gives it its IP address?

  1. 1
    No: 300 is greater than 255.
  2. 2
    IPv4 has 32 bits; IPv6 has 128 bits.
  3. 3
    The manufacturer sets the MAC address; the network (often through the router) gives the IP address.
Tick what you can do now
Practise with s26/12 Q3(e)(ii); m26/12 Q2(b)(i); m25/12 Q5(a)–(b) (older paper); w25/11 Q2(c) (older paper)
12 / 12