Skip to content

9618 · Unit 3 · Paper 1: Theory fundamentals

Hardware.

9618 · Unit 3 · Hardware
Revisionbyexamplicity

Input, output, memory and storage

§3.1 · Computers and their components

Switch a laptop off halfway through an essay and whatever was only in memory is gone, while the saved copy waits on the drive. Input, output, primary memory and secondary storage each have their own job around the processor.

A processor needs data in, results out, and somewhere to keep both. Input, output, primary memory and secondary storage have different jobs around the processor.

Start at the processor. Data comes in from input and results go out to output; the processor reaches primary memory directly, but secondary storage only by loading into memory first.

Input deviceskeyboard, touchscreen, sensorsProcessor (CPU)executes the instructionsOutput devicesscreen, printer, actuatorsdata inresults outPrimary memoryRAMdata in use nowROMstart-up instructionsaccessed directlySecondary storageFixedHDD, SSDRemovableflash drive, discload / saveInput deviceskeyboard, touchscreen, sensorsdata inProcessor (CPU)executes instructionsresults outOutput devicesscreen, printer, actuatorsdirect accessPrimary memoryRAMdata in use nowROMstart-up instructionsload / saveSecondary storagefixed: HDD, SSD · removable: flash, disc

The need for each component

Each component is there because a job would fail without it. Be able to say why a computer needs each one: what would go wrong without it.

ComponentWhy it is needed
Inputdata and instructions must be entered or captured (by a user or a sensor) before they can be processed
Outputthe results of processing must be shown to a person or used to act on the surroundings
Primary memoryholds the instructions and data currently in use, so the processor can access them directly and quickly; ROM keeps the start-up instructions
Secondary storagenon-volatile: keeps programs and files with the power off, and holds far more data at a lower cost per byte
Removable storagedata can be carried between computers, or kept as a backup away from the computer

Which data goes where?

Ask: is it in use now (primary memory), or must it survive switch-off (secondary storage)?

DevicePrimary memory: in use nowSecondary storage: must survive switch-off
Garden wildlife camera (motion sensor and camera)the current motion-sensor reading; the clip being recorded now; the instructions being executed; the start-up instructions (in ROM)saved clips, with the oldest overwritten when the card is full
Bike computerthe distance of this ride, while ridingthe total distance since the bike was bought
More RAM lets more of the running data and instructions stay in primary memory, so they do not have to be fetched from slower secondary storage first.
Your turn

1 A games console holds the level being played now, and the saved games. Which goes in primary memory and which in secondary storage?

2 Why does a computer need secondary storage as well as RAM?

3 Is ROM primary memory or secondary storage?

  1. 1
    the level being played now: primary memory (RAM); the saved games: secondary storage, because they must survive switch-off
  2. 2
    RAM is volatile: secondary storage keeps programs and files with the power off, and holds far more data at a lower cost per byte
  3. 3
    primary memory: the processor accesses it directly
Tick what you can do now
Exam focusPrimary memory is not only RAM: ROM is primary memory too, and it is non-volatile.
Practise with s24/11 Q2(c)(i); s25/11 Q6(a)(ii); s26/12 Q6(c)
1 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Embedded systems

§3.1 · Computers and their components · embedded systems

An aquarium lid can hide a computer that nobody ever calls a computer: it warms the water, runs the filter and switches the lamp, and does nothing else. That is an embedded system: a small computer (a microprocessor or microcontroller with its own memory, inputs and outputs) built into a larger device to do one specific task.

An embedded system is a small computer (a microprocessor or microcontroller with its own memory, inputs and outputs) built into a larger device to do one specific task.

Follow the arrows through the one chip: four inputs in, four outputs out, and every one of them serves the tank.

AQUARIUM (the larger system)Keypadtarget temperatureTemperature sensorwater temperatureWater-level sensorlevel in the tankClocktime of dayHeaterwarms the waterFilter pumpcleans the waterLamplights the tankDisplaytemperature nowMicrocontroller (one chip)ProcessorRAMsettings, readingsROMfirmwareinputsoutputsdedicated to one task: looking after the tankAQUARIUM: THE LARGER SYSTEMKeypadtarget temperatureTemperature sensorwater temperatureWater-level sensorlevel in the tankClocktime of dayinputsMicrocontroller: one chipProcessorRAMsettings, readingsROMfirmwareoutputsHeaterwarms the waterFilter pumpcleans the waterLamplights the tankDisplaytemperature nowOne dedicated task: looking after the tank

Characteristics, applied to the device in the question

A washing machine, a car and a fitness strap all hide an embedded system. Be able to apply each of the five characteristics to the device the question names.

CharacteristicAquarium controllerWildlife cameraHeart-rate chest strap
Built into a larger devicein the tank’s lid, sold with the aquariuminside the camera caseinside the strap
Dedicated to one specific taskruns the heater, pump and lamp, nothing elserecords a clip when an animal passesmeasures heart rate and sends it to a phone
Own processor, memory and inputs and outputs, all for that taskmicrocontroller with RAM and ROM; sensors in; heater, pump, lamp outmotion sensor and camera with a small processorpulse sensor and radio chip
Firmware not easily changed by the userthe owner sets a temperature, not the programthe owner picks settings, not the programits function is fixed when it is made
Needs limited processing power; often no operating systema small, cheap chip checks a few sensorsone small chip is enoughone small chip is enough

Aquarium controller

CharacteristicHow it applies
Built into a larger devicein the tank’s lid, sold with the aquarium
Dedicated to one specific taskruns the heater, pump and lamp, nothing else
Own processor, memory and inputs and outputs, all for that taskmicrocontroller with RAM and ROM; sensors in; heater, pump, lamp out
Firmware not easily changed by the userthe owner sets a temperature, not the program
Needs limited processing power; often no operating systema small, cheap chip checks a few sensors

Wildlife camera

CharacteristicHow it applies
Built into a larger deviceinside the camera case
Dedicated to one specific taskrecords a clip when an animal passes
Own processor, memory and inputs and outputs, all for that taskmotion sensor and camera with a small processor
Firmware not easily changed by the userthe owner picks settings, not the program
Needs limited processing power; often no operating systemone small chip is enough

Heart-rate chest strap

CharacteristicHow it applies
Built into a larger deviceinside the strap
Dedicated to one specific taskmeasures heart rate and sends it to a phone
Own processor, memory and inputs and outputs, all for that taskpulse sensor and radio chip
Firmware not easily changed by the userits function is fixed when it is made
Needs limited processing power; often no operating systemone small chip is enough

Being built for one task is what makes it cheap, and also what makes it hard to change.

Benefit

One special-purpose design, made in huge numbers, gives a low cost per unit.

Drawbacks

  • The user finds the firmware hard to change or update.
  • Finding and repairing a fault is a specialist job.
  • It cannot easily be adapted for another task.
  • Faulty or outdated units are thrown away rather than repaired: e-waste.
Your turn

1 A smart doorbell has a camera, a button and a radio chip. Which characteristic does “it only records and sends video when the button is pressed” show?

2 Give one reason a washing machine’s embedded system has no operating system.

3 Give one drawback of an embedded system for the user.

  1. 1
    it is dedicated to one specific task
  2. 2
    it needs only limited processing power for its one task, so a small, cheap chip runs the program directly
  3. 3
    for example: the firmware is hard to change or update; a faulty unit is thrown away (e-waste)
Tick what you can do now
Exam focusEach reason must name the device in the question: “the strap only measures heart rate”, not “it does one task”.
Practise with s24/11 Q2(a); w24/12 Q2(a); s26/12 Q6(a)
2 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

