2075 10

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]

PhysicsChapter 7: Universal Gates and Physics of Integrated CircuitsUniversal gatesNumerical: digital circuit truth table

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

GateTypeOperation
G1NOT$\bar{C}$
G2NOT$\bar{B}$
G3AND$C \cdot B$
G4AND$\bar{C} \cdot A$
G5OR$CB + \bar{C}A$
G6AND$\bar{B} \cdot A$
G7AND$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

ABC$\bar{C}$$\bar{B}$$CB$$\bar{C}A$$CB+\bar{C}A$$\bar{B}A$$y$
0001100000
0010100000
0101000000
0110000000
1001101111
1010100010
1101001100
1110010100

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.