9618/13/O/N/23 question 9: worked solution (October/November 2023, paper 13)
Show as plain textHide plain text
Cambridge AS Level Computer Science 9618 · 4.1 Central Processing Unit (CPU) Architecture Worked solution from the Processor Fundamentals Paper 1 Theory Fundamentals booklet, Part 1 of 3. Q9 9618/13/O/N/23 original Q9 Structured · 13 marks Worked solution (a)(i) Any three of these: Control unit (CU) [1] Arithmetic and Logic Unit (ALU) [1] Immediate Access Store (IAS) (main memory) [1] The system clock also scores. (a)(ii) Any two differences: Special purpose registers hold the status of a program , whereas general purpose registers hold temporary data during operations [1] Special purpose registers have one specific use , whereas general purpose registers can be used for any purpose [1] Another accepted point: most instructions can use general purpose registers, but only certain instructions use special purpose ones. (b) Step Description PC ← [PC] + 1 The address in PC is incremented. MDR ← [[MAR]] The data in the location pointed to by the MAR is copied to the MDR. MAR ← [PC] The contents of PC are copied to the MAR. CIR ← [MDR] The contents of MDR are copied into CIR. PC ← [PC] + 1 [1] Description for MDR ← [[MAR]]: the data in the location pointed to by the MAR is copied to the MDR [1] Description for MAR ← [PC]: the contents of PC are copied to the MAR [1] CIR ← [MDR] [1] (c) Write one cause, for example division by zero [1] Other accepted causes: a run-time error, out of memory bounds, a program requesting an external device or input, a buffer overflow. (d) Put the letters in the gaps in the right order: Statement 2 = D (identify the source and check the priority) [1] Statement 4 = A (the ISR address is loaded into the PC) [1] Statement 6 = B (lower priority interrupts are re-enabled) [1] KEY IDEA Fetch: MAR ← [PC], MDR ← [[MAR]], PC ← [PC]+1, CIR ← [MDR]; interrupts are checked after each cycle. TOTAL 13 marks Official mark scheme VIDEO ▶ Starts at Q9 (1:15:41) Starts at Q9 (1:15:41) · by Pseudocode Pro. Tap the picture to open it on YouTube.