Combinational Logic Circuits
Combinational Logic Circuits
Combinational Logic Circuits
LOGIC CIRCUITS
Prepared By:
Nuren Zabin Shuchi
Lecturer,
Department of Electrical and Electronic Engineering
Shahjalal University of Science and Technology
■ INTRODUCTION
Outline ■ COMBINATIONAL LOGIC CIRCUITS
■ DESIGN PROCEDURE
■ ADDERS
i. Design of Half-adders
ii. Design of Full-adders
■ SUBTRACTORS
i. Design of Half-Subtractors
ii. Design of Full-Subtractors
▪ PRACTICE PROBLEMS
INTRODUCTION
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Fig-2: Truth
Tablein Figure-2, it can be seen that the outputs
From the truth table
S and C functions are similar to Exclusive-OR and AND
functions respectively. So that the Boolean expressions are: Fig-3: Logic diagram of Half-Adder
S = A′B+AB′ and
C = AB
Design of Full-adders
Let the input variables as A, B and previous carry as
X, and outputs sum as S and carry as C.
Input variables Output variables
X A B S C
0 0 0 0 0
0 0 1 1 0
Fig-5: Map for function S.
0 1 0 1 0
0 1 1 0 1
S = X′A′B + X′AB′ + XA′B′ + XAB
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1 1
1 1 1 1 1
Fig-4: Truth table
1 1 1
To derive the simplified Boolean expression from the Fig-6: Map for function C.
truth table, the K-map method is adopted
C = AB + BX + AX.
Design of Full-adders (cont.)
The logic diagram for the functions is shown below:
Fig-7: Logic Diagram for function S. Fig-8: Logic Diagram for function C.
Design of Full-adders (cont.)
Other configurations can also be developed where number and type of gates are reduced.
For this, the Boolean expressions of S and C are modified as follows:
S = X′A′B + X′AB′ + XA′B′ + XAB
= X′ (A′B + AB′) + X (A′B′ + AB)
= X′ (A ⊕ B) + X (A ⊕ B)′
=X⊕A⊕B
And
C = AB + BX + AX
= AB + X (A + B)
= AB + X (AB + AB′ + AB + A′B)
= AB + X (AB + AB′ + A’B)
= AB + XAB + X (AB′ + A’B)
= AB + X (A ⊕ B)
Fig- 9: Logic diagram for the modified expression
SUBTRACTORS
Subtraction is another basic arithmetic operation.
Similar to the addition function, subtraction of two binary digits consists of four
possible elementary operations, which are:
▪ 0–0 = 0
▪ 0–1 = 1 (with borrow of 1)
▪ 1–0 = 1
▪ 1–1 = 0
The first, third, and fourth operations produce a result of one bit,
but the second operation produces a difference bit as well as a borrow bit.
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Fig-10: Truth
Table
By considering the minterms of the truth table in
Figure 10, the Boolean expressions of the outputs D
Fig-11: Logic diagram of Half-Subtractor
and B functions can be written as:
And
A1A0
Х B1B0
A1B0 A0B0
+
A1B1 A0B1
Z3 Z2 Z1 Z0
3. Design a circuit that has a 3-bit binary input and a single output (Z) specified as
follows:
Z = 0, when the input is less than 510
Z = 1, otherwise