RAM and ROM

§3.1 · Computers and their components · RAM and ROM

Cut the power to the aquarium controller and its latest readings vanish, yet it still knows how to start again. RAM and ROM are both primary memory: the processor accesses them directly.

Read the three moments in order and watch each memory at the power cut: the RAM contents are lost, the ROM contents stay exactly the same.

Controller runningPower cutSwitched on againRAMvolatilewater: 24.6 °Cheater: onlamp off in: 48 mincontents lostempty: new data writtenROMnon-volatilestart-up instructionsheater control routineslamp timer routinesstart-up instructionsheater control routineslamp timer routinesstart-up instructionsheater control routineslamp timer routinesController runningRAM24.6 °C · heater onlamp off in 48 minROMstart-up instructionsheater and lamp routinesPower cutRAMcontents lostROMstart-up instructionsheater and lamp routinesSwitched on againRAMempty; new readingsare written into RAMROMstart-up instructionsheater and lamp routines

Differences between RAM and ROM

Three differences. Give each one as a pair that names both memories.

RAMROM
Changing the contentscontents are read and changed as the device runscontents are read only in normal use
When the power is offvolatile: the contents are lostnon-volatile: the contents are kept
What it storesprograms and data in use now, e.g. open files and parts of the OSwhat the device needs unchanged at every start: the bootstrap program, BIOS, firmware, the kernel of the OS

Their use in a range of devices

For a device, be able to say what its RAM holds and what its ROM holds.

DeviceRAM holds…ROM holds…
Aquarium controllerlatest water temperature, heater on or off, lamp timerstart-up code and the heater and lamp routines
Laptop or PCrunning applications, open files, OSbootstrap program that starts the computer
E-readerthe page on screen, the reader’s place in the bookboot code that starts the reader
Digital pianothe notes being played, the sound chosenrecorded instrument sounds, start-up code
An embedded system keeps its firmware in ROM: the program stays unchanged during normal operation, and it must survive a power cut, ready the moment the device is switched on.
Your turn

1 A games console loses power. What happens to the game in RAM, and to the start-up code in ROM?

2 A sat-nav shows the route being driven now. Is that held in RAM or in ROM?

3 Why is an embedded system’s firmware kept in ROM?

  1. 1
    the game in RAM is lost (volatile), whereas the start-up code in ROM is kept (non-volatile)
  2. 2
    RAM: it is data in use now, changed as the car moves
  3. 3
    it stays unchanged in normal operation and survives a power cut, ready at switch-on
Tick what you can do now
Exam focusEach difference must name both memories: “RAM loses its contents when the power is off, whereas ROM keeps them”. When the full names are already given, repeating them adds no difference; explain how the memories behave.
Practise with s26/12 Q6(c); s24/11 Q2(c)(i)
3 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

SRAM and DRAM

§3.1 · Computers and their components · SRAM and DRAM

A processor’s cache and a computer’s main memory are both RAM, yet a gigabyte of one costs far more than a gigabyte of the other. Both are volatile, read–write RAM; how each stores a bit explains its speed, density, cost and use.

Both are volatile, read–write RAM. How each stores a bit explains its speed, density, cost and use.

Compare how each cell holds a 1: in SRAM two inverters keep each other in state, while in DRAM a capacitor’s charge leaks and is topped up before it falls below the line where it would read as 0.

SRAM celltransistors arranged as a flip-flopQ = 10Each inverter holds the other in its state,so the bit stays while power is on:no refresh is needed.DRAM cellone transistor and one capacitorword linebit lineswitchtransistor++++capacitorcharge = 1Why DRAM must be refreshedcharge on a capacitor holding 1below this line it would read as 0refreshtime → (refreshed many times a second)SRAM: a flip-flop holds the bitQ = 10Each inverter maintains the other's state.Power on → bit held without refresh.DRAM: a transistor and a capacitorword linebit linetransistorcapacitorcharge = 1Refresh restores the leaking chargebelow threshold → reads as 0time → refresh before charge falls too far

Differences between SRAM and DRAM

Six differences. Each one follows from how the bit is stored: a flip-flop, or a leaking charge.

Static RAM (SRAM)Dynamic RAM (DRAM)
Each bit is stored bytransistors arranged as a flip-flopa transistor and a capacitor (charge)
Refreshingnot needed while poweredneeded constantly: the charge leaks
Access timefasterslower
Bit densitylower: more transistors per bithigher: fewer components per bit
Cost per bithigherlower
Typical usecache memorymain memory

Asked for the advantages or disadvantages of DRAM

The same differences, sorted from DRAM’s side: what it gains and what it gives up.

Advantages of DRAM over SRAMDisadvantages of DRAM over SRAM
cheaper per bit; higher bit density (more data per chip)needs constant refreshing; slower access

Choose one for the device and justify it

Choose by what the use needs most: speed (SRAM), or a large capacity at low cost (DRAM).

Device or useChooseReasons
Cache between the CPU and main memorySRAMfaster access, with no refresh to wait for; only a small capacity is needed, so the higher cost is acceptable
Main memory of a computerDRAMgigabytes are needed: lower cost per bit and more bits per chip
A washing machine’s controllerDRAMlower cost per chip keeps the appliance cheap; fast access is not needed
Your turn

1 Why must DRAM be refreshed, but SRAM need not be?

2 A laptop needs 16 GB of main memory. SRAM or DRAM? Give a reason.

3 Which is used for cache memory, and why?

  1. 1
    a DRAM bit is a charge on a capacitor, which leaks away; an SRAM bit is held by a flip-flop while the power is on
  2. 2
    DRAM: a lower cost per bit and more bits per chip
  3. 3
    SRAM: faster access with no refresh to wait for; a cache is small, so the higher cost is acceptable
Tick what you can do now
Exam focusGive each difference as a pair that names both: “DRAM must be refreshed, but SRAM does not”.
Practise with w25/11 Q6(c); w24/13 Q2(a); w24/11 Q3(c); w24/12 Q2(b)
4 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

PROM, EPROM and EEPROM

§3.1 · Computers and their components · types of ROM

Read-only memory sounds fixed for ever, but a device may need its program changed after it is made. PROM, EPROM and EEPROM are kinds of ROM. They differ in whether the contents can be erased, and how.

Each chain of boxes follows one kind of chip through its life. Find where it is erased, if it can be: never, under UV light once it is taken out, or by a voltage while it stays in the device.

PROMwritten onceBlank chipas madeProgrammed onceafter manufactureContents fixedcannot be erasedNew contents?fit a new chipEPROMerase with UV lightChip in a deviceholding firmwareRemovedfrom the circuitUV lighterases the whole chipReprogrammedand refittedEEPROMerase electricallyChip in a deviceholding firmwareElectrical signala voltage erases dataOne byte or allcan be erasedRewritten in situnever removedrepeated many times while the chip stays in the devicePROM · written onceBlank chipas madeProgram onceafter manufactureContents fixedcannot be erasedNew contents?fit a new chipEPROM · UV erasureRemove chipfrom the deviceUV lighterases whole chipReprogramnew contentsRefit chipinto the deviceEEPROM · electrical erasureChip stays inthe deviceVoltage erasesbyte, part or allRewritenew contentsRepeatmany times in situ

Differences between PROM, EPROM and EEPROM

Read across a row to compare the three; read down a column to describe one.

PROMEPROMEEPROM
Can it be rewritten?no: written once onlyyes, many timesyes: many read/write/erase cycles
How is it erased?it cannot be erasedultraviolet (UV) lightan electrical signal (voltage) on its floating-gate cells
Removed to erase it?—yesno: erased in situ
How much is erased?—the whole chipone byte, part or the whole chip

