Ali Adib Arnab�Senior Lecturer and Chairman, Department of Electrical and Electronic Engineering�University of Global Village�MSc in Telecommunication and Wireless Systems and Management, Queen Mary University of London
My Google Site Link: https://sites.google.com/view/ali-adib-arnab/home
Topic 4
Combinational Logic
Introduction
Combinational Circuits
?
?
?
Introduction
Introduction…
Combinational Circuits consists of –
– for each of them there is only one possible output combination.
Design Procedure
Design of a combinational circuit starts from a problem statement and ends in a logic circuit diagram.
The procedure involves:
Design Procedure…
combinations available for n input variables
Design Procedure…
Adder
Adder…
carry obtained from the addition of two bits is added to the next higher order pair of significant bits.
called a half adder.
Half Adder
Half Adder…
It also can be written as: S = (x+y)(x’+y’) = (x’y’+xy) C = (x’+y’)’
Half Adder…
Half Adder Implementation
Full Adder
Full Adder…
Full Adder…
In SOP form
Implementation of full adder
Full Adder…
Full Adder with two Half Adders and OR gate
Full Adder…
Binary Adder
half adder and (n – 1) full adders in cascade.
Binary Adder
HA
x
y
S
C
x y | C S |
0 0 | 0 0 |
0 1 | 0 1 |
1 0 | 0 1 |
1 1 | 1 0 |
x
+ y
───
C S
x
y
S
C
Subtractors
Half-Subtractor
Half-Subtractor…
D = x’y+xy’ B = x’y
Full-Subtractor
Full-Subtractor…
Full-Subtractor…
𝐷 = 𝑥′𝑦′𝑧 + 𝑥′𝑦𝑧′ + 𝑥𝑦′𝑧′ + 𝑥𝑦z
𝐵 = 𝑥′𝑦 + 𝑥′𝑧 + 𝑦𝑧
Full-Subtractor with Half-Subtractors
Code Conversion
Example – BCD to Excess-3
four input variables (A,B,C,D) and four output variables (w,x,y,z)
Example – BCD to Excess-3…
Example – BCD to Excess-3…
Analysis Procedure
Analysis Procedure
A B C | F1 | F2 |
0 0 0 | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
= 0
= 0
= 0
= 0
= 0
= 0
= 0
= 0
= 0
= 0
= 0
= 0
0
0
0
0
0
0
1
0
0
0 0
Analysis Procedure
= 0
= 0
= 1
= 0
= 0
= 1
= 0
= 0
= 0
= 1
= 0
= 1
0
1
0
0
0
0
1
1
1
A B C | F1 | F2 |
0 0 0 | 0 | 0 |
0 0 1 | | |
| | |
| | |
| | |
| | |
| | |
| | |
1 0
Analysis Procedure
= 0
= 1
= 0
= 0
= 1
= 0
= 0
= 1
= 0
= 0
= 1
= 0
0
1
0
0
0
0
1
1
1
A B C | F1 | F2 |
0 0 0 | 0 | 0 |
0 0 1 | 1 | 0 |
0 1 0 | | |
| | |
| | |
| | |
| | |
| | |
1 0
Analysis Procedure
= 0
= 1
= 1
= 0
= 1
= 1
= 0
= 1
= 0
= 1
= 1
= 1
0
1
0
0
1
1
0
0
0
A B C | F1 | F2 |
0 0 0 | 0 | 0 |
0 0 1 | 1 | 0 |
0 1 0 | 1 | 0 |
0 1 1 | | |
| | |
| | |
| | |
| | |
0 1
Analysis Procedure
= 1
= 0
= 0
= 1
= 0
= 0
= 1
= 0
= 1
= 0
= 0
= 0
0
1
0
0
0
0
1
1
1
A B C | F1 | F2 |
0 0 0 | 0 | 0 |
0 0 1 | 1 | 0 |
0 1 0 | 1 | 0 |
0 1 1 | 0 | 1 |
1 0 0 | | |
| | |
| | |
| | |
1 0
Analysis Procedure
= 1
= 0
= 1
= 1
= 0
= 1
= 1
= 0
= 1
= 1
= 0
= 1
0
1
0
1
0
1
0
0
0
A B C | F1 | F2 |
0 0 0 | 0 | 0 |
0 0 1 | 1 | 0 |
0 1 0 | 1 | 0 |
0 1 1 | 0 | 1 |
1 0 0 | 1 | 0 |
1 0 1 | | |
| | |
| | |
0 1
Analysis Procedure
= 1
= 1
= 0
= 1
= 1
= 0
= 1
= 1
= 1
= 0
= 1
= 0
0
1
1
0
0
1
0
0
0
A B C | F1 | F2 |
0 0 0 | 0 | 0 |
0 0 1 | 1 | 0 |
0 1 0 | 1 | 0 |
0 1 1 | 0 | 1 |
1 0 0 | 1 | 0 |
1 0 1 | 0 | 1 |
1 1 0 | | |
| | |
0 1
Analysis Procedure…
Analysis Procedure…
Analysis Procedure…
Analysis the following combinational circuit:
Analysis Procedure…
and F2
and T2.
Analysis Procedure…
Analysis Procedure…
Analysis Procedure…
To obtain the truth table directly from the logic diagram without going through the derivations:
Analysis Procedure…
Truth table derivation directly from the logic diagram.
Combinational Circuit – NAND Implementation
NAND gate
NAND Implementation…
Block Diagram Method
NAND Implementation…
In general, the number of NAND gates required to implement a function is equal to the number of AND-OR gates, except for an occasional inverter. It will be applicable when both normal and complement inputs are available.
NAND Implementation: Analysis Procedure
with a Boolean expression or truth table
NAND Imp.: Analysis Procedure …
Example:
NAND Imp.: Derivation of Truth Table
Same as before.
NAND Imp.: Derivation of Truth Table …
Now we can use K-map to get the simplified expression of the given NAND logic circuit.
NAND Imp.: Block Diagram Transformation
NAND Imp.: Block Diagram Transformation…
NAND Imp.: Block Diagram Transformation…
NOR Implementation
NOR gate
Boolean Function Imp. With NOR Gates
Block Diagram Method:
substituted for each AND, OR and NOT gate
Block Diagram Method: NOR Imp.
In general, the number of NOR gates required to implement a function is equal to the number of AND-OR gates, except for an occasional inverter. It will be applicable when both normal and complement inputs are available.
NOR Implementation: Analysis Procedure
Decoders
Binary�Decoder
x1
x0
Only one lamp will turn on
0
0
1
0
0
0
Decoders
I1 I0 | Y3 Y2 Y1 Y0 |
0 0 | 0 0 0 1 |
0 1 | 0 0 1 0 |
1 0 | 0 1 0 0 |
1 1 | 1 0 0 0 |
Binary�Decoder
I1
I0
y3
y2
y1
y0
Encoders
x3 x2 x1 | y1 y0 |
0 0 0 | 0 0 |
0 0 1 | 0 1 |
0 1 0 | 1 0 |
1 0 0 | 1 1 |
Binary�Encoder
y1
y0
x1
x2
x3
Only one switch should be activated at a time
Multiplexers
MUX
Y
I0
I1
I2
I3
S1 S0
S1 S0 | Y |
0 0 | I0 |
0 1 | I1 |
1 0 | I2 |
1 1 | I3 |
Multiplexers
MUX
Y
I0
I1
S
MUX
Y
I0
I1
I2
I3
S1 S0
Published Papers��[1] Ali Adib Arnab, Sheikh Sadia Afrin, F.M. Fahad, Hasan U. Zaman, "A cost effective way to build a web controlled search and CO detector rover," DOI:10.1109/CCWC.2017.7868451 (Received the track Best Paper Award), Proceedings of the 7th IEEE Annual Computing and Communication Workshop and Conference (IEEE CCWC 2017), Las Vegas, USA, 9-11 January, 2017, Publisher: IEEE�[2] Ali Adib Arnab, Sheikh Md. Razibul Hasan Raj, John Schormans, Sultana Jahan Mukta, Nafi Ahmad "Analysis of the Cost of Varying Levels of User Perceived Quality for Internet Access," https://doi.org/10.1007/978-3-030-68154-8_36 , Proceedings of the 3rd International Conference on Intelligent Computing & Optimization – ICO 2020, Hua Hin, Thailand, 22-23 April, 2021, Publisher: Springer