Experiment 5: NAND and NOR Implementation: The NAND Gate Are Shown Below in Figure
Experiment 5: NAND and NOR Implementation: The NAND Gate Are Shown Below in Figure
Name: ...................................
University no:………………………..
Group no: …………………………….
Lab Partner Name: Mr. Mohamed El-Saied
Experiment 5: NAND and NOR Implementation
Objective:
Discuss how NAND gates can be used to perform the AND, OR and NOT logic operations.
Discuss how NOR gates can be used to perform the AND, OR and NOT logic operations.
How to implement a Boolean function and verifying its logic using only NAND/NOR logic gates.
Components Required:
Mini Digital Logic Trainer.
IC Type 7400 Quadruple 2-input NAND gates.
IC Type 7402 Quadruple 2-input OR gates.
IC Type 7404 Hex Inverters
Switches for inputs and
LED displays for outputs.
Theory:
Digital circuits are constructed with NAND and NOR gates rather than with AND and OR gates. NAND and
NOR gates are easier to fabricate with electronic components. They are most widely used in all IC digital
families. So any Boolean function can be implemented with NAND/NOR gates alone. Thus these gates are
called “universal” gates.
a. NAND Implementation:
The logic operations AND, OR and NOT can be obtained with NAND gates as shown in figure (1).
1
Two-level NAND Implementation procedure:
To obtain the equivalent NAND logic diagram for a Boolean function do the following:
1. Simplify and write the function in sum of products form (if not).
2. Draw the logic diagram.
3. Change AND gates with NAND gates.
4. Adjust the NOT gates with OR gates to form inverted-OR gates. Add a NOT gate if there is a single
literals.
5. Change the invert-OR to NAND gate.
b. NOR Implementation:
The logic operations AND, OR and NOT can be obtained with NOR gates as shown in figure (3).
2
Part A: Lab Practice
1. Given the Boolean function: F1(x,y,z) = Σ (1, 2, 3, 4, 5, 7)
Procedure:
- Implement the Boolean function F1 with NAND gates.
- Obtain the truth table for F1 from the original circuit.
- Use datasheets of (NAND and NOT) IC’s to assign pin numbers to all inputs and all outputs of the gates.
- Use IC’s and breadboard to connect the NAND implementation for F1with the x, y and z inputs to three
switches (push button) and output F1 to an indicator lamp (LED).
- Wire the ICs to ground 0V and power supply +5 V. Turn on the power of trainer.
- Test the equivalent circuit for all input patterns and record the corresponding outputs in the truth table.
Results:
Step 1 Step 2
Step 3 Step 4
3
2. Given the Boolean function: F2(x,y,z) = xy+x z
Procedure:
- Implement the Boolean function F2 with NOR gates.
- Obtain the truth table for F2 from the original circuit.
- Use datasheets of (NOR and NOT) IC’s to assign pin numbers to all inputs and all outputs of the gates.
- Use IC’s and breadboard to connect the NOR implementation for F2with the x, y and z inputs to three
switches (push button) and output F2 to an indicator lamp (LED).
- Wire the ICs to ground 0V and power supply +5 V. Turn on the power of trainer.
- Test the equivalent circuit for all input patterns and record the corresponding outputs in the truth table.
Results:
Step 1 Step 2
Step 3 Step 4
4
Module: Logic Design Lab
Name: ...................................
University no:………………………..
Group no: …………………………….
Lab Partner Name: Mr. Mohamed El-Saied