Digital Logic · Unit 5 · 8 hrs
Combinational Logic with MSI and LSI
Exam-focused notes for Combinational Logic with MSI and LSI (Digital Logic, CSC116): what the TU syllabus asks and how it has actually been tested, with 15 solved past questions from this unit.
Combinational Logic with MSI and LSI in short
This chapter moves from single-bit combinational blocks to the medium and large-scale integrated building blocks assembled from them: multi-bit adders and subtractors, decimal arithmetic, magnitude comparison, decoders, encoders, multiplexers, and the memory-based devices, ROM, PLA and PAL, that implement combinational logic by storing it rather than wiring it.
What this unit covers
- Binary Parallel Adder and Subtractor
- Decimal Adder
- Magnitude Comparator
- Decoders and Encoders
- Multiplexers
- Read-only-Memory (ROM)
- Programmable Logic Array (PLA)
- Programmable Array Logic (PAL)
Multiplexers
2081 · 5 marks
What is Multiplexer. Design 8 to 1 Multiplexer with low level Multiplexers. [5]
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]
Show solved answerHide answer
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'}$$
2079 · 10 marks
Implement $F = \Sigma(1,4,5,7)$ using a. Multiplexer b. Decoder c. PLA [10]
2078 · 10 marks
Implement F using:
a. Multiplexer $$F = \sum(0,2,3,4,7)$$
b. Decoder
c. PLA[4+3+3]
Decoders and Encoders
2081 · 5 marks
What is decoder? Describe the 3 to 8 line decoder circuit. [5]
Show solved answerHide answer
Decoder and 3-to-8 Line Decoder
What is a Decoder?
A decoder is a combinational circuit that converts information of n input lines to a maximum of 2^n unique output lines. The purpose of a decoder is to generate one or more minterms of the n input variables. If any n-bit decoded information has unused or don't-care condition combinations, the decoder will have fewer than 2^n outputs.
3-to-8 Line Decoder
In a 3-to-8 line decoder, three inputs are converted into 8 outputs. It takes 3 input lines (A, B, C) and generates 8 output lines (D0 to D7), where each output corresponds to one unique minterm of the three input variables.
Truth Table
| A | B | C | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Boolean Expressions for Each Output
Each output is active HIGH (equals 1) for exactly one input combination:
D0 = A'B'C' (minterm 0)
D1 = A'B'C (minterm 1)
D2 = A'BC' (minterm 2)
D3 = A'BC (minterm 3)
D4 = AB'C' (minterm 4)
D5 = AB'C (minterm 5)
D6 = ABC' (minterm 6)
D7 = ABC (minterm 7)
Logic Circuit Diagram
The circuit uses 3 inverters (to generate complements A', B', C') and 8 three-input AND gates (one for each output):
A ---+-------+--- A'(inverter)
|
B ---+-------+--- B'(inverter)
|
C ---+-------+--- C'(inverter)
A' B' C' ---> [AND] ---> D0
A' B' C ---> [AND] ---> D1
A' B C' ---> [AND] ---> D2
A' B C ---> [AND] ---> D3
A B' C' ---> [AND] ---> D4
A B' C ---> [AND] ---> D5
A B C' ---> [AND] ---> D6
A B C ---> [AND] ---> D7
Key Points
- The decoder has 3 inputs and 8 outputs (since 2^3 = 8).
- At any given time, exactly one output is HIGH and all others are LOW.
- Each output represents a unique minterm of the input variables.
- A decoder with an enable input can also function as a demultiplexer, where the enable line acts as the data input and the input lines act as select lines.
2081 · 5 marks
Write short notes on: Encoder, Error detection codes [5]
2080 · 5 marks
What is decoder circuit? Design 3 to 8 decoder circuit. [5]
2080 · 5 marks
Write short notes on (any two): State Diagram, Encoder, Parallel Adder [5]
Show solved answerHide answer
Short Notes (Any Two)
1. State Diagram
A State Diagram is a graphical representation used to describe the behavior of a sequential circuit. It shows all possible states of the circuit and the transitions between those states based on input conditions.
Key Components:
| Component | Description |
|---|---|
| Circle / Node | Represents a state of the circuit |
| Arrow / Arc | Represents a transition from one state to another |
| Label on Arrow | Shows the input condition that causes the transition (and sometimes the output) |
Important Points:
- Each flip-flop combination corresponds to one state.
- For a circuit with n flip-flops, there are at most 2^n possible states.
- The diagram clearly shows the present state, the next state, and the input/output associated with each transition.
- It is closely related to the state table -- both convey the same information, but the state diagram is a visual/graphical form.
Example:
For a simple 2-bit counter with states 00, 01, 10, 11:
00 --> 01 --> 10 --> 11 --> 00 (cycles back)
Each arrow is labeled with the clock pulse or input that triggers the transition.
Use: State diagrams are widely used in the design and analysis of counters, sequence detectors, and other sequential logic circuits.
2. Encoder
An Encoder is a combinational logic circuit that converts one of 2^n input lines into an n-bit binary output code. It performs the reverse operation of a decoder.
General Structure:
- It has a maximum of 2^n input lines and n output lines.
- At any given time, only one input line is active (HIGH).
Example: Decimal to BCD Encoder
A Decimal to BCD Encoder consists of:
- 10 input lines: D0 to D9 (one for each decimal digit 0--9)
- 4 output lines: W, X, Y, Z (representing BCD bits)
The output relations are derived from the truth table of the encoder. For example:
| Input Active | W (8) | X (4) | Y (2) | Z (1) |
|---|---|---|---|---|
| D1 | 0 | 0 | 0 | 1 |
| D2 | 0 | 0 | 1 | 0 |
| D5 | 0 | 1 | 0 | 1 |
| D9 | 1 | 0 | 0 | 1 |
The Boolean expressions for the outputs are:
W = D8 + D9
X = D4 + D5 + D6 + D7
Y = D2 + D3 + D6 + D7
Z = D1 + D3 + D5 + D7 + D9
Block Diagram:
D0 --|
D1 --|
D2 --|
... |---> [ENCODER] ---> W, X, Y, Z (4-bit BCD output)
... |
D9 --|
Use: Encoders are used in keyboards, priority circuits, and data transmission systems to compress input data into a compact binary form.
3. Parallel Adder
A Parallel Adder is a combinational circuit that adds two n-bit binary numbers simultaneously (in parallel), producing an n-bit sum and a carry output.
Construction:
- It is built using n Full Adders (FA) connected in cascade.
- All bits of both numbers are applied to the inputs at the same time.
- The carry output of each full adder is connected to the carry input of the next higher-order full adder.
Block Diagram (4-bit Parallel Adder):
A3 B3 A2 B2 A1 B1 A0 B0
| | | | | | | |
[FA3]<--[FA2]<--[FA1]<--[FA0]<-- C_in=0
| | | |
S3 S2 S1 S0
C_out
- Inputs: A3A2A1A0 and B3B2B1B0 (two 4-bit numbers)
- Outputs: S3S2S1S0 (4-bit sum) and C_out (final carry)
Characteristics:
| Feature | Detail |
|---|---|
| Speed | Faster than serial adder since all bits are processed simultaneously |
| Hardware | Requires more hardware (n full adders) |
| Carry propagation | Carry ripples from LSB to MSB (also called Ripple Carry Adder) |
Use: Parallel adders are fundamental building blocks in ALUs (Arithmetic Logic Units) of processors and are used in BCD adders and other arithmetic circuits.
2075 · 10 marks
Implement the following function F using:a. Decoderb. Multiplexerc. PLA[4+2+2+2]
Show solved answerHide answer
Implementation of Function F Using Decoder, Multiplexer, and PLA
Given
The problem statement says: "Implement the following function F using: a. Decoder, b. Multiplexer, c. PLA [4+2+2+2]"
The actual Boolean function F is NOT provided in the question text. No minterm list, no algebraic expression, no truth table, and no LaTeX array is included. The phrase "the following function F" refers to an expression that was not transcribed into this prompt.
Missing data: The definition of function F (its minterms/expression and the number of variables) is entirely missing. Without it, no specific circuit can be correctly designed.
Also note the mark split is [4+2+2+2] = 10, which totals four parts, but only three sub-parts (a, b, c) are listed. This suggests an additional part or a typo in the original paper.
Solution
Because the specific function is missing, what follows is the correct general procedure that applies to any $F$ once it is known. Assuming a particular function such as $F(A,B,C)=\sum m(1,2,4,7)$ would not be supported by the given data.
(a) Decoder Implementation [4 marks]
For an $n$-variable function, use an $n$-to-$2^n$ decoder.
- A decoder generates every minterm $m_i$ on a separate output line.
- For active-HIGH outputs: OR together the outputs corresponding to the minterms where $F=1$.
- For active-LOW outputs: use a NAND gate on those lines.
$$F = \sum m(\text{minterms of }F) = \sum_i D_i \quad \text{for } i \in {\text{minterms}}$$
General diagram:
n-to-2^n Decoder
+--------------+
inputs>| |--- D0
...>| |--- D1
| |--- ... --> OR selected Di --> F
| |--- D(2^n -1)
+--------------+
(b) Multiplexer Implementation [2 marks]
Two standard approaches:
-
Full MUX method: Use a $2^n$-to-1 MUX. Apply the $n$ variables to select lines. Tie each data input $I_i = 1$ if minterm $i \in F$, else $I_i = 0$.
-
Reduced MUX method (common in TU exams): Use a $2^{n-1}$-to-1 MUX with $(n-1)$ variables on select lines. Each data input becomes one of ${0, 1, x, x'}$ obtained from an implementation table pairing minterms.
(c) PLA Implementation [2 marks]
- Simplify $F$ (and if given, $F'$) using a K-map to obtain minimal product terms.
- Program the AND plane to generate each product term.
- Program the OR plane to sum the required product terms for the output.
- Present a PLA programming table:
| Product term | Input connections (AND plane) | Output (OR plane) |
|---|---|---|
| $P_1$ | ... | F |
| $P_2$ | ... | F |
Conclusion
The specific function F required to produce numeric truth tables, minterm selections, MUX input values and a PLA table is not present in the supplied question. Any specific numeric result, for example one based on $F(A,B,C)=\sum m(1,2,4,7)$, would rest on an assumed function rather than on the given data.
Read-only-Memory
2079 · 5 marks
Differentiate between ROM and PLA. Explain different types of ROM. [5]
Magnitude Comparator
2078 · 5 marks
Differentiate between PLA and PAL. Explain 4-bit magnitude comparator. [5]
Programmable Logic Array
2077 · 10 marks
Implement the following functions using PLA:
$w(A,B,C,D)=\sum(7,12,13)$
$x(A,B,C,D)=\sum(7,8,9,10,11,12,13,14,15)$
$y(A,B,C,D)=\sum(0,2,3,4,5,6,7,8,10,11,15)$
$z(A,B,C,D)=\sum(1,2,8,12,13)$
[10]
Programmable Array Logic
2075 · 4 marks
PAL Programming Table for 3-Input, 4-Output Combinational Circuit
Make Unit 5 stick
Practice CSC116 with flashcards & quizzes