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]
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
| m | A | B | C | D | F |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 2 | 0 | 0 | 1 | 0 | 0 |
| 3 | 0 | 0 | 1 | 1 | 1 |
| 4 | 0 | 1 | 0 | 0 | 1 |
| 5 | 0 | 1 | 0 | 1 | 1 |
| 6 | 0 | 1 | 1 | 0 | 0 |
| 7 | 0 | 1 | 1 | 1 | 0 |
| 8 | 1 | 0 | 0 | 0 | 1 |
| 9 | 1 | 0 | 0 | 1 | 1 |
| 10 | 1 | 0 | 1 | 0 | 1 |
| 11 | 1 | 0 | 1 | 1 | 0 |
| 12 | 1 | 1 | 0 | 0 | 0 |
| 13 | 1 | 1 | 0 | 1 | 0 |
| 14 | 1 | 1 | 1 | 0 | 0 |
| 15 | 1 | 1 | 1 | 1 | 1 |
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 C | m(D=0) / m(D=1) | F,F | Input |
|---|---|---|---|
| 000 | m0=1, m1=1 | 1,1 | 1 |
| 001 | m2=0, m3=1 | 0,1 | D |
| 010 | m4=1, m5=1 | 1,1 | 1 |
| 011 | m6=0, m7=0 | 0,0 | 0 |
| 100 | m8=1, m9=1 | 1,1 | 1 |
| 101 | m10=1, m11=0 | 1,0 | D' |
| 110 | m12=0,m13=0 | 0,0 | 0 |
| 111 | m14=0,m15=1 | 0,1 | D |
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):
| Product | A | B | C | D | F |
|---|---|---|---|---|---|
| $A'C'$ | 0 | - | 0 | - | 1 |
| $B'C'$ | - | 0 | 0 | - | 1 |
| $A'B'D$ | 0 | 0 | - | 1 | 1 |
| $AB'CD'$ | 1 | 0 | 1 | 0 | 1 |
| $ABCD$ | 1 | 1 | 1 | 1 | 1 |
(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.