MSI Combinational Logic (II) : Digital Logic Design Lab
MSI Combinational Logic (II) : Digital Logic Design Lab
1
GRADING GUIDELINE FOR LAB REPORT
Number Content Score Comment
Format (max 9%)
- Font type Yes No
1
- Font size Yes No
- Header/Footer Yes No
- Spelling Yes No
Total Score
Signature:
Date:
2
Table of Contents
List of Figures ........................................................................................….….............................. 3
List of Tables .................................................................................................……....................... 4
Discussion of Fundamentals.......................................................................................................... 5
Objectives......................................................................................................................................10
Experimental Procedure.............................................................................................…….........10
Conclusion ...................................................................................................................................25
List of Figures
Figure 1-....................................................................................................... 5
Figure 2 – .................................................................................................... 6
Figure 3 – .................................................................................................... 6
Figure 4 – .................................................................................................... 7
Figure 5 – .................................................................................................... 7
Figure 6 – .................................................................................................... 8
Figure 7 –..................................................................................................... 8
Figure 8 –.................................................................................................... 8
Figure 9 –..................................................................................................... 9
Figure 10 – .................................................................................................. 9
Figure 11–................................................................................................... 10
Figure 12 –.................................................................................................. 11
Figure 13 –.................................................................................................. 12
Figure 14 –.................................................................................................. 13
Figure 15 – ................................................................................................. 14
Figure 16 – ................................................................................................. 15
Figure 17 – ................................................................................................. 16
Figure 18 –.................................................................................................. 17
Figure 19 – ................................................................................................. 18
Figure 20 – ................................................................................................. 18
Figure 21 – ................................................................................................. 19
Figure 22 – ................................................................................................. 20
Figure 23 – ................................................................................................. 21
Figure 24 – ................................................................................................. 22
Figure 25 – ................................................................................................. 23
List of Tables
3
Table 1 –............................................................................................................ 10
Table 2 –............................................................................................................ 12
Table 3 –............................................................................................................ 13
Table 4 –............................................................................................................ 14
Table 5 – ........................................................................................................... 18
Table 6 – ........................................................................................................... 19
Table 7 – ............................................................................................................ 20
Table 8 –............................................................................................................. 22
Discussion of Fundamentals
1) Boolean Expression
In computer science, a Boolean expression is an expression used in programming
languages that produces a Boolean value when evaluated. A Boolean value is
either true or false. A Boolean expression may be composed of a combination of
the Boolean constants true or false, Boolean-typed variables, Boolean-valued
operators, and Boolean-valued functions.
4
inputs to the AND gate are HIGH, LOW output results. The function can be extended
to any number of inputs.
Figure 1
B. OR Gate
The OR gate is a digital logic gate that implements logical disjunction (∨) from
mathematical logic – it behaves according to the truth table above. A HIGH output
(1) results if one or both the inputs to the gate are HIGH (1). If neither input is
high, a LOW output (0) results. In another sense, the function of OR effectively
5
finds the maximum between two binary digits, just as the complementary AND
function finds the minimum.
Figure 2
C. NOT Gate
The NOT gate performs logical negation on its input. If the input is true, then the
output will be false. Similarly, a false input results in a true output.
Figure 3
D. NAND Gate
In digital electronics, a NAND gate (NOT-AND) is a logic gate which produces an
output which is false only if all its inputs are true, thus its output is complement to
that of an AND gate. A low output results only if all the inputs to the gate are high,
6
if any input is low, the result will be a high output. A NAND gate is made using
transistors and junction diodes.
Figure 4
E.NOR Gate
The NOR gate is a digital logic gate that gives the opposite result to that of the OR
gate. If any input of the NOR gate is high, the result of the NOR gate will be the
low output.
Figure 5
F. XOR Gate
XOR gate is a digital logic gate that gives a high result when the number of true
inputs is odd. An XOR gate implements an exclusive OR gate which is a high
7
output if one and only one of the inputs is true. If both inputs are high or low, then
the result will be a low output. XOR gate represent the inequality function.
Figure 6
Figure 7
b) Half Adder
The addition of 2 bits is done using a combination circuit called Half adder. The
input variables are augend and addend bits and output variables are sum & carry
bits. A and B are the two input bits.
Figure 8
8
4) IC Logic Gate
a) 74HC148
74HC148 encodes eight data lines to three-line (4-2-1) binary (octal). Cascading
circuitry (enableinput EI and enable output EO) is provided to allow octal
expansion without the need for external circuitry. The data inputs and outputs are
active at the low logic level.
Figure 9
b) 74HC138
The device accepts a three-bit binary weighted address on input pins A0, A1 and
A2 and when enabled will produce one active low output with the remain seven
being high.
Figure 10
c) 74HC139
9
74HC139 decodes two binary weighted address inputs (nA0, nA1) to four mutually
exclusive outputs (nY0 to nY3). Each decoder features an enable input (nE). When
nE is HIGH all outputs are forced HIGH. The enable input can be used as the data
input for a 1-to-4 demultiplexer application.
Figure 11
Objectives
Table 1
10
The simplified expressions:
S=A’B+AB’=A B
C=AB
Implement the circuit and paste the result
Figure 12
Comment
XOR Gate is the SUM output and AND Gate is the CARRY
Figure 13
Comment
The first two inputs are A and B, the third input is an input carry as C-IN. This
generate SUM and Cout is true only when either two of three inputs are HIGH,
then the Cout will be HIGH
12
Figure 14
The outputs are connected to LED displays to determine the logic levels.
Choose the input data D0 - D7 by switches in the order from SW0 to SW7.
Control EI by using switch.
Table 3
Implement the circuit and paste the result
13
Figure 15
b) Priority encoder
Let’s EI equal to 0, fill the outputs A2, A1, A0 in the following cases
A2 A1 A0
Case 1: 1 0 0
I3 = I2 = I1 = 0
I7 = I6 = I5 = I4 = I0 = 1.
Case 2: 0 0 0
I7 = I2 = 0.
I6 = I5 = I4 = I3 = I1= I0 =1
Case 3: 0 0 0
All 8 inputs are equal to 0.
Table 4
Case 1:
14
Implement the circuit and paste the result
Figure 16
Comment
E0 is high when E1 is low and not all of the input is high
When only the A2 is high, just D0, D4, D5, D6, D7 are currently high because the
priority encoder starting to check from the D7. And if the D7 high, the encoder will
move to another next inputs to check and it will stop when input is low. Only A2
and E0 are high. D7 is the priority.
Case 2:
Comment
The comment is still the same with case 1 and D7 is also still the priority. E0 is the
only output show high.
Case 3:
16
Figure 18
Comment
The comment is still the same with case 1 and D7 is also still the priority. E0 is the
only output show high.
17
Figure 19
Table 5
Implement the circuit and paste the result
18
Figure 20
Briefly describe the operation of the IC
74HCT139 decoded two binary weighted address inputs (A00, A01) to four
exclusive outputs (Y00 to Y03). Each decoder features an enable input (E0).
When E0 is HIGH all outputs are forced HIGH.
Figure 21
- 8 outputs are connected by using LEDs.
- The inputs are controlled by switches.
- Observe the results and fulfill the truth table
INPUT OUTPUT
E3 E2 E1 C B A Y0 Y1 Y2 Y 3 Y4 Y 5 Y 6 Y7
1 0 0 0 0 0 0 1 1 1 1 1 1 1
1 0 0 0 0 1 1 0 1 1 1 1 1 1
1 0 0 0 1 0 1 1 0 1 1 1 1 1
1 0 0 0 1 1 1 1 1 0 1 1 1 1
1 0 0 1 0 0 1 1 1 1 0 1 1 1
1 0 0 1 0 1 1 1 1 1 1 0 1 1
1 0 0 1 1 0 1 1 1 1 1 1 0 1
1 0 0 1 1 1 1 1 1 1 1 1 1 0
0 X X X X X 1 1 1 1 1 1 1 1
X 1 X X X X 1 1 1 1 1 1 1 1
X X 1 X X X 1 1 1 1 1 1 1 1
Table 6
Implement the circuit and paste the result
19
Figure 22
Figure 23
21
Figure 24
Comment
2 Figure are having the same result although we change x, y, z
b. 𝒇 = 𝒙′𝒚𝒛 + 𝒙 + 𝒚′𝒛′
Establish the truth table
x y z f
0 0 0 1
0 0 1 0/1
0 1 0 0
0 1 1 1
1 0 0 1/0
1 0 1 1
1 1 0 1
1 1 1 1
Table 8
F(x,y,z)=E(0,3,4,5,6,7)
Implement the circuit and paste the result
22
Figure 25
Comment
Still remain the same
Conclusion
After this experiment, we can understand the operation of logic circuits and ICs
such as: full adder, half adder, decoder, encoder.
23