Wimzee Cambridge Academy
← All Revision Notes← IGCSE Computer Science

Hardware

Revision Notes — IGCSE
CAIE IGCSE Computer Science (0478) • Topic 3 of 10 • Paper 1 & Paper 2
Mastered: 0 / 2

3.1 Computer Architecture

The CPU (central processing unit) carries out all the processing. In Von Neumann architecture, both instructions and data are stored in the same memory and are fetched one at a time over the same bus.

ComponentFunction
Control Unit (CU)Fetches and decodes instructions, controls the flow of data between components and tells other parts what to do
Arithmetic Logic Unit (ALU)Performs arithmetic (add, subtract) and logical (AND, OR, NOT, comparisons) operations
RegistersVery fast storage inside the CPU
CacheFast memory close to the CPU holding frequently used instructions and data, reducing access time to RAM
RegisterHolds
Program Counter (PC)The address of the next instruction to be fetched
Memory Address Register (MAR)The address of the location being read from or written to
Memory Data Register (MDR)The data or instruction just fetched from memory, or about to be written
Current Instruction Register (CIR)The instruction currently being decoded and executed
Accumulator (ACC)The results of calculations carried out by the ALU

Buses

Fetch–decode–execute cycle

  1. Fetch — the address in the PC is copied to the MAR; the instruction at that address is fetched into the MDR; the PC is incremented.
  2. Decode — the instruction in the CIR is decoded by the CU to work out what must be done.
  3. Execute — the instruction is carried out; the ALU performs any calculation and the result is stored in the accumulator.
  4. The cycle repeats with the next instruction.

What makes a CPU faster?

3.2 Input and Output Devices

DeviceUseWhy chosen
KeyboardEntering text and numbersFast and accurate for large amounts of text
Mouse / touchpadPointing, selecting, draggingEasy navigation of a graphical interface
TouchscreenDirect input on phones, kiosks, tabletsIntuitive; no separate device needed; can also display output
ScannerConverting paper documents into digital imagesKeeps a permanent digital copy that can be edited
Digital cameraCapturing images and videoInstant, high quality, easy to transfer
MicrophoneCapturing soundNeeded for recording, video calls and voice control
SensorDetecting physical conditions (temperature, light, pressure, moisture, motion)Used in automated systems to provide data to a microprocessor
DeviceUseNotes
Monitor / LCD screenDisplaying soft copy outputNeeds no consumables; can show moving images
Printer (laser / inkjet)Producing hard copyLaser is fast and cheap per page for bulk text; inkjet is better for photos
3D printerBuilding a solid object layer by layerUsed for prototypes and custom parts
Speaker / headphonesOutputting soundNeeded for music, alerts and accessibility
ProjectorDisplaying to a large audienceGood for classrooms and presentations
ActuatorConverting a signal into movement (motor, valve, heater)The output part of an automated system

3.3 Memory and Storage

MemoryVolatile?Function
RAMYes — contents lost when power is offHolds the operating system, open programs and data currently in use; read and write
ROMNo — contents kept permanentlyHolds the bootstrap/start-up instructions (BIOS) that load the operating system; read only
Virtual memoryNoAn area of secondary storage used when RAM is full; pages are swapped in and out, which is much slower than RAM

Secondary storage is needed because RAM is volatile and limited. It holds the operating system, software, user files and backups permanently. The three types are magnetic (hard disk), optical (CD/DVD/Blu-ray) and solid state (SSD, USB flash, SD card).

Embedded systems

An embedded system is a computer built into another device to perform a dedicated function, usually with a microprocessor, memory and firmware stored in ROM. Examples: washing machines, car engine management, central heating controllers, digital watches, microwave ovens. They are cheap, small, low power and reliable, but cannot easily be upgraded and are hard to repair.

Exam trap

RAM is not the same as storage. Saying "the file is saved in RAM" loses marks — files are saved in secondary storage. RAM only holds what is currently in use.

Five-minute drill

  1. State the purpose of the program counter.
  2. Name the three buses and state the direction of data on each.
  3. Explain two reasons why a larger cache improves performance.
  4. Give two differences between RAM and ROM.
  5. Name a suitable sensor and output device for an automatic door.
Exam practice 1[5]

Describe the fetch–decode–execute cycle.

Mark scheme
  • Fetch: the address in the PC is copied to the MAR (1); the instruction is fetched from memory into the MDR and then the CIR (1); the PC is incremented (1).
  • Decode: the CU decodes the instruction in the CIR (1).
  • Execute: the instruction is carried out, with the ALU performing any calculation and the result stored in the accumulator (1).
Exam practice 2[4]

A car manufacturer uses embedded systems for engine management. Explain two benefits and one drawback of using an embedded system in a car.

Mark scheme
  • Benefit: it performs a dedicated function and can respond to sensor data in real time (1), improving efficiency and safety (1).
  • Benefit: it is small and cheap to include in every vehicle (1).
  • Drawback: it is difficult to upgrade or repair (1); a fault can be hard to diagnose and the firmware cannot easily be changed (1).

Quick Reference

CU = control, ALU = arithmetic + logic, registers = temporary storage PC -> address of next instruction; MAR -> address in use; MDR -> data; CIR -> current instruction Address bus = one way; data bus = both ways; control bus = signals Faster CPU: clock speed, cores, cache size RAM = volatile, in use; ROM = permanent, start-up Embedded system = dedicated function, firmware in ROM