2080 3

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]

Digital LogicChapter 5: Combinational Logic with MSI and LSIMultiplexersNumerical: Boolean function implementation minterms

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

mPQRSF
000000
100010
200100
300111
401001
501010
601101
701110
810001
910011
1010100
1110110
1211000
1311010
1411101
1511110

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$.

RowPQRF(S=0)F(S=1)Input
I0000m0=0m1=00
I1001m2=0m3=1S
I2010m4=1m5=0S'
I3011m6=1m7=0S'
I4100m8=1m9=11
I5101m10=0m11=00
I6110m12=0m13=00
I7111m14=1m15=0S'

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):

ProductPQRSโ†’ F
PQ'R'100-1
P'QS'01-01
P'Q'RS00111
PQRS'11101

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.