From the description, name the type

Each description gives itself away with one detail: once only, UV light, or a voltage in place.

DescriptionType
Its contents are written once only, after the chip is madePROM
Erased with UV light; it is taken out of the device to be reprogrammedEPROM
Erased by a voltage while it stays in the device; changed many timesEEPROM

Why a device uses EEPROM: give the chain

Each row is one reason: what EEPROM can do, so what, which means what for the device.

EEPROM can…so…which means the device…
be erased electrically, in placeno one removes the chipcan be updated by the user without technical skill
erase one byte or a partthe rest of the firmware is keptchanges without a full wipe
take many write and erase cyclesit can be rewritten oftencan take new features over its life
Your turn

1 A chip is taken out of a device and put under UV light to be reprogrammed. Which type is it?

2 Which type can be written once only?

3 A smart thermostat gets new features by download. Why does it use EEPROM?

  1. 1
    EPROM
  2. 2
    PROM
  3. 3
    EEPROM is erased electrically, in place, so the update is written without removing the chip, and it takes many write and erase cycles
Tick what you can do now
Exam focusExpanding EPROM does not describe how it works: say how it is erased (UV light, chip taken out).
Practise with w24/12 Q2(c); s26/13 Q8(a); w25/13 Q4(c); s24/12 Q2(c)
5 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Buffers

§3.1 · Computers and their components · buffers

A computer can send a document far faster than a printer can print it. A buffer is an area of memory, usually in RAM, that holds data briefly while a fast sender and a slow receiver work at different speeds.

Watch the bar under the graph: the processor is busy only for the short dark bursts that fill the buffer, and free for the long stretches while the printer empties it.

Computerprocessor is freeBuffer in RAM · first in, first out01234567slot indexPrinter12345678fastslowEmpty → interrupt requests more data; full → stop sendingData inthe bufferfullemptyProcessorfilling the bufferfree for other tasks while the printer empties the bufferComputerprocessor is freeBuffer in RAM · first in, first out01234567slot indexPrinter12345678fast burstslowEmpty → interrupt requests more datafullemptyfilling the bufferfree for other tasks

How a printer uses a buffer

Five steps, in order. An “explain” answer starts with step 1: the two speeds.

1
The two ends work at different speeds: the computer can send data far faster than the printer can print it.
2
In one quick burst the computer fills the buffer at its own, higher speed. When the buffer is full, an interrupt tells the computer to stop sending.
3
The printer empties it at its own, slower rate, oldest block first (a first-in, first-out queue), so the printer is not overloaded.
4
The computer is not held up waiting for the printer: the processor is free for other tasks.
5
When the buffer is empty, the printer sends an interrupt that asks for more data.

Other transfers that use a buffer

The same reason each time: one end is faster than the other.

TransferWhy a buffer is used
Computer → hard disk or disc drivethe drive writes data more slowly than the computer sends it
Video streamed from a media serverdownloaded data is held until the player is ready to use it
Sensor → processorreadings are held until the processor can process them
Camera → secondary storagevideo is held before it is moved to storage; recent video can be replayed
Keyboard → processorkey presses are held, in order, until the processor is ready for them
Your turn

1 What tells the computer to stop sending, and what asks it for more data?

2 In the figure the buffer holds 8 blocks and the printer takes one block per time step. How many time steps pass between one “send more” interrupt and the next?

3 Why is the processor free for other tasks while the printer prints?

  1. 1
    both are interrupts: when the buffer is full, one tells the computer to stop sending; when it is empty, one asks for more data
  2. 2
    8: the printer empties all 8 slots, one per step
  3. 3
    it filled the buffer in one fast burst, so it does not wait for the slow printer
Tick what you can do now
Exam focusStart with the reason: the two devices work at different speeds. “The buffer stores data” alone does not explain why it is used.
Practise with s24/12 Q2(b); w24/11 Q3(d)(ii); w24/13 Q2(b); s26/13 Q8(c); w25/11 Q10(b); s24/11 Q2(c)(iii); s25/11 Q2(a); w24/13 Q9(c)
6 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Magnetic hard disk

§3.1 · Computers and their components · principal operation of a magnetic hard disk

A hard disk keeps your files with the power off, using magnetism. A magnetic hard disk stores each bit as a tiny region magnetised one way or the other, on spinning platters.

Name the parts in the side view first, then use the view from above to see how one block is found on a surface.

SIDE VIEW (inside a sealed case)rotates at high speedplatterspindleread/write headon an armactuatorTOP VIEW OF ONE SURFACEtrack: a concentric circlesector: a wedge of the surfaceblock: one track in one sectorhead floats just abovethe surfacethe arm moves the headto the required trackSIDE VIEW · sealed caseplatterspindleread/write headactuatorTOP VIEW · one surfacetrackconcentric circlesectorwedge of surfaceactuatorarmblockone track withinone sector

Principal operation

Four steps: the parts, then how a block is found. Be able to describe them in order.

1
Each surface of a platter carries a coating that can be magnetised. The platters are stacked on a spindle that spins them fast, in a sealed case that keeps out dust.
2
An arm carries a read/write head over each surface, floating just above it; an actuator swings the arms to the track that is wanted.
3
A surface is laid out as tracks (circles) cut by sectors (wedges). The part of one track inside one sector is a block.
4
As the platter turns, the wanted sector arrives under the head, so a block can be reached directly.

How a bit is written and read

Each region is magnetised one of two ways, read as 1 or 0. Writing and reading use the same link between current and magnetic field, run in opposite directions.

10110010read/write head (coil)surface movesmagnetised regionsread asMagnetised regions pass the head10110010coilsurface moves
WritingReading
varying current in the head → varying magnetic field → each region magnetised in one of two directionsmagnetised regions pass the head → varying magnetic field → varying current in the head

When the question leaves gaps: the words to use

Data is held on platters coated so they can be magnetised. They turn on a spindle. A read/write head on an arm moves to the track. On a read, changes in the magnetic field produce a change in the electric current.

Your turn

1 What is a block on a hard disk?

2 On a read, what produces the change in electric current in the head?

3 Why can a block be reached directly, without reading the blocks before it?

  1. 1
    the part of one track inside one sector
  2. 2
    changes in the magnetic field as the magnetised regions pass the head
  3. 3
    the arm moves the head to the track, and the spinning platter brings the wanted sector under it
Tick what you can do now
Exam focusFor reading, use the full chain: changes in the magnetic field produce a change in the electric current in the head.
Practise with s25/11 Q6(a)(i); s22/11 Q2(b) (older paper: the full “describe” question)
7 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Solid state (flash) memory

§3.1 · Computers and their components · principal operation of flash memory

A memory stick has no moving parts, yet it keeps your files after you pull it out. Solid state (flash) memory stores each bit as electric charge trapped inside a memory cell, where it stays without power.

The two cells differ only in the floating gate. With electrons trapped there, no current flows on a read, so the bit is 0; with none, current flows and the bit is 1.

ELECTRONS TRAPPEDNO ELECTRONSsiliconsourcedraincontrol gatefloating gateread voltage appliedno current flows → 0siliconsourcedraincontrol gatefloating gateread voltage appliedcurrent flows → 1programmed: kept with no powererasedELECTRONS TRAPPEDsiliconsourcedraincontrol gatefloating gateread voltage appliedno current flows → 0insulatorprogrammed: kept with no powerNO ELECTRONSsiliconsourcedraincontrol gatefloating gateread voltage appliedcurrent flows → 1insulatorerased

