Worth about 18 of the 75 marks on a typical Paper 1, together with Data representation the biggest topic.

1. The CPU and microprocessors

The central processing unit (CPU) processes the instructions and data that are input into a computer so that the result can be output. A microprocessor is a type of integrated circuit on a single chip; the CPU of most devices is a microprocessor.

2. Von Neumann architecture

In a Von Neumann computer, program instructions and data are stored together in the same memory (RAM). The CPU fetches both from memory along the same buses.

CPU Control unit (CU)decodes, sends signalsALUcalculations and logic PCnext addressMARaddressMDRdataCIRcurrent instructionACCresults registers RAM 0: LOAD 51: ADD 62: STORE 75: 126: 30 Address busone way →Data busboth ways ⇄Control busboth ways ⇄
Instructions and data share the same memory and the same buses.
ComponentTypePurpose
Arithmetic logic unit (ALU)UnitCarries out calculations and logic comparisons
Control unit (CU)UnitDecodes instructions and sends control signals to manage the cycle
Program counter (PC)RegisterHolds the address of the next instruction to be fetched
Memory address register (MAR)RegisterHolds the address of the memory location being read from or written to
Memory data register (MDR)RegisterHolds the data or instruction fetched from memory, or about to be written to it
Current instruction register (CIR)RegisterHolds the instruction currently being decoded and executed
Accumulator (ACC)RegisterHolds the result of calculations from the ALU
Address busBusCarries addresses from the CPU to memory (one direction only)
Data busBusCarries data and instructions between the CPU and memory (both directions)
Control busBusCarries control signals, such as read, write and clock pulses (both directions)

3. The fetch–decode–execute cycle

  1. Fetch: the address in the PC is copied to the MAR (along the address bus). The instruction at that address is sent to the MDR (along the data bus). The PC is incremented by 1. The instruction is copied from the MDR to the CIR.
  2. Decode: the control unit decodes the instruction in the CIR to work out what to do.
  3. Execute: the instruction is carried out, for example the ALU does a calculation and stores the result in the accumulator, or data is loaded from or stored in memory.

The cycle then repeats for the next instruction. Step through it below with a three-line program.

Try it: step through the fetch–decode–execute cycle

The program adds the numbers at addresses 5 and 6 and stores the answer at address 7.

AddressContents

4. Cores, cache and clock

FactorWhat it isEffect on performance
CoresEach core is a processing unit that can run its own FDE cycleMore cores can process more instructions at the same time, if the software can use them
CacheSmall, very fast memory inside or near the CPU that stores frequently used instructions and dataA larger cache means fewer trips to slower RAM, so instructions are fetched faster
ClockSends regular pulses that set the pace of the CPU; clock speed is the number of FDE cycles per second (Hz)A faster clock carries out more cycles, and so more instructions, per second

The effects have limits: doubling the cores does not always double the speed, and a faster clock produces more heat.

5. Instruction sets

An instruction set is the list of all the commands a CPU can process. These commands are machine code. Different CPU designs have different instruction sets, so a program compiled for one may not run on another.

6. Embedded systems

An embedded system is a computer system built into a larger device to perform one dedicated function. A general-purpose computer, such as a PC or laptop, can perform many different functions.

  • Examples: domestic appliances (washing machines, microwaves), cars (engine management, airbags), security systems, lighting systems, vending machines.
  • Characteristics: small, low power, cheap to mass-produce, often controlled by sensors, and their program (firmware) rarely changes.

7. Input devices

An input device sends data into the computer so it can be processed.

DeviceHow it works
Barcode scannerShines light on the bars; black bars absorb it and white bars reflect it. The reflected pattern is converted to a number
QR code scannerA camera captures the 2D square pattern, which can hold much more data than a barcode, such as a web address
Digital cameraLight passes through the lens onto a sensor made of millions of light-sensitive pixels, which is converted into a digital image
KeyboardEach key press completes a circuit; the key’s character code is sent to the computer
MicrophoneSound waves vibrate a diaphragm, creating an electrical signal that is converted to digital
Optical mouseAn LED lights the surface and a sensor takes many images per second; changes between images show the movement
2D scannerLight scans a flat document; the reflected light is captured to create a digital image
3D scannerLasers or light scan an object from many angles to create a digital 3D model of its shape

