DLD Lab 1
DLD Lab 1
______________________________________________________________________________________
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
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
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
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
Truth Table
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.