Principal operation

Five steps: what a cell is, then writing, reading and erasing.

1
Flash is non-volatile semiconductor memory with no moving parts. Its cells are wired as NAND or NOR circuits.
2
A cell is built from two transistors: a control gate above a floating gate, with thin insulating layers between them and around the floating gate.
3
Writing: a high voltage on the control gate drives electrons through the insulator onto the floating gate. There they stay trapped, even with no power.
4
Reading: a voltage on the control gate lets current flow through the cell only if the floating gate is empty. Current flows = 1; no current = 0.
5
Erasing: the trapped electrons are removed, a whole block of cells at a time.

Short answers the exam asks for

Four facts that are asked for on their own. Cover the answer column and test yourself.

StatementAnswer
the two types of logic circuit used to build flash memoryNAND and NOR
the number of transistors in each cell2
the gate that keeps its electrons with no powerthe floating gate
the gate that lets current pass, or stops it, on a readthe control gate
Your turn

1 On a read, current flows through a cell. Is the bit 1 or 0?

2 Why does flash memory keep its data with the power off?

3 How much is erased at a time?

  1. 1
    1: current flows only when the floating gate is empty
  2. 2
    the electrons stay trapped on the floating gate, inside its insulating layers
  3. 3
    a whole block of cells
Tick what you can do now
Practise with s24/11 Q2(c)(ii)
8 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Optical disc reader/writer

§3.1 · Computers and their components · principal operation of an optical disc reader/writer

A DVD looks like a plain shiny disc, but its surface carries millions of tiny marks. An optical disc stores data as a pattern along one spiral track that reflects laser light differently.

Follow the laser up from the optical head: a land reflects more light back, a pit less, and the line drawn above the disc is that changing light.

light back tothe detectorland: morepit: lesslabelreflectivelayerclear plasticpitpitpitlandoptical headlaser + light detectormoves acrossthe discdisc spinsone spiral track, centre outwardsRead the changing reflected lightland: morepit: lessclear plasticOptical headlaser + light detectorlabelreflective layerDisc spins; head follows one spiral track.One spiralfrom centre outwardsWriting: higher-powerlaser burns pits

Principal operation of an optical disc reader/writer

Four steps. A full answer has both halves: writing (step 2) and reading (steps 3 and 4).

1
A motor spins the disc at high speed. The optical head moves into position, keeping its laser on the one spiral track, which it follows from the centre outwards.
2
Writing (recordable disc): a higher-power laser burns pits into the track to represent the data.
3
Reading: a low-power laser shines on the track and reflects from the pits and lands. A land sends more light back to the detector than a pit does.
4
The detector reads each difference in the reflection as a 1 or a 0.
A rewritable disc has a layer whose spots the laser can switch between reflecting and not reflecting, so the data can be written again.
Your turn

1 Which sends more light back to the detector: a pit or a land?

2 How does a recordable disc get its pits?

3 Which way does the head follow the track?

  1. 1
    a land
  2. 2
    a higher-power laser burns them into the track
  3. 3
    along the one spiral track, from the centre outwards
Tick what you can do now
Exam focusA full answer has both halves: writing (the laser burns pits) and reading (pits and lands reflect differently, read as 1 or 0).
Practise with w24/11 Q3(d)(i)
9 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Choosing secondary storage

§3.1 · Computers and their components · secondary storage

A phone, a weather archive and a film handed out on disc all need storage, and each needs something different. No storage technology is best at everything: match it to the task by capacity, speed, cost per GB, robustness and how often data is rewritten.

No storage technology is best at everything. Match the storage to the task: capacity, speed, cost per GB, robustness and how often data is rewritten.

Compare the three technologies

Find the row the task cares about, then read across to choose.

Magnetic hard diskSolid state (flash)Optical disc
Data stored asmagnetised regionscharge in floating gatespits and lands
Moving partsplatters and headsnonespinning disc, moving laser
Access speedslower: head and disc movefastest: no mechanical delayslowest
Durabilitydamaged if knocked while runningrobust: suits portable deviceseasily scratched
Cost per GBlowesthigherhigher than a hard disk
Capacityvery high: terabyteshighlow: gigabytes per disc
Constant rewritinglong lifecells wear out after many writesRW discs: limited rewrites
Suitsservers and large archiveslaptops and phones; USB drives and memory cardshanding out files on disc; cheap offline copies

Two tasks that pull opposite ways. Each reason names what the task needs, then the technology that gives it.

Capacity and repeated writing: a weather archive

A weather service saves readings from 4000 stations every second and keeps every reading for 30 years.

RequirementTechnology and consequence
Hundreds of terabytesMagnetic disks have a lower cost per terabyte, so the huge capacity stays affordable.
New readings written every secondFlash cells wear out after many writes; magnetic disks suit this continual rewriting load.
Do not justify magnetic disks as faster: solid state has faster access.

The other way round: a delivery driver’s tablet

  • Solid state: no moving parts, so it survives being knocked and dropped on the road.
  • Faster access: the delivery app opens at once at each stop.
  • Only a small capacity is needed, so the higher cost per GB matters little.
Your turn

1 A camera for mountain biking must survive knocks. Which storage, and why?

2 A film studio keeps 2 PB of old footage that is rarely read. Which storage keeps the cost down?

3 Why is “a hard disk is faster” a wrong reason?

  1. 1
    solid state: no moving parts, so it is robust
  2. 2
    magnetic hard disks: the lowest cost per GB at a very high capacity
  3. 3
    solid state has faster access: a hard disk must move its head and wait for the platter
Tick what you can do now
Practise with w25/13 Q7(d)
10 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Laser printer

§3.1 · Computers and their components · principal operation of a laser printer

Toner is a fine powder, and static electricity decides where it lands. A laser printer builds an invisible pattern of electric charge on a drum, then uses it to pick up toner.

Follow the drum as it turns, from the charge roller at 1 round to the cleaner at 6. The toner reaches the paper only at 4.

paper trayoutdrumrotates++++++++++++1chargelaserrotating mirror2laser writestoner3toner sticks4transfer5fuse (heated rollers)6cleanrotatingdrumLaser2 Laser writesrotating mirror1 Charge+++++Tonerpowder3 Toner stickspaper tray4 Transfer to paper6 Clean5 FuseHeated rollers melt tonerinto the paper.printed paper out

Principal operation, in order

Six steps, numbered as on the drawing. Be able to give them in order.

1
Charge: a roller coats the whole surface of the turning drum with the same electric charge.
2
Laser writes: a spinning mirror sweeps the laser across the drum, one line at a time. Every spot it hits loses its charge, so the page now exists only as a pattern of charge: an electrostatic image.
3
Toner sticks: the drum turns past the toner, a fine charged powder, which clings only where the laser has cleared the charge.
4
Transfer: a sheet of paper is rolled against the drum and takes the toner off it.
5
Fuse: hot rollers melt the toner into the paper, so the image cannot rub off.
6
Clean: leftover toner is scraped away and the drum’s charge is cleared, ready for the next page.
Your turn

1 What is the electrostatic image on the drum?

2 Why does toner stick only to parts of the drum?

3 Which step stops the printed image rubbing off?

  1. 1
    the pattern of charge left on the drum after the laser clears the spots it hits
  2. 2
    the toner clings only where the laser has cleared the charge
  3. 3
    fusing: hot rollers melt the toner into the paper
Tick what you can do now
11 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

3D printer

§3.1 · Computers and their components · principal operation of a 3D printer

A design on a screen can become something you can hold. A 3D printer makes a solid object from a digital model by adding material, layer on layer.

