Professional Documents
Culture Documents
Digital Logic Technology: Engr. Muhammad Shan Saleem
Digital Logic Technology: Engr. Muhammad Shan Saleem
BMT-264
Lab Instructor:
Name: ____________________
EXPERIMENT No. 02
PRE-LAB TASK
Objectives
Introduction
There are two theorems that were proposed by De Morgan. These theorems are used commonly
in Boolean algebra. The first theorem states:
Two individually complemented variables when ORed is equivalent to the whole complement of
AND of two variables.
𝐴̅ + 𝐵̅ = 𝐴.
̅̅̅̅̅
𝐵
Two individually complemented variables when ANDed is equivalent to the whole complement
of OR of two variables.
𝐴̅ . 𝐵̅ = 𝐴
̅̅̅̅̅̅̅̅
+𝐵
Theory
A universal gate is one which implements any Boolean expression without using any other gate
type. The gates, NAND and NOR, are universal because these are inexpensive and easy to
fabricate and they act as the basic building block for the fabrication of all IC digital logic
families.
1|Page
LAB-02
To prove that any Boolean function can be executed using only NAND gates, we will
demonstrate that the AND, OR, and NOT operations being performed using only NAND gates.
There are two ways in which a NAND gate can be used as NOT gate (also called inverter). The
figure below shows two ways in which a NAND gate can be used as an inverter (NOT gate).
1. All input pins of NAND gate connected to the input signal A gives an output A΄.
2. One input pin of NAND gate is connected to the input signal A while all other input pins
are connected to logic 1. The output will be A΄.
A NAND gate followed by a NAND inverter is equivalent to AND gate as shown in the figure
below:
2|Page
LAB-02
Thus, the NAND gate is a universal gate since it can implement the AND, OR and NOT
functions.
We will demonstrate basic NOT, AND and OR gate operations using NOR gates in order to
prove that any Boolean function can be implemented using NOR gates only.
1. All input pins of NOR gate connected to the input signal A gives an output A΄.
2. One input pin of NOR gate is connected to the input signal A while all other input pins
are connected to logic 0. The output will be A΄.
A NOR gate followed by a NOR inverter is equivalent to OR gate as shown in the figure below:
An AND gate can be replaced by NOR gates as shown in the figure below:
3|Page
LAB-02
Thus, the NOR gate is a universal gate since it can implement the AND, OR and NOT functions.
Equivalent Gates:
1. From first statement it is obvious that a NAND Gate is equivalent to inverted input OR
Gate:
2. From second statement it is clear that a NOR Gate is equivalent to inverted input AND
Gate:
5. Two NOT Gates in series are equivalent to a Buffer because the two inverters cancel
each other as A’’ = A.
4|Page
LAB-02
LAB SESSION
➢ NI ELVIS II Workstation
➢ 7400 IC
➢ 7402 IC
• Place NAND Gate IC on the bread board of the NI ELVIS II and layout the circuit of
NOT Gate using NAND Gate.
5|Page
LAB-02
• Connect pin # 7 to Gnd and pin # 14 to +5V VCC available on DC Power Panel over the
Laboratory trainer.
• Open LabVIEW-based software on computer.
• Use Digital write to give input to circuit.
• Use Digital read for checking the output logic of circuit or use workstation LEDs.
• Turn the NI ELVIS II power on.
• Apply all logic input combinations to verify the equivalence.
• Now draw all equivalent circuits and verify their result.
Observations
BUFFER GATE:
Input Output
A Y
0
1
Draw Following
6|Page
LAB-02
7|Page
LAB-02
Questions:
LAB REPORT
Discussion of Results
1. Draw the circuit for the expression of XNOR Gate using basic gates.
Conclusion / Summary:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
8|Page