Digital Design Lab-4
Digital Design Lab-4
Digital Design Lab-4
Lab journal-04
0
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer Science
Question#1: illustrate the circuit diagrams conducted during the laboratory
experiments along with their corresponding truth tables.
Solution:
a. NAND Gate
1. Definition:
A NAND gate is a fundamental digital logic gate in electronics. It stands for
"Not AND" gate. It has two or more inputs and one output. The output of a
NAND gate is true (high or 1) only when all of its inputs are false (low or 0). In
other words, it produces the opposite result of an AND gate. If any of the inputs
are 0, the output is 1; otherwise, the output is 0. The logical symbol for a
NAND gate is a triangle with a small circle at the output end, indicating the
inversion of the AND operation.
2. Diagram:
3. Representation:
X= (A.B)'
4. Truth Table:
A B A.B (A.B)1
1 1 1 0
1 0 0 1
1
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer Science
0 1 0 1
0 0 0 1
5. Circuit:
In this circuit, the Led will be on when either one of the switches is on
otherwise it will remains off (when both switches will be on)
6. Components used:
1. 1× Breadboard
2. 5 × Resistors
3. 1 × Switch
4. 1 × NAND gate
5. 1 × power supply
6. 1× LED
b. NAND gate (conversion to AND):
1. Explanation:
To convert a NAND gate into an AND gate, you can use De Morgan's theorem,
which states that the complement of the product of two variables is equivalent to
the product of the complements of the variables. Here is how you can do it:
2
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer Science
The resulting expression represents the AND gate.
2. Diagram:
3. Representation:
X= ((A.B)')'
4. Truth Table:
1 1 1 0 1
1 0 0 1 0
0 1 0 1 0
0 0 0 1 0
5. Circuit:
In this circuit, the LED will be on when both switches will be on otherwise it
will remains off.
3
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer Science
6. Components used:
1. 1× Breadboard
2. 5 × Resistors
3. 1 × Switch
4. 1 × NAND gate
5. 1 × power supply
6. 1× LED
Question#2: Design a circuit of your preference.
Solution:
NOR Gate
1. Definition:
A NOR gate is another fundamental digital logic gate in electronics. It stands for
"Not OR" gate. Like the NAND gate, it has two or more inputs and one output.
The output of a NOR gate is true (high or 1) only when all of its inputs are false
(low or 0). In other words, it produces the opposite result of an OR gate. If any of
the inputs are 1, the output is 0; otherwise, the output is 1. The logical symbol for a
NOR gate is a triangle with a small circle at the output end, indicating the
inversion of the OR operation.
2. Diagram:
4
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer Science
3. Representation:
X= (A+B)'
4. Truth Table:
A B A+B (A+B)1
1 1 1 0
1 0 1 0
0 1 1 0
0 0 0 1
5. Circuit:
In this circuit the Led will be on, when both of the switches are off otherwise
it will remains off. (when either one of the switches is on)
5
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer Science
6. Components used:
1. 1× Breadboard
2. 5 × Resistors
3. 1 × Switch
4. 1 × NOR gate
5. 1 × power supply
6. 1× LED
The End