Lab 2 Basic Laws of Boolean Algebra
Lab 2 Basic Laws of Boolean Algebra
Lab 2 Basic Laws of Boolean Algebra
Prepared by:
Name ID No.
1. Fasil Hawultie UGR/25578/14
2. Firaif Lenjisa UGR/25346/14
3. Hanamariam Mesfin UGR/25483/14
4. Nebil Rahmeto UGR/25275/14
5. Sewasew Tadele UGR/25379/14
6. Yabets Workaferahu UGR/25650/14
(A B)’ A’ B’
ii. The second law states that when the And product of two variables is inverted ,this is the
same as inverting each variable individually and then ORing them.
(AB)’ A’B’
These laws can be used to both reduce and simplify a complex Boolean expression in an attempt
to reduce the number of logic gates required.
Lab – 2: Basic Law & De Morgan’s Theorem
Objectives:
Procedures
I. Task 1:
a. Prove A’’ = A
i. First, we connected the pins 7 & 14 of the NOT gate to Ground and +5 V
respectively.
ii. Then, we used a wire to connect a switch to the input pin 1.
iii. Then, we connected the output from pin 2 to the input pin 3.
iv. Then, we connected the output from pin 4 to an LED.
v. Then, we turned on the power switch.
vi. Finally, we observed that the output is the same as the input.
b. Note the effects of A.A’
i. First, we connected the pins 7 & 14 of the NOT gate and the AND gate to Ground
and +5 V respectively.
ii. Then, we used a wire to connect a switch to the input pin 1 of the NOT gate and the
AND gate.
iii. Then, we connected the output from pin 2 of the NOT gate to pin 2 of the AND
gate.
iv. Then, we connected the output from pin 3 of the AND gate to an LED.
v. Then, we turned on the power switch.
vi. Finally, we observed that the output is always 0 (doesn’t turn on the light).
II. Task 2: AND Gate Implementation
a. Extend the 2-input AND gate to a 4-input AND gate
i. First, we connected the pins 7 & 14 of the AND gate to Ground and +5 V
respectively.
ii. Then, we used wires to connect 4 switches to the input pins 1,2, 4 and 5.
iii. Then, we connected the output of pins 1 and 2 from pin 3 to the input pin 9.
iv. Then, we connected the output of pins 4 and 5 from pin 6 to the input pin 10.
v. Then, we connected the output from pin 8 to an LED.
vi. Then, we turned on the power switch.
vii. Finally, we observed that the output is (A.B.C.D).
A B C D Y A B C D Y
0 0 0 0 0 1 0 0 0 0
0 0 0 1 0 1 0 0 1 0
0 0 1 0 0 1 0 1 0 0
0 0 1 1 0 1 0 1 1 0
0 1 0 0 0 1 1 0 0 0
0 1 0 1 0 1 1 0 1 0
0 1 1 0 0 1 1 1 0 0
0 1 1 1 0 1 1 1 1 1
i. First, we connected the pins 7 & 14 of the OR gate, NOT gate and the AND gate
to Ground and +5 V respectively.
ii. Then, we labeled two switches A and B and used different connecting wires for
each of them.
iii. Then, we connected switch A and switch B to pins 1 & 2 of the AND gate
respectively.
iv. Then, we connected the output of pins 1 and 2 from pin 3 of the AND gate to the
input pin 1 of the NOT gate.
v. Then, we connected the output of pin 2 of the NOT gate to an LED and labeled it
output Y.
vi. Then, we connected switch A and switch B to the input pins 3 & 5 of the NOT
gate using a second set of wires.
vii. Then, we connected the outputs from pin 4 and pin 6 of the NOT gate to input pin
1 and pin 2 of the OR gate.
viii. Then, we connected the output of pins 1 and 2 from pin 3 of the OR gate to an
LED and labeled it output Z.
ix. Then, we turned on the power switch.
x. Finally, we observed the output.
A B Y Z
0 0 1 1
0 1 1 1
1 0 1 1
1 1 0 0
Questions
1. How can NAND gate be used as a basic gate?
By connecting it together in various combinations, the three basic gate types of AND, OR and
NOT gates can be formed.
References
electronics-tutorials.ws
“We have neither received nor provided any help on the writing of this lab report.”