Worked example 1
A logic circuit is represented by the Boolean expression .
(i) Draw the logic circuit for this expression. [3 marks] (ii) Complete the truth table for this circuit. [4 marks]
Show solution outline
(i) To draw the circuit, we identify the gates needed: two AND gates, one NOT gate, and one OR gate.
- The first AND gate takes inputs A and B.
- The NOT gate takes input B to produce .
- The second AND gate takes inputs and C.
- The OR gate takes the outputs of the two AND gates to produce the final output X.
(A diagram would be drawn here showing A and B into an AND gate; B into a NOT gate, then its output and C into a second AND gate; the outputs of both AND gates into an OR gate, which gives X.)
(ii) The truth table requires columns for all inputs (A, B, C), any intermediate steps ($$\neg{B}A \cdot B\neg{B} \cdot C2^3 = 8
| A | B | C | ||||
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| --- | --- | --- | --- | --- | --- | --- |
| 0 | 0 | 1 | 1 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 | 1 | 0 | 1 |
Marking: [1] for correct AND/OR structure. [1] for correct NOT gate placement. [1] for correct labelling. [1] for correct column headings in truth table. [1] for correct column. [1] for correct intermediate columns. [1] for correct final X column.