9618/32/M/J/23 question 9: worked solution (May/June 2023, paper 32)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 15.2 Boolean Algebra and Logic Circuits Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2. Q22 9618/32/M/J/23 original Q9 Structured · 10 marks Worked solution (a) Pick every row where Z = 1 (rows 0000, 0001, 0010, 0011, 0110 and 0111) and write one product for each. Where an input is 0, write NOT in front of it. Z = NOT A . NOT B . NOT C . NOT D + NOT A . NOT B . NOT C . D [1] + NOT A . NOT B . C . NOT D + NOT A . NOT B . C . D [1] + NOT A . B . C . NOT D + NOT A . B . C . D [1] (b) Put a 1 in each cell whose row has Z = 1. Columns are AB, rows are CD (Gray code order). CD \ AB 00 01 11 10 00 1 0 0 0 01 1 0 0 0 11 1 1 0 0 10 1 1 0 0 All 16 cells correct (one error scores 1 mark) [2] (c) Loop the biggest groups of 1s. Groups must be 1, 2, 4, 8 or 16 cells in a rectangle. Loop 1: the whole AB = 00 column (four 1s) [1] Loop 2: the 2 × 2 block where AB = 00 or 01 and CD = 11 or 10 (four 1s) [1] (d) Loop 1: A = 0 and B = 0 stay the same, C and D change, so the term is NOT A . NOT B [1] Loop 2: A = 0 and C = 1 stay the same, B and D change, so the term is NOT A . C [1] Write: Z = NOT A . NOT B + NOT A . C (e) Take NOT A out as a common factor. Write: Z = NOT A . (NOT B + C) [1] KEY IDEA Loop groups of 1s in the K-map, keep the inputs that do not change inside each loop, then factorise if you can. TOTAL 10 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.