9618/32/O/N/22 question 8: worked solution (October/November 2022, paper 32)
Show as plain textHide 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. Q20 9618/32/O/N/22 original Q8 Structured · 8 marks Worked solution (a) An SR flip-flop is two NOR gates (or two NAND gates) joined in a cross-coupled loop. Draw the NOR version like this: Top NOR gate: inputs are R (Reset) and the output of the lower gate. Its output is Q . Lower NOR gate: inputs are S (Set) and the output of the top gate. Its output is NOT Q . One correct NOR (or NAND) gate with two separate inputs and one output [1] A second gate of the same type, also with two separate inputs and one output [1] Each gate's output fed back to an input of the other gate (cross-connections) [1] Inputs labelled S (Set) and R (Reset) [1] A NAND version also scores: the top NAND takes S and the lower NAND's output; the lower NAND takes R and the top NAND's output. (b) Write: to store one binary digit (a single bit) [1] (c) Use De Morgan's law on the long bar: NOT(X . Y . Z) = NOT X + NOT Y + NOT Z. Each term is now double negated: NOT NOT (NOT A . NOT B) + NOT NOT (NOT A . C) + NOT NOT (B . D). Apply De Morgan's law [1] Remove the double negations: (NOT A . NOT B) + (NOT A . C) + (B . D) [1] Take out the common NOT A (distributive law): NOT A . (NOT B + C) + B . D [1] KEY IDEA A flip-flop is two cross-coupled NOR or NAND gates that hold one bit; De Morgan's law turns a long NOT over products into a sum of terms. TOTAL 8 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.