Cambridge A2 Level Computer Science 9618 · 15.2 Boolean Algebra and Logic Circuits

Q20 · 9618/32/O/N/22 Q8

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

Q209618/32/O/N/22original Q8Structured · 8 marks
Question 8 from 9618/32/O/N/22

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 IDEAA 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

Mark scheme for 9618/32/O/N/22 question 8
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.