Professional Documents
Culture Documents
1:
To Verify truth table for AND gate
Logic Symbol:
A
Y
B
Logic Expression:
A.B = Y
Truth Table:
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
Circuit Diagram:
Breadboard diagram:
Apparatus:
Procedure:
1. I fixed two diodes on the breadboard and connected them with the help of connecting wires.
2. I took a resistor and LED and connected them in parallel with the diodes.
6. To verify, keeping both inputs OFF, there is no current in the circuit, because they both are
at 0,0. So LED is also off.
7. When input A is ON at 1 and input B is OFF at 0, again the output is also OFF, so LED is
also off.
8. When input A is OFF at 0 and input B is ON at 1, there is no current in the circuit, so LED
is also OFF.
9. When both inputs A and B is 1, then current starts flowing and LED is also ON, which
means circuit is a close switch.
Result:
AND gate works on this principle that if all inputs are 1 only then the output will be 1,
Otherwise 0.
EXPERIMENT No 2:
Logic Symbol:
A
Y
B
Expression:
Y=A+B
Truth Table:
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
Circuit Diagram:
Breadboard Diagram:
Apparatus:
2 diodes, connecting wires, resistance, batteries, LED and breadboard.
Procedure:
1. I fixed two diodes on the breadboard and connected them with the help of connecting
wires.
2. I took a resistor and LED and connected them in parallel with the diodes.
3. Then I connected the battery.
4. Now started giving logics one by one in according to truth table.
5. Positive logic represents 1 and negative logic represent 0
6. Setup the connections according to circuit diagram.
7. The output terminal of OR gate is to be connected with LED and then with the negative
terminal of the power supply.
8. To verify, there is no at input terminals A and B that is they are both at 0, 0. So output
terminal Y is also OFF . So, LED indicator is also OFF.
9. The input terminal A is ON, at 1 and B is off, at 0. So LED is ON.
10. The input terminal A is off, at 0 and B is ON, at 1. So at output terminal Y LED is also
ON.
11. Now the both input terminals A and B are ON, at 1, 1. At output terminal C, the LED is
ON, at1, which verifies the truth table for OR gate.
Result:
In case of OR gate , the output becomes high when anyone of inputs is high.
Experiment No. 3:
To verify the truth table for NOT gate
Logic Symbol:
A Y
Expression:
A = 𝑌̅
Truth Table:
A Y
0 1
1 0
Apparatus:
Transistor, Connecting wires, Resistances (100 ohm and 1000 ohm), Battery, LED and
Breadboard.
Circuit Diagram:
Breadboard Diagram:
Procedure:
Logic input is given to base of the transistor through 1000 ohm resistor.
Output indicator i.e LED is connected between collector and negative terminal of
the battery (ground).
6. When input A=1, In this case, there is some voltage at the base of the transistor. So it acts
like a closed switch. And due to this no current flow from resistor to LED and then to
ground. All current flow from collector to ground. Hence LED turns off i.e, 0 at the output.
Result:
Hence we get 0 (LED is off) at the output when input is 1 and 1 (LED is ON) at the output
when input is 0.
Experiment no: 4
To verify the truth table for NOR gate.
Logic symbol:
A
Y
B a====
EEEEEeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Expression:
Y = ̅̅̅̅̅̅̅̅
𝐴+𝐵
Truth table:
A B Y
0 0 1
0 1 0
1 0 0
1 1 0
Apparatus:
Circuit diagram:
Bread board diagram:
Procedure:
Result:
The output is 1 only when all inputs are 0 otherwise the output is 0.
Experiment No 5:
Verify truth table for NAND gate.
Logic Symbol:
A 𝑌̅
Logic Expression:
A.B = 𝑌̅
Truth Table:
A B Y ̅
𝐘
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
Apparatus:
Two diodes, transistor, Two (100 Ω) resistance, 1000Ω resistance, LED , connecting wires ,Bread
board.
Circuit Diagram:
Breadboard Diagram:
Procedure:
Result:
The output is 0 only when all inputs are 1 otherwise the output is 1.
Experiment no.6
To verify Truth Table for Half Adder Circuit
Block Diagram:
A S (Sum)
B C (carry)
̅ 𝑩 + 𝑨𝑩
𝑺=𝑨 ̅
𝑪 = 𝑨𝑩
Logic Expression for Sum:
̅ 𝑩 + 𝑨𝑩
𝑺=𝑨 ̅
Logic Expression for Carry:
𝑪 = 𝑨𝑩
Logic Circuit for Sum and Carry:
Truth Table:
A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Apparatus:
Bread board, 2 LEDs, 2 resistances (100 Ω), 2 IC’s (XOR 7486 & AND
7408),Connecting wires.
Circuit Diagram:
Bread Board Diagram:
Procedure:
I drew neat and clean circuit diagram.
I placed apparatus on table and made connections according to circuit diagram.
I applied +4 at Vcc.
I applied (0,0) input signal at terminal "A" and terminal "B". I observed that LED at
output does not glow.
I applied (0,1) input signal at terminal "A" and terminal "B". I obtained ouput as SUM.
I applied (1,0) input signal at terminal "A" and terminal "B". I obtained output as SUM.
I applied (1,1) input signal at terminal "A" and terminal "B". I obtained output as
CARRY.
I displayed all observations in a table called truth table.
Result:
The HALF- ADDER is completely described by symbol, bollian expression and truth table.
Hence operation of HALF-ADDER is verified.
Experiment No. 7
To verify truth table for Full Adder circuit
Full Adder:
“Full adder is a simple circuit but not effective for adding more than two digits. When
three bits are meet to be added. We use a full adder circuit. Third bit is a previous carry.”
Block Diagram:
A Sum
C = 𝐴𝑃 + 𝐵𝑃 + 𝐴𝐵
Truth Table:
A B P S C
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Apparatus:
Bread board, 2 LEDs, 2 resistances (100 Ω), 2 IC’s (XOR 7486; AND 7408; OR
7432),Connecting wires.
Circuit Diagram:
Result :
The FULL_ADDER is completely described by symbo, boolean expressions and truth table .
Hence, operation of FULL_ADDER is verified .
Experiment # 8
To verify the Truth table for Half Subtractor:
Half Subtrator:
Block Diagram:
A Difference (D)
B Borrow (B)
D =𝐴̅B+A𝐵̅
B = 𝐴̅B
Logic circuit of Difference:
D = 𝐴̅B+A𝐵̅
B = 𝐴̅ B
Truth Table:
A B D B
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Apparatus:
Breadboard, Circuit IC’s (XOR 7486, AND 7408, NOT 7404), Connecting wires,
Two Resistance (100 ohm), Two LED’s and Battery.
Circuit Diagram:
Breadboard Diagram:
Procedure:
Result:
The “Difference” output came from XOR’s IC and “Borrow” output came from AND’s IC.
Operations of Half Subtractor are verified.
Experiment no 9:
To verify the truth table for Full Subtractor.
Full Subtractor:
In full subtractor, there are three binary inputs and give two binary outputs in the
form of difference and borrow.
Block Diagram:
A
Difference (D)
B
C Borrow ( B)
B = A'C + A'B + BC
A B C D B
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Apparatus:
Circuit IC's (XOR -7486, NOT- 7404, AND- 7408, OR- 7432) ,Two LED's ,
Connecting Wires, Two Resistance (100 Ohm) , Breadboard, Battery.
Circuit Diagram:
Breadboard Diagram:
Procedure:
1. First I've made neat and clean circuit diagram.
2. I put apparatus on table and made connection according to circuit diagram.
3. Positive logic represent '1'and negative logic represent '0'.
4. I fixed four IC's (XOR, AND, NOT, OR) on the Breadboard.
5. I quickly ground the 7th pin of all IC's in first step with Connecting Wires.
6. Then, I give 14th pin of all IC's the positive potential with Connecting Wires.
7. Now I applied input signal A=0, B=0 ,C=0 , no LED's glow.
8. At input signal A=0, B=0, C=1, I observed the output as Difference and Borrow.
9. At input signal A=0 , B=1,C=0, I observed the output as Difference and Borrow.
10. Now I give input A=0,B=0,C=1, I observed Borrow LED glows at output.
11. When input A=1,B=0,C=0, output will be of Difference only.
12. When input is A=1,B=0,C=1, output will be nothing.
13. When input is A=1,B=1,C=0, again I observed nothing as output.
14. When input is A=1,B=1,C=1, I observed Difference and Borrow as an output.
Result:
The final outcome of the Full Subtractor is the" Difference" bit. The outcome of the OR
Gate will be the final Carry " Borrow" of Full Subtractor.
The End