Professional Documents
Culture Documents
INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING
1
Lab 2 Reviews
In the second Lab, you were studying:
The operation of combinational logic circuits with their respective truth table
and circuit designs.
The operation of those combinational ICs such as: 4-bit comparator, 8-bit
comparator, parity generator and checker.
The practice of building the above circuits using SimullDE program.
Practice building up the above circuit using Laboratory equipments.
Reminding
Submit your Lab report and simulation files for Lab 2 on Blackboard.
Late submission will be receiving penalty of 20% per day of late submission.
VIETNAM NATIONAL UNIVERSITY – HO CHI MINH CITY
INTERNATIONAL UNIVERSITY
SCHOOL OF ELECTRICAL ENGINEERING
LAB 3
MSI COMBINATIONAL LOGIC (cont.)
LABORATORY
a. Half Adder:
The Half Adder is a type of
combinational logic circuit that adds
two of the 1-bit binary digits. It
generates carry and sum of both the
inputs.
b. Full Adder:
The Full Adder is also a type of
combinational logic that adds three of the
1-bit binary digits for performing an
addition operation. It generates a sum of
all three inputs along with a carry value.
Adding the Previous Carry The Half Adder does not add the carry The Full Adder, along with its current
obtained from the previous addition inputs A and B, also adds the previous
to the next one. carry.
Hardware Architecture A Half Adder consists of only one AND A Full Adder consists of one OR gate
gate and EX-OR gate. and two EX-OR and AND gates.
Total Inputs There are two inputs in a Half Adder- There are a total of three inputs in a
A and B. Full Adder- A. B. C-in.
Usage The Half Adder is good for digital The Full Adder comes into play in
measuring devices, computers, various digital processors, the addition
calculators, and many more. of multiple bits, and many more.
6
II Discussion of Fundamentals
2. 8-to-3 Priority Encoder (Interrupt sorter) – 74HC148
The Priority Encoder solves the problems of having multiple inputs by allocating a priority
level to each input. The priority encoders output corresponds to the currently active input
which has the highest priority, all other inputs with a lower priority will be ignored.
Input Output
EI D0 D1 D2 D3 D4 D5 D6 D7 GS A2 A1 A0 E0
1 X X X X X X X X
0 1 1 1 1 1 1 1 1
0 X X X X X X X 0
0 X X X X X X 0 1
0 X X X X X 0 1 1
0 X X X X 0 1 1 1
0 X X X 0 1 1 1 1
0 X X 0 1 1 1 1 1 Figure 3: Truth table of 8-to-3
0 X 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1 1 bit Encoder 74LS148 7
II Discussion of Fundamentals
2. 8-to-3 Priority Encoder (Interrupt sorter) – 74HC148
10
II Discussion of Fundamentals
3. 3-to-8 Decoder/Demultiplexer – 74HC138
INPUT OUTPUT
E3 E2 E1 C B A Y0 Y1 Y2 Y 3 Y4 Y5 Y6 Y7
1 0 0 0 0 0
1 0 0 0 0 1
1 0 0 0 1 0
1 0 0 0 1 1
1 0 0 1 0 0
1 0 0 1 0 1
1 0 0 1 1 0
1 0 0 1 1 1
0 X X X X X
X 1 X X X X
X X 1 X X X
13