CSC116 ยท 2080 ยท 10 marks
Question Implement the Boolean function F(P,Q,R,S)=sum(3,4,6,8,9,14) using: a. 8 to 1 multiplexer b. PLA c. Decoder [4+2+2+2]
Question
Implement the Boolean function $F(P,Q,R,S)=\sum(3,4,6,8,9,14)$ using:
a. 8 to 1 multiplexer b. PLA c. Decoder
[4+2+2+2]
Implementation of F(P,Q,R,S) = ฮฃ(3,4,6,8,9,14)
Given
- Function: $F(P,Q,R,S) = \sum m(3,4,6,8,9,14)$
- 4 variables: P (MSB), Q, R, S (LSB)
- Implement using: (a) 8-to-1 MUX, (b) PLA, (c) Decoder
Truth Table
| m | P | Q | R | S | F |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 |
| 2 | 0 | 0 | 1 | 0 | 0 |
| 3 | 0 | 0 | 1 | 1 | 1 |
| 4 | 0 | 1 | 0 | 0 | 1 |
| 5 | 0 | 1 | 0 | 1 | 0 |
| 6 | 0 | 1 | 1 | 0 | 1 |
| 7 | 0 | 1 | 1 | 1 | 0 |
| 8 | 1 | 0 | 0 | 0 | 1 |
| 9 | 1 | 0 | 0 | 1 | 1 |
| 10 | 1 | 0 | 1 | 0 | 0 |
| 11 | 1 | 0 | 1 | 1 | 0 |
| 12 | 1 | 1 | 0 | 0 | 0 |
| 13 | 1 | 1 | 0 | 1 | 0 |
| 14 | 1 | 1 | 1 | 0 | 1 |
| 15 | 1 | 1 | 1 | 1 | 0 |
Solution
Part (a): 8-to-1 Multiplexer [4 marks]
Select lines: $S_2=P,\ S_1=Q,\ S_0=R$. Data inputs expressed in terms of $S$.
| Row | P | Q | R | F(S=0) | F(S=1) | Input |
|---|---|---|---|---|---|---|
| I0 | 0 | 0 | 0 | m0=0 | m1=0 | 0 |
| I1 | 0 | 0 | 1 | m2=0 | m3=1 | S |
| I2 | 0 | 1 | 0 | m4=1 | m5=0 | S' |
| I3 | 0 | 1 | 1 | m6=1 | m7=0 | S' |
| I4 | 1 | 0 | 0 | m8=1 | m9=1 | 1 |
| I5 | 1 | 0 | 1 | m10=0 | m11=0 | 0 |
| I6 | 1 | 1 | 0 | m12=0 | m13=0 | 0 |
| I7 | 1 | 1 | 1 | m14=1 | m15=0 | S' |
Connections: $I_0=0,\ I_1=S,\ I_2=S',\ I_3=S',\ I_4=1,\ I_5=0,\ I_6=0,\ I_7=S'$
I0=0 --| |
I1=S --| |
I2=S' --| |
I3=S' --| 8-to-1 |--- F
I4=1 --| MUX |
I5=0 --| |
I6=0 --| |
I7=S' --| |
| | |
S0 S1 S2
R Q P
Part (b): PLA [2 marks]
Simplify with K-map (PQ rows, RS columns):
RS=00 01 11 10
PQ=00 | 0 | 0 | 1 | 0 | (m0 m1 m3 m2)
PQ=01 | 1 | 0 | 0 | 1 | (m4 m5 m7 m6)
PQ=11 | 0 | 0 | 0 | 1 | (m12 m13 m15 m14)
PQ=10 | 1 | 1 | 0 | 0 | (m8 m9 m11 m10)
Grouping:
- Minterms 8, 9 (100-): $PQ'R'$
- Minterms 4, 6 (01-0): $P'QS'$
- Minterm 3 (0011): $P'Q'RS$
- Minterm 14 (1110): $PQRS'$
Check coverage:
- $PQ'R'$ โ m8, m9 โ
- $P'QS'$ โ m4, m6 โ
- $P'Q'RS$ โ m3 โ
- $PQRS'$ โ m14 โ
$$F = PQ'R' + P'QS' + P'Q'RS + PQRS'$$
PLA program table (4 product terms, output F):
| Product | P | Q | R | S | โ F |
|---|---|---|---|---|---|
| PQ'R' | 1 | 0 | 0 | - | 1 |
| P'QS' | 0 | 1 | - | 0 | 1 |
| P'Q'RS | 0 | 0 | 1 | 1 | 1 |
| PQRS' | 1 | 1 | 1 | 0 | 1 |
AND array forms the 4 products; OR array connects all 4 to output F.
Part (c): Decoder [2 marks]
Use a 4-to-16 line decoder (4 inputs P,Q,R,S โ 16 outputs, active-high). Since F has 6 minterms, OR the corresponding decoder outputs:
$$F = m_3 + m_4 + m_6 + m_8 + m_9 + m_{14}$$
---------
P --->| |--- 3 --\
Q --->| 4-to-16 |--- 4 ---\
R --->| decoder |--- 6 ----+--- OR gate --- F
S --->| |--- 8 ---/
| |--- 9 --/
--------- |--- 14 -/
(other outputs unused)
Connect outputs $D_3, D_4, D_6, D_8, D_9, D_{14}$ to a 6-input OR gate; its output is F.
(If active-low decoder outputs are used, replace the OR gate with a NAND gate.)
Final Simplified Expression
$$\boxed{F = PQ'R' + P'QS' + P'Q'RS + PQRS'}$$
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.