Read the design steps from the top down, then watch the nozzle lay one layer at the x, y, z positions those steps produce.

3D modeldesigned in CAD softwareSlicedinto thin layerslayer 6:x 40 → 72z = 1.2 mmLayer datax, y, z coordinatesfilamentx, yz: the platelowers by onelayer each timeheated nozzletemperaturesensorbuild plate3D modeldesigned in CADSlicedinto thin layersx 40 → 72z = 1.2 mmLayer datax, y, z coordinatestemperaturesensorfilamentspoolbuild plateheated nozzlex / yz

Principal operation

Four steps, from the design on screen to a solid object you can hold. Whatever the method, every printer follows them.

1
The object is drawn as a 3D model in CAD (computer-aided design) software.
2
Slicing software cuts the model into thin flat layers and turns each one into coordinates for the printer.
3
Additive manufacturing: the printer lays down the lowest layer first, moving to x, y, z positions, and builds every later layer on top of it.
4
Each new layer bonds to the one beneath (it is fused or cured). Some materials need time to cool and set.

Four ways to form a layer

Every 3D printer builds in layers, but printers make each layer in different ways. Be able to name one method and say how it forms a layer.

MethodHow each layer is formed
Fused deposition modelling (FDM)a hot nozzle squeezes out softened filament along the layer’s path
Stereolithography (SLA)a UV laser traces the layer on a bath of liquid resin, which hardens where it is hit
Digital light processing (DLP)a projector shines a UV picture of the whole layer onto the resin at once
Selective laser sintering (SLS)a laser melts powder (plastic or metal) together where the layer needs it

Inside the printer

Two parts that keep the printing right: one watches the heat, the other evens out the flow of data.

Temperature sensormeasures the nozzle temperature: material hot enough, but no overheating
Bufferthe processor sends data faster than the printer can use it: a buffer handles the speed mismatch and frees the processor for other tasks
Your turn

1 Why is 3D printing called additive manufacturing?

2 What does the slicing software produce?

3 Why does a 3D printer need a temperature sensor at the nozzle?

  1. 1
    the object is built by adding material, one layer on top of another
  2. 2
    thin flat layers, each turned into x, y, z coordinates for the printer
  3. 3
    the material must be hot enough to flow and bond, but must not overheat
Tick what you can do now
Exam focusNaming a method such as FDM earns one mark at most. The other marks come from the general process: additive, from a CAD file, built one layer at a time, repeated for each layer, then cooled or cured.
Practise with w25/11 Q10(a), (b); w23/11 Q7(b) (older paper: the temperature sensor)
12 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Microphone and speakers

§3.1 · Computers and their components · principal operation of a microphone and speakers

Sound is a vibration in the air; a computer works with electrical signals. A microphone and a speaker are the same idea run in opposite directions.

Read the two strips as mirror images: the microphone turns movement into a varying current, and the speaker turns a varying current back into movement.

MICROPHONE: SOUND → ELECTRICAL SIGNALdiaphragmNScoilmagnetanalogue signalADC01101001digital data to the computerSPEAKER: ELECTRICAL SIGNAL → SOUND10110010digital dataDACvarying currentNScoilmagnetconecoil and conemove in and outsound wavessoundMICROPHONE · sound → electrical signalNScoildiaphragmmagnetanalogue signalADC01101001digital data → computerSPEAKER · electrical signal → sound10110010DACvarying currentNScoilmagnet + coilcone → sound

Microphone

1
Sound waves push the diaphragm back and forth.
2
In a dynamic microphone it carries a coil through a magnet’s field…
3
…so a varying electrical signal is produced.
4
The computer’s ADC then samples it as digital data.

Speaker

1
A varying current from the computer flows in a coil held in the field of a permanent magnet.
2
Changing current pushes the coil in and out…
3
…and the attached cone moves the air: sound.

Three kinds of microphone

Each kind turns the vibration into a signal in its own way: a moving coil, a changing gap, or a bent crystal.

MicrophoneHow the vibration becomes a signal
Dynamicthe diaphragm carries a coil through a magnet’s field (or a magnet moves inside a coil), so a current flows
Condenserthe diaphragm is one plate of a capacitor; as its gap to the fixed plate changes, so does the capacitance
Crystal (piezoelectric)the vibration bends a crystal, and a bent crystal makes a voltage
Your turn

1 In a speaker, what makes the cone move in and out?

2 In a condenser microphone, what changes as the diaphragm vibrates?

3 Which converter does a microphone’s signal pass through before the computer stores it?

  1. 1
    a varying current in the coil, in the field of a permanent magnet, pushes the coil in and out
  2. 2
    the gap between the plates, so the capacitance changes
  3. 3
    an ADC (analogue to digital)
Tick what you can do now
Exam focusThe step for the type (a coil moves past a magnet, the capacitance changes, or the crystal deforms) earns its own mark. “A signal is made” alone gains only the last mark.
Practise with s26/13 Q8(b)
13 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Touchscreens

§3.1 · Computers and their components · principal operation of a touchscreen

On a phone the display is also the keyboard and the mouse. A touchscreen finds the point that was touched, works out its x and y coordinates, and selects what is shown there.

All three find one point; they differ in what the touch changes there: two layers meet, charge is drawn away, or two beams are blocked.

RESISTIVE: PRESSURECAPACITIVE: CHARGEINFRA-RED: BROKEN BEAMSglassflexible top layerspacer dotsthe layers touch:a circuit is completedvoltages give the x and y positionworks with any object: stylus, gloveglassgrid of electrodes under the glassthe finger draws charge:the charge changes at that pointneeds a conductive touch, e.g. a fingercan detect several touches at oncea finger blocks a beam each wayLEDs on two edges, sensors oppositethe blocked beams give x and yRESISTIVE · pressureflexible layerspacersPressure makes the two layers touch.The completed circuit gives x and y.CAPACITIVE · chargeglassConductive finger changes charge locally.Electrode grid locates the touch.INFRA-RED · broken beamsLEDs → beams → sensors on opposite edgesThe two blocked beams identify x and y.
Other ways to find the point: optical imaging (cameras see the shadow of the finger) and acoustic pulse (the finger absorbs a wave across the glass).

From touch to selection

Three steps from a touch to a menu choice. Only step 1 depends on the type of screen.

1
The touch makes a change at one point: the layers complete a circuit, the charge changes, or beams are broken.
2
The microprocessor measures the change and calculates the coordinates (x, y) of that point.
3
Software finds the item at those coordinates: on a café till, a touch at (320, 384) is inside the “Order” button (x 280–440, y 360–440), so the order is sent.

Resistive or capacitive?

Choose by what touches the screen and how many touches are needed.

ResistiveCapacitive
Detectspressure: two layers pressed togethera change in charge where a finger touches
Touched withany object, including a stylus or a gloved fingera conductive object, e.g. a bare finger
Multi-touchusually one touch onlyseveral touches (pinch, zoom)
Surfaceflexible: scratches more easilyrigid glass: more durable, clearer image
Your turn

1 A warehouse worker wears thick gloves. Resistive or capacitive screen? Why?

2 How does an infra-red touchscreen find x and y?

3 A touch is at (300, 400). The “Order” button covers x 280–440, y 360–440. Is the button selected?

  1. 1
    resistive: it detects pressure, so any object works, a gloved finger included
  2. 2
    the finger blocks one beam in each direction; the blocked beams give x and y
  3. 3
    yes: 300 is within 280–440 and 400 is within 360–440
