PHY118 ยท 2080 ยท 5 marks
The output of a digital circuit (y) is given by this expression: y = (C + overlineBA)(A + overlineB + D) where A, B, C and D represent inputs. Draw a circuit of above equation using OR, AND and NOT gate and hence find its truth table. [5+0]
The output of a digital circuit (y) is given by this expression: $y = (C + \overline{B}A)(A + \overline{B} + D)$ where A, B, C and D represent inputs. Draw a circuit of above equation using OR, AND and NOT gate and hence find its truth table. [5+0]
Digital Circuit: $y = (C + \bar{B}A)(A + \bar{B} + D)$
Given
Expression: $$y = (C + \bar{B}A)(A + \bar{B} + D)$$
Inputs: A, B, C, D (4 inputs โ $2^4 = 16$ combinations)
Gates required: OR, AND, NOT only.
Step 2: Decompose the Expression
- NOT gate: $\bar{B}$
- AND gate 1: $\bar{B}A$
- OR gate 1 (first factor): $P = C + \bar{B}A$
- OR gate 2 (second factor): $Q = A + \bar{B} + D$
- AND gate 2 (final): $y = P \cdot Q$
Gate count: 1 NOT, 2 AND, 2 OR.
Step 3: Circuit Diagram
B ---[NOT]---+--------------------> Bฬ
|
| Bฬ
+--->[AND1]---> BฬA ---+
A -----+---------> | |
| C---+->[OR1]---> P = C + BฬA ---+
| |
| [AND2]---> y
| A ----+ |
| | |
+----------+ |
Bฬ --+--->[OR2]---> Q = A + Bฬ + D ----------------+
D ---+
Gate list:
- NOT: input B โ output $\bar{B}$
- AND1: inputs $\bar{B}$, A โ output $\bar{B}A$
- OR1: inputs C, $\bar{B}A$ โ output $P$
- OR2 (3-input): inputs A, $\bar{B}$, D โ output $Q$
- AND2: inputs P, Q โ output $y$
Step 4: Truth Table
Intermediate columns: $\bar{B}$, $\bar{B}A$, $P = C + \bar{B}A$, $Q = A + \bar{B} + D$, $y = P\cdot Q$
| A | B | C | D | $\bar B$ | $\bar B A$ | $P$ | $Q$ | $y$ |
|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 |
Verification of a few rows:
- Row A=0,B=1,C=1,D=0: $\bar B=0$, $\bar BA=0$, $P=1+0=1$, $Q=0+0+0=0$, $y=1\cdot0=0$ โ
- Row A=1,B=0,C=0,D=0: $\bar B=1$, $\bar BA=1$, $P=0+1=1$, $Q=1+1+0=1$, $y=1$ โ
- Row A=0,B=1,C=1,D=1: $P=1$, $Q=0+0+1=1$, $y=1$ โ
Summary
- Gates used: 1 NOT, 2 AND, 2 OR
- Output $y = 1$ for 9 of the 16 input combinations, namely $ABCD = $ 0010, 0011, 0111, 1000, 1001, 1010, 1011, 1110 and 1111.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.