Skip to content
Marlbridge

Revision Notes

Cambridge A Level Computer Science (9618): Hardware and Virtual Machines – Revision Notes

Revision notes on RISC and CISC, pipelining, Flynn architectures, virtual machines, adders, flip-flops, De Morgan and Karnaugh maps for Cambridge 9618.

Level
A LEVEL
Topic
Topic 15: Hardware and Virtual Machines
Updated

Aligned to Cambridge A Level Computer Science (9618), 2026. Official specification .

Syllabus page (what it covers and how it is assessed): Cambridge A Level Computer Science.

Syllabus points this page covers

9618 (A Level)

  • 15 Hardware and Virtual Machines (whole topic)
  • 15.1 Processors, Parallel Processing and Virtual Machines
  • 15.2 Boolean Algebra and Logic Circuits

Found an error? Report a correction.

Need help with this topic? Request a free trial class for A Level Computer Science (9618).

Topic 15 Hardware and Virtual Machines covers processor design (RISC versus CISC, pipelining and interrupt handling), parallel computer architectures, virtual machines, and logic design with adders, flip-flops, Boolean algebra and Karnaugh maps. In Cambridge International AS & A Level Computer Science 9618 it is A Level content examined in Paper 3, where you compare designs in contrasting pairs and simplify logic expressions with full working.

Related: Hardware and Virtual Machines study guide · practice questions · Computer Science course hub

Syllabus coverage

Section Candidates should be able to
15.1 Show understanding of RISC and CISC processors: their differences, and interrupt handling on each
15.1 Show understanding of the importance and use of pipelining and registers in RISC processors
15.1 Show understanding of the four basic computer architectures: SISD, SIMD, MISD, MIMD
15.1 Show understanding of the characteristics of massively parallel computers
15.1 Show understanding of the concept of a virtual machine: examples of its role, benefits and limitations
15.2 Produce truth tables for logic circuits including half adders and full adders (gates may have more than two inputs)
15.2 Show understanding of SR and JK flip-flops: draw the circuit, derive the truth table, and their role as data storage elements
15.2 Show understanding of Boolean algebra and De Morgan’s laws; simplify a circuit or expression using Boolean algebra
15.2 Show understanding of Karnaugh maps: their benefits, and solve logic problems with them

RISC versus CISC

Feature RISC CISC
Instruction set Small, simple instructions Large, many complex instructions
Cycles per instruction Mostly one Many, varying
Instruction length Fixed Variable
Addressing modes Few Many
Registers Many general-purpose registers Fewer
Memory access Only load and store instructions access memory Many instructions can access memory
Control unit Hardwired Often microprogrammed
Program length More instructions per program Fewer instructions per program
Pipelining Easy and efficient Harder

Why registers matter in RISC: operands are kept in registers, so most instructions work register-to-register in one cycle, avoiding slow memory accesses and keeping the pipeline full.

Pipelining

Instruction processing is split into stages (for example fetch, decode, execute, memory access, write back) so that a different instruction can be in each stage at the same time. Throughput rises; each instruction still takes the same number of cycles.

With a 5-stage pipeline and no hazards, n instructions take 5 + (n − 1) cycles, compared with 5n without pipelining. For 20 instructions: 24 cycles instead of 100.

Interrupt handling: on a CISC processor without a pipeline, the interrupt is checked for after the current instruction finishes; registers are saved and the ISR runs. On a pipelined RISC processor several instructions are part-way through when the interrupt arrives. Either the later instructions are flushed from the pipeline and only the one furthest on is completed before the ISR is loaded, or each stage keeps its own copy of the program counter and register data so the state of every instruction in the pipeline can be saved and resumed.

Flynn’s four architectures

Architecture Meaning Example
SISD Single instruction, single data A single-core processor running one program
SIMD Single instruction, multiple data Array or vector processing; applying one filter to every pixel
MISD Multiple instruction, single data Several processors check the same data, e.g. in fault-tolerant systems (rare)
MIMD Multiple instruction, multiple data Multi-core processors; clusters, each core running its own instructions on its own data

Massively parallel computers: a very large number of processors, each with its own memory, linked by a fast network; each works on part of one problem and they exchange results by passing messages. Used for weather forecasting, climate and scientific simulation. The software must be written to split the task; parts that depend on each other limit the speed-up.

Virtual machines

A virtual machine is software that emulates a computer system, so a guest operating system or program runs as if on its own hardware, inside a host system.

Examples of their role Benefits Limitations
Running a second operating system on one computer Several systems on one set of hardware saves cost Slower than running directly on hardware
Running intermediate code, e.g. Java bytecode on the Java Virtual Machine Programs become portable across platforms The VM uses extra memory and processing
Testing software, or examining malware, in an isolated environment A crash or infection stays inside the VM May not reproduce real hardware exactly
Running old (legacy) software on new hardware Old software stays usable Emulation can be complex to set up