Tick what you can do now
Exam focusAsked how a touch becomes a menu choice? How the touch is detected gains two marks at most; the rest come from the x and y coordinates and the item found at that position.
Practise with s24/13 Q7(d); w25/12 Q8(b)(i)
14 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Virtual reality headset

§3.1 · Computers and their components · principal operation of a VR headset

A virtual world only feels real if it moves when you move. A VR headset is an output and an input device: it shows the scene and senses how the head moves.

Follow the loop from “Head turns”. It runs many times a second, which is why the view keeps up with the head.

speakerspeakerleft-eye imagelensright-eye imagelensgyroscope / accelerometereye-tracking camera (some headsets)Head turnsthe user looks to the leftSensor measuresgyroscope or accelerometerNew images drawnone for each eye, via a bufferProcessor analysesdirection and speed of movementthe view changesto match the headrepeated many times a secondGyroscope / accelerometer senses the headleft-eye imageright-eye imageTwo offset views, one through each lens → 3DSpeakers add sound; cameras may track eyes.Head turnsuser looks leftSensor measuresturn or tiltProcessor analysesdirection and speedImages redrawnone for each eyeRepeated rapidly: the view matches the head.

Principal operation

Six parts. Be able to say what each one does as the user looks around.

PartWhat it does
Displays (LCD or OLED) and lensesa screen for each eye, or one split screen, shows slightly offset views, so the scene looks 3D
Gyroscope or accelerometersenses every turn and tilt of the head
Microprocessorworks out the direction and speed of the turn from the sensor data, then redraws the view to match
Speakers or headphonessurround sound makes sounds seem to come from around the user, matching the scene
Digital cameras (some headsets)record the user’s eye movements for analysis
Controllersextra input from the user’s hands
Your turn

1 Which part senses the user turning their head?

2 Why does the headset show a slightly different image to each eye?

3 The user turns left. Give the steps from the turn to the new view.

  1. 1
    the gyroscope or accelerometer
  2. 2
    the two offset views make the scene look 3D
  3. 3
    the sensor measures the turn; the processor works out its direction and speed; it draws new images for each eye; the displays show them, many times a second
Tick what you can do now
Practise with s24/12 Q2(a)
15 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Monitoring and control systems

§3.1 · Computers and their components · monitoring and control systems

Some computers only watch the world; others change it. A monitoring system measures and reports; a control system also acts on its surroundings, and its action changes the next reading.

Compare the two systems: only the control system has an actuator, and only its line runs back to the sensor.

MONITORING SYSTEMSensormeasuresProcessorcompares, recordsOutputscreen, alarm, messageA persondecides whether to actreadingsignalwarningCONTROL SYSTEMSensormeasuresProcessorcompares, decidesActuatormotor, valve, pumpSurroundingsconditions changereadingsignalmovementfeedback: the action changes the conditions, so it changes the next readingMONITORINGSensormeasuresProcessorcompares, recordsOutputscreen, alarmA persondecides whether to actreadingsignalwarningCONTROLSensormeasuresProcessorcompares, decidesActuatormotor, valve, pumpSurroundingsconditions changereadingsignalmovementFeedback: the action changes the next reading.

Differences between monitoring and control

Three differences. Give each as a pair: what monitoring does, whereas control…

Monitoring systemControl system
What it doesmeasures and records or reports; a person decides whether to actthe processor acts on the surroundings by itself when a reading leaves the set range
Actuatorsnoneactuators carry out the action
Feedbacknone: its output has no effect on the next readingfeedback: the action changes the conditions, so it changes the next reading

From the scenario to the sensor

Find what must be detected, name the sensor, then write a purpose that fits the scenario.

The system must detect…SensorPurpose to write
a van too tall for a car-park entranceinfra-redchecks the height of the van: a beam at 2.1 m is broken
a trolley too heavy for a lift floorpressuremeasures the weight on the lift floor
a parcel lifted out of a lockerpressuredetects the weight removed from the locker shelf
a gate or door left openpressure or infra-reddetects the gate is not pressed shut, or a beam is not blocked
a person within 3 m of a museum exhibitinfra-reddetects a person inside that distance
the daylight falling at dusklightmeasures the outdoor light level
a spoken command to a robotsoundpicks up speech for the robot to process
A sensor only measures and sends a value: it makes no decisions. An actuator converts the processor’s signal into movement, e.g. a motor slides a lift door shut.
Your turn

1 A greenhouse fan switches on by itself when the air is too warm. Monitoring or control? Why?

2 Which sensor detects that a car has driven onto a weighbridge?

3 In a control system, what does the processor pass to the actuator?

  1. 1
    control: an actuator (the fan motor) acts, and the cooler air changes the next reading
  2. 2
    pressure: it measures the weight of the car
  3. 3
    a signal, which the actuator turns into movement
Tick what you can do now
Exam focusGive the sensor and a purpose that fits the scenario: “infra-red: checks the height of the van”, not “detects things”.
Practise with w25/11 Q9; s24/13 Q7(a); w24/12 Q9(a); w24/11 Q5(a); s25/11 Q4(b)
16 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Feedback in a control system

§3.1 · Computers and their components · importance of feedback

A heater left on would soon cook an aquarium’s fish, so the controller must keep checking. In feedback, the output of a control system changes the conditions, and so changes the next reading. That is how it keeps the conditions inside a set range.

An aquarium controller with a target range of 24–26 °C

Follow the loop from the sensor round to the tank and back, then read the graph: a reading outside the shaded band switches the heater.

sensorheater26.2 °CStored range: 24–26 °CRead every 10 minutesHeater: offTemperature sensormeasures the waterMicroprocessorcompares with the rangeActuatorswitches the heaterIn the tankthe water responds26.2 °C26.2 > 26: too warmFeedback: output changes the next input.sensorheater26.2 °CStored range: 24–26 °CRead every 10 minutesHeater: offTemperature sensormeasures the waterMicroprocessorcompares with the rangeActuatorswitches the heaterIn the tankthe water responds26.2 > 26: too warm26.2 °C23.0 < 24: too coldOutput changes the next input.24 °C26 °Crange23.026.223.726.1heateronoffone reading every 10 minutes · amber readings are outside 24–26 °C24 °C26 °C23.026.223.726.1heaterdark = on · pale = offOne reading every 10 minutesAmber readings are outside 24–26 °C.

Feedback lets the controller correct departures from its stored range. The heater switches at the next reading. The 10-minute intervals allow the small overshoots outside 24–26 °C shown on the graph.

Monitoring or control? The justification earns the marks

Look for an actuator, and for an output that changes the next reading.

SystemTypeJustification
Aquarium at 24–26 °Ccontrolan actuator switches the heater; the warmer water is the next reading
Automatic shop doorcontrola motor opens the door; the person walks through, which changes what the sensor detects next
Lift levellingcontrola motor moves the lift until the floor sensor reads level; each move changes the reading
Classroom CO₂ displaymonitoringno actuator: it shows the level; opening a window is left to a person
Flood-level signmonitoringno actuator and no feedback: the sign only warns, and the water level is unchanged
Your turn

The controller switches the heater only when a reading is outside 24–26 °C.

1 The reading is 25.4 °C and the heater is on. Is the heater on or off after this reading?

2 The reading is 23.8 °C and the heater is off. Is the heater on or off after this reading?

3 The reading is 26.3 °C and the heater is on. Is the heater on or off after this reading?

4 Why does the water go a little above 26 °C before the heater switches off?

  1. 1
    on: 25.4 °C is inside the range, so nothing changes
  2. 2
    on: 23.8 °C is below 24 °C
  3. 3
    off: 26.3 °C is above 26 °C
  4. 4
    the reading is taken only every 10 minutes, so the water keeps warming until the next reading
