9618/33/M/J/24 question 11: worked solution (May/June 2024, paper 33)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 15.1 Processors, Parallel Processing and Virtual Machines Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 1 of 2. Q13 9618/33/M/J/24 original Q11 Structured · 8 marks 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 IDEA An 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 VIDEO ▶ Whole paper Video solution of the whole paper · by CsWithMym. Tap the picture to open it on YouTube.