Touch screens

TypeHow it worksPros and cons
ResistiveTwo layers are pressed together; the point of contact is detectedCheap, works with gloves or a stylus; less clear, no multi-touch
CapacitiveDetects the change in electrical charge when a finger touches the screenClear, multi-touch, durable; does not work with ordinary gloves
Infra-redA grid of infra-red beams across the screen; a touch breaks the beamsWorks with any object, good for large screens; can be triggered by accident

8. Output devices

An output device turns processed data into a form people (or machines) can use.

DeviceHow it works
ActuatorConverts an electrical signal into movement, such as a motor opening a valve
DLP projectorMillions of tiny mirrors tilt to reflect light towards or away from the lens to form the image
LCD projectorBright light passes through LCD panels that block or let through light to form the image
Inkjet printerNozzles spray tiny droplets of ink onto the paper as the print head moves across it
Laser printerA laser creates an electrostatic image on a rotating drum; toner sticks to it, is transferred to paper and fused with heat
3D printerBuilds a solid object layer by layer from a digital design, for example from melted plastic
LED screenEach pixel is made of LEDs that give off light
LCD screenLiquid crystals block or let through light from a backlight (usually LEDs) to form each pixel
SpeakerA digital signal is converted to analogue; it moves a cone that vibrates the air to make sound

9. Sensors

A sensor measures a physical property and sends the data to a computer. In exam answers, choose the sensor that fits the context and say how it is used there.

SensorMeasuresExample use
AcousticSoundDetecting breaking glass in a security system
AccelerometerAcceleration and movementDetecting a phone being tilted, or a car crash for airbags
FlowRate of flow of a liquid or gasMonitoring water flow in pipes
GasLevel of a gas, e.g. carbon dioxideSmoke or carbon monoxide alarms
HumidityWater vapour in the airGreenhouse climate control
Infra-redInfra-red radiation (heat)Detecting a person for automatic doors or alarms
LevelLevel of a liquidFuel or water tank monitoring
LightLight levelStreet lights turning on at dusk
Magnetic fieldMagnetic fieldsDetecting a door or window opening
MoistureWater content, e.g. of soilAutomatic watering of crops
pHAcidity or alkalinityMonitoring soil or a swimming pool
PressurePressure or forceDetecting weight on a car seat or in a burglar alarm mat
ProximityHow near an object isParking sensors
TemperatureTemperatureCentral heating thermostat

10. Primary storage: RAM and ROM

Primary storage is memory that the CPU can access directly.

RAM (random access memory)ROM (read only memory)
Volatile?Yes: data is lost when the power is offNo: data stays when the power is off
Can it be changed?Read and writeRead only
What it storesThe programs and data currently in use, including the operating systemThe start-up instructions (bootstrap) the computer needs to boot

A computer needs both: ROM to start up, and RAM to hold whatever it is working on.

11. Secondary storage

Secondary storage is not directly accessed by the CPU. It is non-volatile, so it is used to store data permanently.

TypeHow it worksExamples
MagneticSpinning platters divided into tracks and sectors; a read/write head uses electromagnets to magnetise areas. Has moving partsHard disk drive (HDD)
OpticalA laser burns pits and lands into the disc surface; reflected laser light is read backCD, DVD, Blu-ray
Solid-state (flash)NAND or NOR flash memory: transistors act as control gates and floating gates that trap charge. No moving partsSSD, SD card, USB drive

12. Virtual memory

When RAM is full, the operating system uses part of secondary storage as virtual memory. Pages of data that are not currently needed are moved from RAM to virtual memory, and moved back when they are needed.

It stops the computer crashing or refusing to open programs when RAM runs out, but it is much slower than RAM, so heavy use slows the computer down.

13. Cloud storage

Cloud storage keeps your data on remote physical servers owned by a provider, accessed over the internet, rather than on local storage.

AdvantagesDisadvantages
Access from any device with an internet connectionNo internet connection means no access
No need to buy and maintain your own storage hardwareOngoing subscription cost
Easy to increase capacity when neededYou rely on the provider’s security and could lose data if they are hacked or close
Provider usually handles backupsUploading and downloading large files can be slow

