Professional Documents
Culture Documents
EXPERIMENT #
LOGIC GATES
Objective:
Follow the concepts of basic logic gates and verify their truth tables.
Hardware Required:
Proto board, Logic Probe, Connecting Wires, IC’s (7404, 7408, 7432, 7400, 7402, 7486).
Theory:
Digital Logic Design may be practically implemented by using electronic gates. The
following points are important to understand. Electronic gates require a power supply. Gate
INPUTS are driven by voltages having two nominal values, e.g. 0V and 5V representing logic
0 and logic 1 respectively. The OUTPUT of a gate provides two nominal values of voltage
only, e.g. 0V and 5V representing logic 0 and logic 1 respectively. In general, there is only
one output to a logic gate except in some special cases.
• IC 7404 is a single input NOT gate. A NOT gate will produce the complements of any
input applied to it. If the input is 1 then output will be zero and vice versa.
• IC 7408 is a 2-input AND gate IC. Any AND gate can have 2 or more inputs. The basic
property of AND gate is that it will produce a high signal i.e. binary ‘1’ and electronically
5V only if all of its input are high i.e. binary ‘1’ or 5V. If any one of its input is ‘0’ the
output will become ‘0’ i.e. 0V.
• IC 7432 is a 2-input OR gate IC. Any OR gate will produce ‘0’ only when all of its inputs
are ‘0’. Any one high input will result in a high output.
• IC 7400 is a 2-input NAND gate IC. Any NAND gate can have 2 or more inputs. The
basic property of NAND gate is that it will produce a low signal i.e. binary ‘0’ and
1|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
electronically 0V only if all of its input are high i.e. binary ‘1’ or 5V. If any one of its
input is ‘0’ the output will become ‘1’ i.e. 5V.
• IC 7402 is a 2-input NOR gate IC. Any NOR gate will produce ‘1’ only when all of its
inputs are ‘0’. Any one high input will result in a low output.
• IC 7486 is a 2-input XOR gate IC. Any XOR gate will produce ‘0’ only when both of its
input is same either ’0’ or ’1’.
2|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
Figure 1.1 and fig 1.2 shows the logic symbols of AND, OR, NAND, NOR, NOT, XOR,
XNOR gates and IC layouts of all basic gates. The pin configuration is also given in the
layouts. Construct the circuit with the help of these layouts. Pin no. 7 and Pin no 14 of each
IC is Ground and Vcc respectively. Apply different inputs on the given inputs and observe
the outputs then complete the truth tables from 1-1 to 1-9 of logic gates.
a) 1-input NOT gate and verify its truth table.
0 1
1 0
0 0 0
0 1 0
1 0 0
1 1 1
0 0 0
0 1 1
1 0 1
1 1 1
3|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
0 1 1
1 0 1
1 1 0
0 0 1
0 1 0
1 0 0
1 1 0
4|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
A B Output
0 0 0
0 1 1
1 0 1
1 1 0
0 0 1
0 1 0
1 0 0
1 1 1
0 0 0
0 1 1
1 0 1
1 1 0
5|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
A B Output
0 0 1
0 1 0
1 0 0
1 1 1
6|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
EXPERIMENT #
BOOLEAN ALGEBRA AND DEMORGAN’S LAW
Objective:
Follow the De Morgan’s theorem, Boolean algebra law, rule and verify them by using logic
gates.
Hardware Required:
Proto board, Logic Probe, Connecting Wires, IC’s (7400, 7402, 7408, 7432, 7404).
Theory:
Boolean algebra is a deductive mathematical system closed over the values zero and One
(false and true). A binary operator defined over this set of values accepts a pair of Boolean
inputs and produces a single Boolean value.
i. Commutative law:
Figure 2.1: Commutative law logic diagram for addition and multiplication.
7|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
Figure 2.2: Associative law logic diagram for addition and multiplication.
8|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
b) Demorgan’s Theorem
Construct the two circuits corresponding to the functions given below. Show that for all
combinations of A and B, the two circuits give identical results. Connect these circuits and
verify their operations using truth table.
Experiments:
Connect the circuits and verify their operations using truth tables.
Commutative Law
Circuit Diagram:
A+B A.B
9|Pa ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
B+A B.A
0 0 0 0 0 0
0 1 1 1 0 0
1 0 1 1 0 0
1 1 1 1 1 1
Associative Law
Circuit Diagram:
A+(B+C) (A+B)+C
10 | P a ge
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT SSUET/CS-129L
A.(B.C) (A.B).C
11
NAME: MUHAMMAD IZHAAN
HUMAYUN
AI & CT
SSUET/CS-
129L
|Pa ge
0 0 1 1 1 0 0
0 1 0 0 0 0 0
1 0 1 1 1 0 0
1 1 0 1 1 1 1
Distributive Law
Circuit Diagram:
A(B+C) A.B+A.C
0 0 0 0 0
0 0 1 0 0
0 1 0 0 0
0 1 1 0 0
1 0 0 0 0
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1
Circuit Diagram:
Page ComputerScienceDepartment
A’.B’ (A.B)’
A’+B’ (A+B)’
0 0 1 1 1 1
0 1 0 0 1 1
1 0 0 0 1 1
1 1 0 0 0 0
Page ComputerScienceDepartment