Tick what you can do now
Exam focusNaming the type earns nothing: the marks are for the reasons. Write “it has no actuator”, not “it does nothing”. If a system could be either, both answers score when the reasons fit the one you chose.
Practise with s24/13 Q7(c); w25/12 Q11; w24/13 Q3; s26/12 Q6(b); w24/12 Q9(b); s24/11 Q2(b); w24/11 Q5(c)
17 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

The six logic gates

§3.2 · Logic gates and logic circuits · symbols, functions and truth tables

Every decision a processor makes is built from tiny circuits that combine 0s and 1s. A logic gate takes one or two inputs, each 0 or 1, and gives one output. Each of the six gates has its own symbol and its own truth table.

The six gates

Be able to draw each symbol, and give its truth table and a description.

NOT

AX
X = NOT A
AX
01
10

The output is the opposite of the input. One input only.

AND

ABX
X = A AND B
ABX
000
010
100
111

Gives 1 if A and B are 1. Any 0 at an input gives 0.

OR

ABX
X = A OR B
ABX
000
011
101
111

Gives 1 if A or B, or both, is 1. Only 0 0 gives 0.

NAND

ABX
X = A NAND B
ABX
001
011
101
110

AND, then NOT: gives 1 unless A and B are both 1.

NOR

ABX
X = A NOR B
ABX
001
010
100
110

OR, then NOT: gives 1 for inputs 0 0 and for no others.

XOR (EOR)

ABX
X = A XOR B
ABX
000
011
101
110

Gives 1 when the inputs differ, 0 when they match.

Identify a gate from its output column

Read X for the four input rows in order, then match the pattern.

X for A B = 00, 01, 10, 11GateDescribe it as
0 0 0 1ANDa single 1, for inputs 1 1
0 1 1 1ORa single 0, for inputs 0 0
1 1 1 0NANDa single 0, for inputs 1 1
1 0 0 0NORa single 1, for inputs 0 0
0 1 1 0XOR1 for 0 1 and 1 0: the inputs differ

Two habits that help: read the small marks on a symbol, and build any table straight from the gate’s description.

Reading the symbols

A circle on the output means NOT: NAND is AND then NOT; NOR is OR then NOT. XOR adds a curved line at the inputs.

Create the table yourself: a NOR gate

1
Head the columns: A, B, then the output X.
2
Write the inputs in binary order: 00, 01, 10, 11.
3
Fill X from the description: 1 only for 0 0. An extra working column is ignored.
ABX
001
010
100
110
Your turn

1 A = 1 and B = 0. What does a NAND gate output? A NOR gate? An XOR gate?

2 A gate gives X = 1 1 1 0 for A B = 00, 01, 10, 11. Which gate is it?

3 Which gate gives 1 only when its two inputs differ?

  1. 1
    NAND 1, NOR 0, XOR 1
  2. 2
    NAND: a single 0, for inputs 1 1
  3. 3
    XOR
Tick what you can do now
Exam focusDescribe a gate by the inputs that give 1 (or 0): “the output is 0 when both inputs are 1, otherwise 1” for NAND.
Practise with s24/12 Q1(a); w24/13 Q1(a); s26/11 Q6(b)
18 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Expression to circuit

§3.2 · Logic gates and logic circuits · from a logic expression

Given a line of logic such as the one below, you can draw its circuit without guessing, because each operator in a logic expression is one gate. Draw the brackets first, then join them.

X = (A NAND B) XOR (B OR NOT C)
ABCXPQABCXPQ
1
Find the part inside each bracket: A NAND B and B OR NOT C. Each operator is one gate.
2
NOT C feeds the OR gate: NOT applies only to the input or bracket straight after it.
3
B is used twice: draw one B line that branches, with a junction dot.
4
Join the two bracket outputs, P and Q, with the operator between them: XOR.

A NOT outside the bracket, with four inputs

A NOT before a bracket is one gate after the bracket’s output.

X = NOT ((A NOR B) AND (C OR D))
ABCDXPQRABCDXPQR
1
Draw the inner brackets first: P = A NOR B and Q = C OR D.
2
AND them: R is the output of the whole bracket.
3
The NOT outside the bracket is one more gate after R. It is not put on each input.
4
Count: NOR, OR, AND, NOT is 4 operators, 4 gates. Add no extra gates.

Do not confuse

NOT A AND B means (NOT A) AND B, which gives 0 1 0 0 for A B = 00, 01, 10, 11. NOT (A AND B) is one NOT after the AND, which gives 1 1 1 0.

Your turn

1 How many gates does (A OR B) AND NOT C need?

2 In NOT A AND B, which input does the NOT apply to?

3 In the four-input circuit, A = 0, B = 0, C = 1, D = 0. Find P, Q, R and X.

  1. 1
    3: OR, NOT and AND, one gate per operator
  2. 2
    A only: NOT applies to the input or bracket straight after it
  3. 3
    P = 1, Q = 1, R = 1, X = 0
Tick what you can do now
Exam focusDraw one gate per operator, with the inputs the brackets show. Do not simplify, and add no gates that are not in the expression.
Practise with w24/12 Q1(b); w25/13 Q3(b); w25/11 Q3(a); w24/13 Q1(c); s24/12 Q1(b); s24/11 Q1(b)
19 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Expression to truth table

§3.2 · Logic gates and logic circuits · from a logic expression

A long expression is easy to get wrong in one go, so work it out a piece at a time. To fill a truth table from an expression, give each part its own working column, then combine the columns.

X = (A XOR C) NOR (B AND NOT C)
ABCNPQX
0001001
0010100
0101010
0110100
1001100
1010001
1101110
1110001
ABCXNPQABCXPQN

The same expression as a circuit: its gates N, P and Q are the table’s working columns.

1
List A B C in binary order, 000 to 111: 2³ = 8 rows.
2
Give each part its own working column: N = NOT C, then P = A XOR C and Q = B AND N.
3
Combine the working columns with the last operator: X = P NOR Q, so X = 1 only where P and Q are both 0.

Find the wrong rows

Work out X yourself, then compare it with the given X, row by row.

X = NOT (B OR (A AND NOT C))
RowABCGiven XPQX
10001001
20011001
30101010wrong
40110010
51001110wrong
61011001
71100110
81111010wrong
1
Work out the expression yourself, with working columns: P = A AND NOT C, Q = B OR P, X = NOT Q.
2
Compare your X with the given X, row by row.
3
Write the row numbers that differ: here rows 3, 5 and 8.
Your turn

1 How many rows does a truth table with three inputs need?

2 For (A XOR C) NOR (B AND NOT C), A = 1, B = 1, C = 0. Find N, P, Q and X.

3 For NOT (B OR (A AND NOT C)), a given table shows X = 1 for A B C = 0 1 1. Is that row right?

  1. 1
    2³ = 8
  2. 2
    N = 1, P = 1, Q = 1, X = 0: P and Q are both 1, so P NOR Q = 0
  3. 3
    no: P = 0, Q = 1, so X = NOT Q = 0
Tick what you can do now
Exam focusOnly the X column is marked, usually one mark for each half of the table. Working columns are ignored, so use them to avoid slips.
Practise with w24/12 Q1(a); w25/13 Q3(a); s25/12 Q4(b); w25/12 Q9(b)
20 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Circuit to expression and truth table

§3.2 · Logic gates and logic circuits · from a logic circuit

A circuit drawing can hide its logic in a tangle of wires. Read a circuit from the output back: name the last gate, then write what feeds each of its inputs.

