Digital System Lab: Submitted By: Submitted To
Digital System Lab: Submitted By: Submitted To
(Lab Manual)
Submitted By:
Muaz Hamid (2018-EE-261)
Submitted To:
Sir Umair
EXPERIMENT # 01:
INTRODUCTION TO BASIC GATES & IC’S
OBJECTIVE:
To verify truth tables of logic gates i.e. AND, OR, NOT gates. Also NAND,
NOR, XOR and XNOR gates.
APARATUS:
Bread board
Connecting wires
IC’s
Resistor 1KΩ
LED’s
Switches
Power supply
Theory:
Logic gates are the digital circuits with one output and one or more inputs. They are
the basic building blocks of any logic circuit. Different logic gates are given below,
1. AND GATE:
Logic Equation of AND gate is given as:
X=A.B
The output of AND gate is logic 1 when the both inputs A and B are at 1.
SYMBOL:
Procedure to verify the truth table of ‘AND’ Gate:
Fix the IC (7408) on the bread board across the middle separation line.
Connect the +5V power supply with one of the upper horizontally shorted row of
Bread board and ground to the other row.
Connect the Vcc (Pin 14) and GRND (Pin 7) of IC with the +5V supply and ground
from bread board respectively.
Select one of the AND gates from the IC and connect the circuit.
Give the two inputs at the input pins by using logic switches.
Connect an LED at the output Pin of the AND gate to observe the output.
Verify now the AND gate’s truth table by applying all possible combinations of
inputs A and B.
Repeat the same procedure of all gates.
OBSERVATIONS:
Input Output
A B X=A.B
0 0 0
0 1 0
1 0 0
1 1 1
2. OR GATE:
Logic Equation of OR gate is given as:
X=A+B
SYMBOL:
=Q
OBSERVATIONS:
Input Output
A B X=A+B
0 0 0
0 1 1
1 0 1
1 1 1
3. NOT GATE:
X=Ā
SYMBOL:
OBSERVATIONS:
Input Output
A Ā
0 1
1 0
4. NAND GATE:
Logic Equation of OR gate is given as:
X=A.B
SYMBOL:
OBSERVATIONS:
Input Output
A B X=A.B
0 0 1
0 1 1
1 0 1
1 1 0
5. NOR GATE:
Logic Equation of OR gate is given as:
X=A+B
SYMBOL:
OBSERVATIONS:
Input Output
A B X=A+B
0 0 1
0 1 0
1 0 0
1 1 0
6. XOR GATE:
Logic Equation of XOR gate is given as:
X=A.B+A.B
SYMBOLS:
OBSERVATIONS:
INPUT
OUTPUT
A B
0 0 0
0 1 1
1 0 1
1 1 0
7. XNOR GATE:
Logic Equation of XNOR gate is given as:
X= (A+B).(A+B)
SYMBOLS:
OBSERVATIONS:
INPUT
OUTPUT
A B
0 0 1
0 1 0
1 0 0
1 1 1