Professional Documents
Culture Documents
net/publication/343361502
CITATIONS READS
0 5,805
1 author:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Qasim Mohammed Hussein on 01 August 2020.
Adder
Object:
To construct and test combinational logic circuits
5.3 Theory
Input Output
A B Sum
0 0 0
0 1 1
1 0 1
1 1 0
No carry
The sum = A B + A B = A B
Input Output
X Y C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
= C (A B) + AB
Full binary adder can combined from two half adder
taking the OR of their carry with the sum of the second
being as the output. The circuit of full adder is shown
in Fig (5-3).
Fig (5-4)
Assist. Prof Dr. Qasim Mohammed Hussein Page 162
chapter 5: Combinational Logic Circuit
the input carry of the next full adder. Fig (5-5) show
the 4- bit binary parallel adder.
Subtractor
Object:
To learn how one can construct the subtractor circuit;
half or full subtractor.
5.4 Theory
The Subtractor is a combinational logic circuit that
performs the arithmetic subtraction operation of
number. There are two types of Subtractor: half
subtractor and full subtractor.
5.4.1 Half Subtractor
A half subtractor is a combinational circuit that
subtracts two bits and produces their difference. It has
two outputs. One output generates the difference and
will be designated by the symbol D. The second
designate B for borrowed. The truth table for the half
subtractor is shown in table (5-3).
The Boolean functions for the two outputs of the half
subtractor are:
D=XY+XY
B=XY
B = X.(Y
B = X (Y Z) + Y. Z
D = XYZ+ XYZ + XYZ + XYZ
D = X(YZ+YZ)+ X(YZ+YZ)
D = X (X⊕Y) + X(Y⊙Z)
= X (Y Z) + X(Y Z)
D=XYZ
The logic circuit of full subtractor is shown in fig (5-
7).
We note that the logic function for output D in the half
and full subtractors is exactly the same as output S in
the half and full adders respectively. While the
difference between the borrow B of the half and full
subtractors and the Carry of the half and full adders is
the complement of the first input variable X.
Discussion:
1. Can you modify the full adder circuit to perform the
function of full subtractor? How?
Code Conversion
Object
To learn how to build logic circuits that convert from a
system or coding method to another.
5.5 Theory
There are varieties of codes that use in digital systems.
A conversion between codes is sometimes necessary to
get the output of a system as input to other system.
A code converter is a circuit that makes two systems
compatible even thought each uses a different binary
code. The number of input variables and output
variables depend on representing of the systems that
convert one to other.
Assist. Prof Dr. Qasim Mohammed Hussein Page 171
chapter 5: Combinational Logic Circuit
4 1 0 0 0 1 0 1
5 1 0 1 0 1 0 0
6 1 1 0 0 0 1 1
7 1 1 1 0 0 1 0
Z= B W= C