Virtual machines are not virtual memory (June 2024 Paper 32).

Half adder and full adder

A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1

Half adder: Sum = A XOR B; Carry = A AND B.

A B Cin Sum Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1

Full adder: two half adders and an OR gate. Sum = (A XOR B) XOR Cin; Cout = (A AND B) OR (Cin AND (A XOR B)).

Flip-flops

A flip-flop stores one bit; its output depends on its inputs and its previous state, which is why it can act as memory (registers, SRAM).

SR (NOR gates) S R Q next
0 0 No change (Q held)
1 0 1 (set)
0 1 0 (reset)
1 1 Invalid: Q and Q̄ both 0, state unpredictable when inputs return to 0

A NOR-based SR flip-flop is two cross-coupled NOR gates: each gate’s output feeds back to an input of the other.

JK (clocked) J K Q next
0 0 No change
1 0 1
0 1 0
1 1 Toggle (Q becomes NOT Q)

The JK flip-flop removes the invalid state and changes only on a clock pulse, so outputs are synchronised.

Boolean algebra

Law AND form OR form
Identity A.1 = A A + 0 = A
Null A.0 = 0 A + 1 = 1
Idempotent A.A = A A + A = A
Inverse A.Ā = 0 A + Ā = 1
Absorption A.(A + B) = A A + A.B = A
Distributive A.(B + C) = A.B + A.C A + B.C = (A + B).(A + C)
De Morgan NOT(A.B) = Ā + B̄ NOT(A + B) = Ā.B̄

Worked simplification: X = A.B + A.B̄ + Ā.B

  • A.B + A.B̄ = A.(B + B̄) = A.1 = A, so X = A + Ā.B.
  • A + Ā.B = (A + Ā).(A + B) = 1.(A + B) = A + B.

De Morgan in use: NOT(A.B + C) = NOT(A.B).NOT C = (Ā + B̄).C̄. Change the operator and invert each term.

Karnaugh maps

  • Label rows and columns in Gray code (00, 01, 11, 10) so neighbouring cells differ by one variable.
  • Group 1s in rectangles of 1, 2, 4, 8 or 16 cells; make groups as large as possible and as few as possible; groups may overlap and wrap round edges.
  • For each group, write the term using only the variables that do not change within it.
  • Benefits: a visual method that gives the simplest sum-of-products expression with fewer steps and fewer errors than algebra, and so fewer gates.

Example (four variables): F = 1 for ABCD = 0000, 0010, 1000, 1010 (the four corners) and 0101, 0111, 1101, 1111 (the centre block).

AB \ CD 00 01 11 10
00 1 0 0 1
01 0 1 1 0
11 0 1 1 0
10 1 0 0 1

The corners form one group of four (B = 0, D = 0): B̄.D̄. The centre forms a group of four (B = 1, D = 1): B.D. So F = B̄.D̄ + B.D.

Common mistakes and exam traps

  • Saying pipelining speeds up a single instruction; it raises throughput.
  • Swapping SIMD and MIMD.
  • Confusing virtual machines with virtual memory (June 2024).
  • K-map groups of 3 or 6; missing a wrap-round group; not making groups as large as possible.
  • Applying De Morgan’s law without changing AND to OR (or OR to AND).
  • Forgetting that S = R = 1 is invalid for an SR flip-flop.

Frequently asked questions

Why are RISC processors better suited to pipelining? Their instructions are a fixed length and mostly take one cycle, so each stage takes the same time and instructions flow through evenly.

Why can a flip-flop store data but an AND gate cannot? The flip-flop’s outputs feed back into its inputs, so it keeps its state after the input changes; a simple gate’s output depends only on the current inputs.

Do I need to know MISD examples? It is rarely used in practice. Describe it correctly and give a fault-tolerant system, where several processors handle the same data, as an illustration.

Official syllabus

Cambridge International AS & A Level Computer Science 9618, syllabus for 2026 and syllabus for 2027, 2028 and 2029, Topic 15 (15.1 and 15.2). Examiner points are summarised on our 9618 past papers page.

Get free revision emails (optional)

Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.

Subjects (optional, up to 6)

Choose a qualification to see its subjects.

Related resources

Related articles

Studying this with a teacher

Working through Computer Science A LEVEL?

This page is free and stays free. If you would rather be taught it, Marlbridge runs Computer Science classes one-to-one and in small groups of up to 15, online in your own time zone. The first trial class is free. WhatsApp replies within an hour (8am–11pm Pakistan time, every day); email the same day.

Cambridge Computer Science teachers at Marlbridge