2078 2

BIT103 · 2078 · 5 marks

Implement the following function: F = Σ\SigmaΣ(0,1,3,4,5,8,9,10,15) using i) Decoder ii) Multiplexer iii) PLA

Implement the following function: F = Σ\SigmaΣ(0,1,3,4,5,8,9,10,15) using i) Decoder ii) Multiplexer iii) PLA[5]

Digital LogicChapter 5: Decoders and EncodersDecoder design and operationNumerical: Implement Boolean function

Implementation of F = Σ(0,1,3,4,5,8,9,10,15)

Given

  • Function: $F(A,B,C,D) = \Sigma m(0,1,3,4,5,8,9,10,15)$
  • 4 variables: A (MSB), B, C, D (LSB)
  • Minterms where F = 1: {0, 1, 3, 4, 5, 8, 9, 10, 15}
  • Minterms where F = 0: {2, 6, 7, 11, 12, 13, 14}

Truth Table

mABCDF
000001
100011
200100
300111
401001
501011
601100
701110
810001
910011
1010101
1110110
1211000
1311010
1411100
1511111

Solution

i) Using Decoder (4-to-16 Decoder)

A 4-to-16 decoder produces all 16 minterms on its outputs $D_0 \ldots D_{15}$. Feed the minterm outputs where F = 1 into an OR gate.

$$F = D_0 + D_1 + D_3 + D_4 + D_5 + D_8 + D_9 + D_{10} + D_{15}$$

A,B,C,D --> [4-to-16 Decoder]
              outputs D0,D1,D3,D4,D5,D8,D9,D10,D15
              --> [9-input OR gate] --> F

(If active-low decoder outputs are used, a 9-input NAND gate is used instead.)


ii) Using Multiplexer (8-to-1 MUX)

Use A, B, C as select lines ($S_2=A,,S_1=B,,S_0=C$) and D as data variable.

A B Cm(D=0) / m(D=1)F,FInput
000m0=1, m1=11,11
001m2=0, m3=10,1D
010m4=1, m5=11,11
011m6=0, m7=00,00
100m8=1, m9=11,11
101m10=1, m11=01,0D'
110m12=0,m13=00,00
111m14=0,m15=10,1D

MUX input connections:

$$I_0=1,; I_1=D,; I_2=1,; I_3=0,; I_4=1,; I_5=D',; I_6=0,; I_7=D$$


iii) Using PLA

Minimize using K-map.

          CD
AB     00   01   11   10
00 |    1    1    1    0
01 |    1    1    0    0
11 |    0    0    1    0
10 |    1    1    0    1

Grouping SOP terms:

  • P1: $A'C'$ → cells 00-00,00-01,01-00,01-01 = m0,m1,m4,m5 ✓
  • P2: $B'C'$ → m0,m1,m8,m9 (00-00,00-01,10-00,10-01) ✓
  • P3: $A'B'D$ → m1,m3 (00-01,00-11) ✓
  • P4: $B'C D'$ → m10 (10-10); pair with m8? m8=10-00 no. Use $A B' C D'$... check m10 alone. Pair m10 with m2(=0) not allowed. So $m10 = AB'CD'$ (single cell).
  • P5: $ABCD$ → m15 (single cell)

Verify coverage:

  • P1 covers 0,1,4,5
  • P2 covers 0,1,8,9
  • P3 covers 1,3
  • P4 covers 10
  • P5 covers 15

Union = {0,1,3,4,5,8,9,10,15} ✓ all minterms covered, no extra.

$$\boxed{F = A'C' + B'C' + A'B'D + AB'CD' + ABCD}$$

PLA Programming Table (5 product terms, inputs A,B,C,D, one output F):

ProductABCDF
$A'C'$0-0-1
$B'C'$-00-1
$A'B'D$00-11
$AB'CD'$10101
$ABCD$11111

(AND array programs the 5 product terms; OR array connects all 5 to output F.)

Common mistake: grouping the PLA K-map carelessly, for example placing $m_{10}$ in an $AB'$ pair that covers 10. The minimized expression above is the correct grouping. The MUX and decoder parts are straightforward by comparison.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.