Design and Implement A Four Bit Adder Using Logic Gate ICs
Design and Implement A Four Bit Adder Using Logic Gate ICs
LABORATORY TASK:
Design and Implement a four bit adder using logic gate ICs.
Introduction
The Full Adder is capable of adding only two single-digit binary number along with a
carry input. But in practice, you need to add binary numbers which are much longer
than just one bit. To add two n-bit binary numbers you need to use the n-bit parallel
adder. It uses several full adders in cascade. The carry output of the previous full adder
is connected to carry input of the next full adder.
Consider two 4-bit binary numbers A and B as inputs to the Digital Circuit for the operation with
digits
A0 A1 A2 A3 for A
B0 B1 B2 B3 for B
Ahsan khan electronic
Roll no 001 dld assignment
These full adders perform the addition of two 4-bit binary numbers. The sum (∑) outputs are
provided for each bit and the resultant carry (C4) is obtained from the fourth bit.
These adders feature full internal look ahead across all four bits.
TRUTHTABLE
A B Ci S Cout
n
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
1 1 1 1 1
SIMULATION
Ahsan khan electronic
Roll no 001 dld assignment
INTRODUCTION
It has three input terminals in which two terminals corresponds to the two bits
to be subtracted (minuend A and subtrahend B), and a borrow bit Bi
corresponds to the borrow operation. There are two outputs, one corresponds
to the difference D output and other borrow output Bo.
To perform the subtraction of binary numbers with more than one bit is
performed through the parallel subtractors. This 4 bit parallel subtractor can
be designed in several ways, including combination of half and full
subtractors, all full subtractors, all full adders with subtrahend complement
input, etc.
TRUTHTABLE
Ahsan khan electronic
Roll no 001 dld assignment
A B Bin D Bout
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
SIMULATION
Ahsan khan electronic
Roll no 001 dld assignment
LABORATORY TASK:
• Design a parity generator by using a 74151 multiplexer. Fill the output column of the
following Table for a 5-bit code in which four of the bits (A, B, C, D) represents the
Ahsan khan electronic
Roll no 001 dld assignment
information to be sent and fifth bit (x), represents the parity bit. The required parity is an
odd parity. The inputs A, B, C and D correspond to the select inputs of 74151. Complete
CONNECT
INPUT OUTPU DATA
T TO
A B C D X
0 0 0 0 1
0 0 0 1 0 A’
0 0 1 0 0
0 0 1 1 1 A
0 1 0 0 0
0 1 0 1 1 A
0 1 1 0 1
0 1 1 1 0 A’
1 0 0 0 0
1 0 0 1 1 A
1 0 1 0 1
1 0 1 1 0 A’
1 1 0 0 1
1 1 0 1 0 A’
1 1 1 0 0
1 1 1 1 1 A
• Simulate the circuit using proteus, use 74151 multiplexer and Binary switches for inputs.
Connect an LED to the multiplexer output so that it represents the parity bit which lights
any time when the four bits input have even parity. Simulate the circuit and test each input
SIMULATION
Vote counter
A committee is composed of a chairman (C), a senior member (S), and a member (M).
• Each of these persons has a switch to close (“l”) when voting yes and to open (“0”) when
voting no. It is necessary to design a circuit that displays the total number of votes for
each issue. Use a seven-segment display and a decoder to display the required number. If
all members vote no for an issue the display should be blank. (Recall from Lab#5, that a
• If all members vote yes for an issue, the display should be 0. Otherwise the display shows
a decimal number equal to the number of 'yes' votes. Use two 74153 units, which include
four multiplexers to design the combinational circuit that converts the inputs from the
members’ switch to the BCD digit for the 7446. In Proteus use +5V for Logic 1 and
ground for Logic 0 and use switches for C, S, and M and verify your design.
simulation
Ahsan khan electronic
Roll no 001 dld assignment