Cambridge A2 Level Computer Science 9618 · 15.1 Processors, Parallel Processing and Virtual Machines

Q13 · 9618/33/M/J/24 Q11

Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 1 of 2.

Q139618/33/M/J/24original Q11Structured · 8 marks
Question 11 from 9618/33/M/J/24

Worked solution

(a)

Write any two of these RISC features:

Uses hard-wired control units (no microcode) [1]

Uses few, simple instructions / few addressing modes / one cycle per instruction / fixed-length instructions / many general-purpose registers / pipelining is easy to use [1]

(b)

Describe what happens, in order:

The processor checks for an interrupt at the end (or start) of each fetch-execute cycle and detects one [1]

The current program is stopped and the register contents are saved on the stack [1]

The interrupt service routine (ISR) runs. After it, the registers are restored from the stack and the original program carries on [1]

(c)

Explain the effect of the pipeline:

With pipelining several instructions are in the pipeline at once, so handling an interrupt is more complex [1]

The instructions already in the pipeline are usually discarded, except the one in the last stage (write back) [1]

The ISR is run once that last instruction finishes. Afterwards the processor restarts with the next instruction in the sequence [1]

KEY IDEAAn interrupt saves the program's state on the stack, runs the ISR and then restores the state; a pipeline makes this harder because many instructions are part-done.
TOTAL 8 marks

Official mark scheme

Mark scheme for 9618/33/M/J/24 question 11
VIDEO
▶ Whole paper

Video solution of the whole paper · by CsWithMym. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.