ABCXPQABCXPQ
1
Start at the output: the last gate is NOR, so X = P NOR Q.
2
P is an AND gate fed by A and B: P = A AND B.
3
Q is an XOR gate fed by NOT A and C: Q = NOT A XOR C.
4
Substitute, keeping each part in brackets.
X = (A AND B) NOR (NOT A XOR C)

Two outputs: an expression and a table column for each

Write one expression for each output, and fill one table column for each.

PQRSTMN
S = NOT (P OR NOT Q)
T = (Q AND R) XOR R

S may also be written P NOR NOT Q. R feeds T twice: write it twice. Check each output on its own, in its expression and in its table column.

PQRMNST
0001000
0011001
0100010
0110110
1001000
1011001
1101000
1111100
Your turn

1 In the first circuit, which gate do you write first, and why?

2 In the first circuit, A = 0, B = 1, C = 1. Find P, Q and X.

3 In the two-output circuit, P = 0, Q = 1, R = 1. Find S and T.

  1. 1
    the NOR gate at the output: X = P NOR Q, then P and Q are filled in
  2. 2
    P = 0, Q = 0, X = 1
  3. 3
    S = 1, T = 0
Tick what you can do now
Exam focusDo not simplify: write each gate as drawn, in brackets. Any recognised notation is accepted, and the order of the two inputs of AND, OR or XOR does not matter.
Practise with w24/13 Q1(b); s25/11 Q1(a), (b); s25/13 Q4(a); s26/11 Q6(a); s26/12 Q8(a); w25/12 Q9(a); s25/12 Q4(a)
21 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Truth table to expression and circuit

§3.2 · Logic gates and logic circuits · from a truth table

Sometimes all you know is what a circuit must do: its truth table. Each row where X = 1 gives one AND term. Join the terms with OR, then draw one gate per operator.

Truth table to expression: one term for each 1

Each 1 is written in the colour of the term it gives: blue for row 011, violet for row 100.

FGHX
0000
0010
0100
0111
1001
1010
1100
1110
1
Use only the rows where X = 1.
2
For each row, AND all the inputs together, putting NOT before any input that is 0.
3
Join the terms with OR.
Row where X = 1AND term
F = 0, G = 1, H = 1NOT F AND G AND H
F = 1, G = 0, H = 0F AND NOT G AND NOT H
X =row 011NOT F AND G AND HORrow 100F AND NOT G AND NOT H
X = (NOT F AND G AND H) OR (F AND NOT G AND NOT H)

Expression to circuit, with two-input gates

Each three-input term needs two two-input AND gates; then one OR gate joins the two terms.

FGHXrow 011row 100FGHUGFHVJoin the same U and V wires with ORUVX

Two AND gates per term

Draw NOT F AND G AND H as (NOT F AND G) AND H. Written as an expression, the three-input term is fine.

Your turn

1 Which rows of a truth table do you use to write the expression?

2 Write the AND term for the row F = 1, G = 1, H = 0.

3 How many two-input AND gates does one three-input AND term need?

  1. 1
    only the rows where X = 1
  2. 2
    F AND G AND NOT H
  3. 3
    2: (F AND G) AND H
Tick what you can do now
Exam focusEach correct AND term gains a mark; the last mark needs the second term and the OR that joins them.
Practise with w25/11 Q3(b); s26/12 Q8(b)
22 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Choosing and checking an expression

§3.2 · Logic gates and logic circuits · from a truth table

One term per row always works, but it can give a long expression where a short one would do. Before writing one term per row, look for a pattern; then test the expression on a few rows.

Look for a pattern first

X for A B C = 000 … 111: 1 1 0 0 1 1 0 0
X = 1 exactly when B = 0A and C make no differenceX = NOT B
X for A B C = 000 … 111: 1 1 0 0 0 0 1 1
X = 1 when A and B are the sameC makes no differenceX = NOT (A XOR B)
No pattern? One AND term per row with X = 1, joined by OR, is still a correct answer.

Which expression matches the table?

X = 1 on every row except 111. Test each candidate on the rows where they could differ; one wrong row rules it out.

CandidateAt 011: X = 1?At 110: X = 1?At 111: X = 0?Match
NOT (A AND B AND C)110matches
(A NAND B) OR C101no
(A OR B) NAND C010no
NOT A OR NOT B100no

Check your own expression

Substitute one row with X = 1 and one with X = 0 into the answer built from rows 011 and 100, (NOT F AND G AND H) OR (F AND NOT G AND NOT H):

F G H = 0 1 1: (1 AND 1 AND 1) OR (0 AND 0 AND 0) = 1 OR 0 = 1a row with X = 1: should be 1 ✓F G H = 1 0 1: (0 AND 0 AND 1) OR (1 AND 1 AND 0) = 0 OR 0 = 0a row with X = 0: should be 0 ✓
Your turn

1 X for A B C = 000 … 111 is 0 0 0 0 1 1 1 1. Which single input decides X?

2 Give the X column of A AND NOT C for A B C = 000 … 111.

3 One row of a candidate’s column differs from the table. Can the candidate still match?

  1. 1
    A: X = A, since B and C make no difference
  2. 2
    0 0 0 0 1 0 1 0
  3. 3
    no: one wrong row rules it out
Tick what you can do now
Exam focusAny correct notation is accepted: NOT (A XOR B) and the four-term answer for the same table both score.
Practise with s24/11 Q1(a); s24/13 Q6; s26/12 Q8(b)
23 / 24
9618 · Unit 3 · Hardware
Revisionbyexamplicity

Problem statement to logic

§3.2 · Logic gates and logic circuits · from a problem statement

Real problems arrive in words, such as when a warning light in a car should come on. Turn each condition in the statement into an operator, using the input table to say what 1 and 0 mean.

Problem statement

  • The door light X is on (X = 1) if the engine is running and one or more of the front door and the boot is open.
  • The chime Y is on (Y = 1) if the engine is running and the car is moving and the belt is not fastened.
Input1 means0 means
Eengine runningengine off
Ffront door openfront door closed
Bboot openboot closed
Mcar movingcar stopped
Sseat belt fastenedseat belt not fastened
1
“one or more … open” → OR, in brackets: (F OR B).
2
“not fastened” is the 0 state of S, so it becomes NOT S.
3
Each “and” → AND. Written, E AND M AND NOT S is fine; draw it with two-input AND gates and a one-input NOT gate.
X = E AND (F OR B)
Y = E AND M AND NOT S
FBEMSXY

Turn the words into operators

Find the phrase in the statement, then use the operator beside it.

The statement says…UseThe statement says…Use
both … and …ANDone or the other, not bothXOR
either … or … (or both); one or more; at least oneORneither … nor …NOR
not, off, closed (a 0 state)NOTnot both … and …NAND
Your turn

1 The engine is running, the boot is open, the front door is closed, the car is moving and the belt is fastened. Is the door light X on? Is the chime Y on?

2 A = 1 means door A is closed; B = 1 means door B is closed. The alarm sounds if neither door is closed. Which single gate joins A and B?

3 Why does “the belt is not fastened” need NOT S?

  1. 1
    X = 1 (on): E = 1 and B = 1 · Y = 0 (off): S = 1, so NOT S = 0
  2. 2
    NOR: A NOR B = 1 only when A = 0 and B = 0
  3. 3
    S = 1 means fastened, so “not fastened” is the 0 state of S
Tick what you can do now
Exam focusRead the input table first: 1 does not always mean “yes” or “OK”. A condition that matches the 0 state of an input needs NOT.
Practise with w24/11 Q5(b); w22/12 Q3(a) (older paper: draw the circuit from a statement)
24 / 24