Unit-19, Part-1, Logic Gates
Unit-19, Part-1, Logic Gates
Analog signal is continuous time varying (i) 310 ......2 (ii) 1210 ....2
11 0 1 0 1
OFF, OPEN, NO
0
Binary Subtraction:
ON, CLOSE, YES
1
Rules: (i) 0 0 0 (ii) 1 0 1
NOTE: The electronic circuit used to process the
(iii) 1 1 0 (iv) 10 1 1
digital signals is known as digital circuit.
Truth-Table:
Truth table:
𝑰𝒏𝒑𝒖𝒕 𝑶𝒖𝒕𝒑𝒖𝒕
It is a table that shows all possible input
𝑨 𝑩 𝒀
combinations and the corresponding output for
a logic gate. 0 0 0
0 1 1
All possibilities for logic gates:
1 0 1
𝑰𝒏𝒑𝒖𝒕 𝑶𝒖𝒕𝒑𝒖𝒕
1 1 1
𝑨 𝑩 𝒀
0 0 …….
Realization of OR gate:
1 0 ……. D1
A
0 1 ……. Y
R
1 1 ……. B
D2
(i) A = 0, B = 0
Boolean expression:
Both diodes D1 and D2 do not conduct,Y = 0
“It is a shorthand method to describe the
functioning of a logic gate in the form of an (ii) A = 0, B = 1
equation (or) an expression.” D1 = Does not conducts, D2 = Conducts, Y = 1
An AND gate has two (or) more inputs but only D1 = conducts, D2 = Not Conducts
one output.
The out voltage at Y =The voltage across the
A B
diode (D1) = 0
(iii) A = 1, B = 0
(iv) A = 1, B = 1
Truth-Table:
None of the diode conducts
𝑰𝒏𝒑𝒖𝒕 𝑶𝒖𝒕𝒑𝒖𝒕
The out voltage at Y= Battery voltage =1
𝑨 𝑩 𝒀
0 0 0 NOT-Gate
1 0 0 one output.
1 1 1
(i) A = 0, B = 0 Truth-Table:
The voltage supply through R is forward biasing 𝑰𝒏𝒑𝒖𝒕 (𝑨) 𝑶𝒖𝒕𝒑𝒖𝒕 (𝒀)
diodes D1 and D2 (offers low resistance) the 0 1
voltage V would drop across R
1 0
The output voltage at Y = the voltage across
diode = 0
SSK PUBLICATION CHAPTER NOTES 3
Realization of NOT gate:
VCC = V
R
Y
R1 C
1 A
B
V E
0
SSK PUBLICATION CHAPTER NOTES 1
Truth-Table:
Combination of Gates:
𝑰𝒏𝒑𝒖𝒕𝒔 𝑶𝒖𝒕𝒑𝒖𝒕
(1) NAND Gate:
Boolean-expression: Y A. B 1 0 1 0
0 1 1 0
Logic symbol:
1 1 1 0
A Y = A ·B
AND NOT
B
NOR gate is a universal gate because it can be
A
Y used to perform the basic logic function, AND,
B
OR and NOT.
Truth-Table:
𝑰𝒏𝒑𝒖𝒕𝒔 𝑶𝒖𝒕𝒑𝒖𝒕
𝑨 𝑩 Y ' A. B Y Y '
0 0 0 1
1 0 0 1
0 1 0 1
1 1 1 0
(2) NOR-Gate:
Boolean-expression: Y A B
Logic symbol:
A Y = A + B
OR NOT
B
A
Y
B
SSK PUBLICATION CHAPTER NOTES 1
Construction of primary logic gates using (c) OR-Gate from a NAND-Gate:
B Y
B
B
Truth-Table:
Truth-Table:
𝑰𝒏𝒑𝒖𝒕𝒔 (𝑨 = 𝑩) 𝑶𝒖𝒕𝒑𝒖𝒕 (𝒀)
𝑰𝒏𝒑𝒖𝒕𝒔 𝑶𝒖𝒕𝒑𝒖𝒕
0 1
𝑨 𝑩 A B A .B Y A.B
1 0
0 0 1 1 1 0
(b) AND Gate from a NAND-Gate:
1 0 0 1 0 1
To get an AND gate from a NAND gate, a NOT
0 1 1 0 0 1
gate is used after the NAND gate.
1 1 0 0 0 1
Y Y
A
B
NOTE: (i ) Y A.B A B (ii ) Y A B A.B
Truth-Table:
𝑰𝒏𝒑𝒖𝒕𝒔
𝑨 𝑩 Y ' A. B Y Y1
0 0 1 0
1 0 1 0
0 1 1 0
1 1 0 1
SSK PUBLICATION CHAPTER NOTES 1
(3) The ‘XOR’ gate: Miscellaneous Exercise
The logic gate which gives high output (i.e., 1) if Q.1. In circuit in following figure the value of Y:
either input A (or) input B but not both are high
(i.e. 1) is called exclusive OR gate or the XOR
gate (it not a universal gate because they are
not gives OR /AND/NOR/NAND).
SOLUTION: (a)
Boolean expression: Y = A B = AB AB
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
A
Y
B
A
Y
B
Boolean expression: Y = A B = A B AB
SSK PUBLICATION DAILY ACTIVITY 1
DIGITAL ELECTRONICS (a) XOR (b) AND
3. The truth table shown in figure is for then AND gate has an output of 1 when
the values of A and B are
A 0 0 1 1
(a) A = 0, B = 0 (b) A = 1, B = 1
✔
B 0 1 0 1
(c) A = 1, B = 0 (d) A = 0, B = 1
Y 1 0 0 1
SSK PUBLICATION DAILY ACTIVITY 2
8. To get an output 1 from the circuit
shown in the figure, the input must be
(a) A 0, B 1, C 0
A
B
(b) A 1, B 0, C 0
C
(c) A 1, B 0, C 1
(d) A 1, B 1, C 0
✔ (111101)2
(a) (b) (111111)2
A 0 0 1 1
B 0 1 0 1
C 1 1 1 0
A.B A B A B
B
B
A B Y
C A.B A B A B (De morgan’s theorem)
0 0 1
Hence output C is equivalent to OR gate.
1 0 0
AB
A
C 0 1 0
B
1 1 0
C AB. AB AB AB AB AB AB
Output C is equivalent to AND gate. 7. (b) For ‘AND’ gate, if output is 1 then
both inputs must be 1.
3. (c)For ‘XNOR’ gate Y A B AB
8. (c) The Boolean expression for the
i.e. 0.0 0.0 1.1 0.0 1 0 1 given combination is output Y ( A B ).C
0.1 0.1 1.0 0.1 0 0 0
The truth table is
1.0 1.0 0.1 1.0 0 0 0
A B C Y =(A+B).C
1.1 1.1 0.0 1.1 0 1 1
0 0 0 0
D ( A B ).C ( A B ) C 0 1 0 0
If A B C 0 then 0 0 1 0
D (0 0) 0 0 0 1 1 1 1 1 0 0
If A B 1 , C 0 then 0 1 1 1
D (1 1) 0 1 0 0 1 1
SSK PUBLICATION DAILY ACTIVITY 4
1 0 1 1 Required sum (in binary system)
B
B
Y A.B A B A B
10. (b)
110112 24 1 23 1 22 0 21 1 20 1
16 8 0 2 1 27 10
2 61 Remainder
2 30 1 LSD
2 15 0
2 7 1
2 3 1
2 1 1
0 1 MSD
SSK PUBLICATION 1
(a) NAND OR
A
BOUNCE SERIES (b) XOR
B
G1 AND
Y
NAND
(c) OR G3
LOGIC GATES
(d) None of these G2
5 10 15 20 25 30 35 40 45 50
Time in s
Q
(a) 0000000000 (b) 0101101000
(a) X = 0, Y = 1 (b) X = 1, Y = 1
(c) 1111111111 (d)
✔ 1010010111
(c) X = 1, Y = 0 (d) X = 0, Y = 0
2. The given figure shows the wave forms
for two inputs A and B and that for the 5. The combination of gates shown below
(c) NAND
(a) An AND gate
✔ (b) An OR gate
C Y
(d) None of these
(c) A NAND gate (d) An NOT gate
F
output (0). The output is therefore
1010010111.
W
Y
2. (a) From the given waveforms, the
following truth table can be made
(a) W X Y (b) W X Y
Time interval Inputs Output
(c) W X Y (d) W X Y
A B Y
0 T1 0 0 0
T1 T2 0 1 0
T2T3 1 0 0
T 3 T 4 1 1 1
3. (b)
A (A + B)
B
G1 Y
A G3
Y (A B).AB
B AB
G2
Output Y A B . A B
AA AB BA BB 0 AB AB 0 AB AB
Q
Y R P Q
5. (d)
A
A
NOR NOT
NOT
A B
NOT A B AB
B
B
Net output: F = (W + X) (W + Y)
= WW + WY + XW + XY (Since WW = W)
= W (1 + Y) + XW + XY (Since 1 + Y= 1)
= W + XW + XY = W (1 + X) + XY = W + XY
CHAPTER-19 A B A C A B D A B E CD
ELECTRONIC DEVICE 0 0 1 0 0 0
SEQUENCE-4 0 1 1 0 1 1
LOGIC GATES 1 0 0 0 0 0
1 1 0 1 0 1
Only One Option Correct Type
Solution: (c)
1 SSK PUBLICATION