14. Network hardware

  • Network interface card (NIC): needed for a computer to connect to a network.
  • MAC address: a unique address given to the NIC when it is manufactured. Usually written in hexadecimal as six pairs (e.g. 00:1A:2B:3C:4D:5E). The first half is the manufacturer code; the second half is the serial code.
  • IP address: given to a device by the network it joins. It can be static (stays the same) or dynamic (changes each time it connects).
  • Router: sends data to a specific destination on a network, can assign IP addresses to devices, and connects a local network to the internet.
IPv4IPv6
Size32 bits128 bits
Written as4 denary numbers (0–255) separated by dots, e.g. 192.168.0.128 groups of 4 hex digits separated by colons, e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Number of addressesAbout 4.3 billion: running outVastly more, enough for every device

15. Examiner tips

  1. Describe the whole fetch stage. “The CPU fetches the instruction” scores little; name the PC, MAR, MDR, CIR and the buses in order.
  2. Don’t describe the execute stage when asked about fetch, and vice versa.
  3. MDR holds the data fetched from memory, not “the data from the MAR”. The MAR holds an address.
  4. Say which way cache changes performance. “A larger cache improves performance because…”, not just “cache affects speed”.
  5. Clock speed is cycles per second, not “the speed the CPU runs at”.
  6. An embedded system has one dedicated function. A smartphone or laptop is general purpose.
  7. Use the context with sensors. In a greenhouse question, say what the sensor measures there and what happens next.
  8. RAM is primary storage, not secondary, and it is volatile.
  9. Be precise about the cloud. Not “access anywhere”, but “access from any device with an internet connection”.
  10. SSD answers: “no moving parts” is the key point for durability, speed and power use.

16. Practice questions

Practice: answer and check instantly

Type a short answer, then press Check or Enter.

Show answer

The program counter (PC).

Show answer

The address bus: addresses only go from the CPU to memory.

Show answer

The current instruction register (CIR).

Show answer

A moisture sensor measures the water content of the soil.

Show answer

An accelerometer detects the sudden change in speed.

Show answer

ROM (read only memory).

Show answer

128 bits, written as 8 groups of 4 hex digits.

Show answer

Optical storage, such as CD, DVD and Blu-ray.

Exam-style questions

9. Describe the fetch stage of the fetch–decode–execute cycle. [4]

Show mark guide

Any four: the address in the PC is copied to the MAR · the address is sent along the address bus · the instruction at that address is sent along the data bus to the MDR · the PC is incremented · the instruction is copied from the MDR to the CIR.

10. A school is deciding whether to store students’ work in the cloud. Explain two advantages for the school. [4]

Show mark guide

Two points, each with an explanation, e.g. students can access their work from any device with an internet connection [1], so they can work from home [1] · the school does not need to buy and maintain its own servers [1], which saves money and space [1] · the provider handles backups [1], so work is less likely to be lost [1].

17. Topic test: predict your grade

Topic test: predict your grade

15 questions, about 10 minutes. Answer them all, then press Mark my test.

1. Which component carries out calculations and logic comparisons?
2. What does the MAR hold?
3. Which bus carries data in both directions?
4. What is held in the MDR?
5. How does a larger cache usually affect performance?
6. What does clock speed measure?
7. Which is an embedded system?
8. Which touch screen detects the electrical charge from a finger?
9. Which output device uses millions of tiny mirrors?
10. Which sensor would a carbon monoxide alarm use?
11. Which statement about RAM is true?
12. Which storage has no moving parts?
13. When is virtual memory used?
14. Which is true about a MAC address?
15. Which describes an IPv4 address?

Frequently asked questions

What is the fetch-decode-execute cycle?

The CPU fetches the next instruction from memory using the address in the program counter, decodes it in the control unit, and then executes it, often using the ALU. The cycle repeats for every instruction.

What is the difference between RAM and ROM?

RAM is volatile read-write memory that holds the data and programs currently in use. ROM is non-volatile and read-only, and holds start-up instructions such as the bootstrap loader.

What affects CPU performance?

Clock speed, the number of cores and the size of the cache all affect performance. More cores only help if the software can use them in parallel.

Was this page helpful?