2080 11

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]

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

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:

  1. NOT: input B โ†’ output $\bar{B}$
  2. AND1: inputs $\bar{B}$, A โ†’ output $\bar{B}A$
  3. OR1: inputs C, $\bar{B}A$ โ†’ output $P$
  4. OR2 (3-input): inputs A, $\bar{B}$, D โ†’ output $Q$
  5. 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$

ABCD$\bar B$$\bar B A$$P$$Q$$y$
000010010
000110010
001010111
001110111
010000000
010100010
011000100
011100111
100011111
100111111
101011111
101111111
110000010
110100010
111000111
111100111

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.