Digital Logic Design (Lab1)
Experiment 1: Study of basic Gates
______________________________________________________________________________________
Name: Rizwan Yaqoob Registration No: 2022-CS-176
Date: …………………………… Grade and Signature: ………………………
CLO1 Recognize various logic gates
Psychomotor/Affective Level1 Level2 Level3 Level4
Report Marks (2) Total marks
(10)
______________________________________________________________________________________
Objectives: To get understanding of basic logic gates and to analyze their inputs and outputs.
THEORY: Logic gates are the digital circuits with one output and one or more inputs. They are the basic
building blocks of any logic ckt. Different logic gates are:
AND, OR, NOT, NAND, NOR, EXOR.
AND: Logic eqn. Y = A.B. The output of AND gate is true when the inputs A and B are true.
OR: Logic eqn. Y = A+B. The output of OR gate is true when one of the inputs A and B or both
the inputs are true.
NOT: Logic eqn. Y = A’. The output of NOT gate is complement of the input.
NAND: Logic eqn. Y = A.B. The output of NAND gate is true when one of the inputs or both the
inputs are low level.
NOR: Logical eqn. Y = A+B. The output of NOR gate is true when both the inputs are low.
EX-OR: Logic eqn. Y=A`. B + A.B`. The output of EX-OR gate is true when both the inputs are not
similar.
Equipment required:
Power Supply, Breadboard, Connecting wires, ICs 7400, 7402, 7404, 7408, 7432, 7486, LED.
1. Gate No 1
IC PINOUTS
Instructor: Dr. Yasir Saleem DLD CSE Department, UET, Lahore
TRUTH-TABLE
Gate = NAND Formula = (A.B)’ Comments
Input A Input B Output Y
0 0 1 This is NAND gate gives
0 1 1 false when both switches
are 1 or true.
1 0 1
1 1 0
a) Connect the ICs according to its pin diagram.
b) Fill the table and write any property and observation in comment column.
2. Gate No 2
IC PINOUTS
TRUTH-TABLE
Gate = NOR Formula = (A+B)’ Comments
Input A Input B Output Y
0 0 1 This is NOR gate which
0 1 0 gives true result when both
inputs are false or 0.
1 0 0
1 1 0
a) Connect the ICs according to its pin diagram.
b) Fill the table and write any property and observation in comment column.
3. Gate No 3
IC PINOUTS
Instructor: Dr. Yasir Saleem DLD CSE Department, UET, Lahore
TRUTH-TABLE
Gate = NOT Formula = A̅ Comments
Input A Input B Output Y
0 1 This is NOT gate which
1 0 reverse the input.
a) Connect the ICs according to its pin diagram.
b) Fill the table and write any property and observation in comment column.
4. Gate No 4
IC PINOUTS
TRUTH-TABLE
Gate = AND Formula = A.B Comments
Input A Input B Output Y
0 0 0 This is AND gate gives
0 1 0 true or 1 results when both
inputs are true or 1.
1 0 0
1 1 1
a) Connect the ICs according to its pin diagram.
Instructor: Dr. Yasir Saleem DLD CSE Department, UET, Lahore
b) Fill the table and write any property and observation in comment column.
5. Gate No 5
IC PINOUTS
TRUTH-TABLE
Gate = OR Formula = A+B Comments
Input A Input B Output Y
0 0 0 This is OR gate which
0 1 1 gives true results when one
of given inputs is true.
1 0 1
1 1 1
a) Connect the ICs according to its pin diagram.
b) Fill the table and write any property and observation in comment column.
6. Gate No 6
IC PINOUTS
TRUTH-TABLE
Gate = EXOR Formula = (A ⊕ B) Comments
Input A Input B Output Y
0 0 0 This is EXOR gate which
0 1 1 gives true results when one
of the given inputs is false.
1 0 1
1 1 0
a) Connect the ICs according to its pin diagram.
b) Fill the table and write any property and observation in comment column.
7. Truth Table is given below. Identify the gate, its symbol and its formula? Draw the Pin diagram
of associated IC with this gate?
Truth Table
Instructor: Dr. Yasir Saleem DLD CSE Department, UET, Lahore
Gate = EXNOR Formula = A`. B + A.B Comments
Input A Input B Output Y
0 0 1 This is EXNOR gate which
0 1 0 gives true results when all
inputs are same.
1 0 0
1 1 1
8. Conclusion: Write what you learnt in your own words.
Logic gates are fundamental building blocks of digital electronics and are used to perform
logical operations on binary inputs. They are the foundation of digital circuit design and are
widely used in electronic systems, ranging from simple digital devices to complex computer
processors.
Instructor: Dr. Yasir Saleem DLD CSE Department, UET, Lahore