PHY118 ยท 2075 ยท 5 marks
The output of a digital circuit (y) is given by this expression: y = (CB + overlineCA)(overlineBA) where A, B and C represent inputs. Draw a circuit of the above equation using OR, AND and NOT gate and hence find its truth table.
The output of a digital circuit $(y)$ is given by this expression: $y = (CB + \overline{C}A)(\overline{B}A)$ where $A$, $B$ and $C$ represent inputs. Draw a circuit of the above equation using OR, AND and NOT gate and hence find its truth table. [5]
Digital Circuit: $y = (CB + \bar{C}A)(\bar{B}A)$
Given
Boolean expression: $$y = (CB + \bar{C}A)(\bar{B}A)$$
Inputs: $A, B, C$ (three inputs โ $2^3 = 8$ combinations).
Gates allowed: AND, OR, NOT only.
Solution
Gates required
| Gate | Type | Operation |
|---|---|---|
| G1 | NOT | $\bar{C}$ |
| G2 | NOT | $\bar{B}$ |
| G3 | AND | $C \cdot B$ |
| G4 | AND | $\bar{C} \cdot A$ |
| G5 | OR | $CB + \bar{C}A$ |
| G6 | AND | $\bar{B} \cdot A$ |
| G7 | AND | $y = (CB + \bar{C}A)(\bar{B}A)$ |
Circuit Diagram
C โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ[AND G3]โโโ(CB)โโโโโโโโโโโโ
โ โ
B โโโโโโโโโโโโโโโผโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโ โโโ[OR G5]โโโ
โ [NOT G2]โโ(Bฬ)โโโ (CB+CฬA) โ โ
C โโ[NOT G1]โโ(Cฬ)โโ[AND G4]โโ(CฬA)โโโโโโโโโผโโโโโโโโโโโโโโโโโโโโ โ
โ โโโ[AND G7]โโ y
A โโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ[AND G4 in]โโ โ
โ โ
โโโโโโโโโโโโโโโโโโโ[AND G6]โโโ(BฬA)โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Cleaner signal flow:
- $\bar{C}$ from G1 (NOT on C)
- $\bar{B}$ from G2 (NOT on B)
- $CB$ from G3 (AND of C, B)
- $\bar{C}A$ from G4 (AND of $\bar{C}$, A)
- $CB + \bar{C}A$ from G5 (OR of G3, G4)
- $\bar{B}A$ from G6 (AND of $\bar{B}$, A)
- $y$ from G7 (AND of G5, G6)
Truth Table
| A | B | C | $\bar{C}$ | $\bar{B}$ | $CB$ | $\bar{C}A$ | $CB+\bar{C}A$ | $\bar{B}A$ | $y$ |
|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 |
Check This Row Carefully
The row A=1, B=0, C=1 is the one most often got wrong:
- $CB = C \cdot B = 1 \cdot 0 = 0$ (not $1$)
- $\bar{C}A = 0 \cdot 1 = 0$
- So $CB + \bar{C}A = 0$, not $1$
- $\bar{B}A = 1 \cdot 1 = 1$
- $y = 0 \cdot 1 = 0$, not $1$
So $y = 1$ occurs only for A=1, B=0, C=0.
Simplified expression
$$y = (CB + \bar{C}A)(\bar{B}A)$$
Distribute: $$y = CB\bar{B}A + \bar{C}A\bar{B}A = 0 + \bar{C}\bar{B}A = A\bar{B}\bar{C}$$
(since $B\bar{B}=0$ and $A\cdot A = A$)
Result
$$\boxed{y = A\bar{B}\bar{C}}$$
Output $y = 1$ only when $A=1, B=0, C=0$, so $y = A\bar{B}$ (independent of $C$) is not correct.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.