Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2.
The three inputs A, B and C go into one NAND gate, giving P. P is 0 only when A, B and C are all 1. Then Q = P AND D, and Z = P XOR Q.
| A | B | C | D | P | Q | Z |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 0 | 1 | 1 | 1 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 1 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 1 | 1 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 |
Z correct for rows 0000 to 0100 [1]
Z correct for rows 0101 to 1001 [1]
Z correct for rows 1010 to 1111 [1]
Take NOT A . NOT D out of every term, then use B and C in all four combinations.
Y = NOT A . NOT D . (NOT B . NOT C + NOT B . C + B . NOT C + B . C) [1]
= NOT A . NOT D . (NOT B . (NOT C + C) + B . (NOT C + C))
= NOT A . NOT D . (NOT B . 1 + B . 1) using NOT C + C = 1 [1]
= NOT A . NOT D . (NOT B + B) = NOT A . NOT D . 1
Write: Y = NOT A . NOT D [1]
▶ Topic lesson
A lesson on this topic · by Craig'n'Dave. 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.