LOGIC GATE
A digital circuit with one or more input signals but only one output signal is called
a logic gate
LOGIC GATE
BASIC GATE UNIVERSAL GATE DERIVED GATE
1. AND 1.NAND 1. XOR
2. OR 2.NOR 2. XNOR
3. NOT
TYPES OF LOGIC GATE
AND GATE
OR GATE
NOT GATE
XOR GATE
XNOR GATE
NAND GATE
NOR GATE
AND GATE –
IF TWO INPUT A AND B THEN OUTPUT Y= A*B
A B Y=A.B
0 0 0
0 1 0
AND gate
1 0 0
1 1 1
OPERATIONS
CASE-1 - When both input low (A = 0, B = 0 ) then output low (Y = 0)
CASE-2 - When one input low (A = 0) and other high (B = 1) then output low (Y = 0)
CASE-3 - When one input high (A = 1) and other low (B = 1) then output low (Y = 0)
CASE-4 - When one input high (A = 1) and other high (B = 1) then output high (Y = 1)
OR GATE -
IF TWO INPUT A AND B THEN OUTPUT Y= A+B
A B A+B
0 0 0
0 1 1
OR gate 1 0 1
1 1 1
OPERATIONS
CASE-1 - When both input low (A = 0 , B = 0 ) then output low (Y = 0)
CASE-2 - When one input low (A = 0) and other high (B = 1) then output low (Y = 1)
CASE-3 - When one input high (A = 1) and other low (B = 1) then output low (Y = 1)
CASE-4 - When one input high (A = 1) and other high (B = 1) then output high (Y = 1)
XOR GATE
IF TWO INPUT A AND B THEN OUTPUT Y= A B́+ Á B
A B Y= A B́+ Á B
0 0 0
XOR gate 0 1 1
1 0 1
1 1 0
OPERATIONS
CASE-1 - When both input low (A = 0 , B = 0 ) then output low (Y = 0)
CASE-2 - When one input low (A = 0) and other high (B = 1) then output low (Y = 1)
CASE-3 - When one input high (A = 1) and other low (B = 1) then output low (Y = 1)
CASE-4 - When one input high (A = 1) and other high (B = 1) then output high (Y = 0)
NOT GATE – IF INPUT A THEN OUTPU IS COMPLEMENT OF A
Input Output
1 0
Inverter or NOT gate 0 1
OPERATIONS
CASE-1 - When input low (A = 0) then output low (Y = 1)
CASE-2 - When input high (A = 0) and then output low (Y = 0)
NAND GATE –
A LOGIC GATE WHICH COMBINATION OF AND GATE & NOT GATE IF A & B TWO INPUT THEN
´
OUTPUT Y= AB
Input 1 Input 2 Output
0 0 1
0 1 1
LOGIC GATE 1 0 1
1 1 0
A digital circuit with one or more input signals but only
one output signal is called a logic gate
LOGIC GATE
BASIC GATE UNIVERSAL GATE DERIVED GATE
4. AND 1.NAND 1. XOR
5. OR 2.NOR 2. XNOR
6. NOT
TYPES OF LOGIC GATE
AND GATE
OR GATE
NOT GATE
XOR GATE
XNOR GATE
NAND GATE
NOR GATE
AND GATE –
IF TWO INPUT A AND B THEN OUTPUT Y= A*B
A B Y=A.B
0 0 0
0 1 0
AND gate
1 0 0
1 1 1
OPERATIONS
CASE-1 - When both input low (A = 0, B = 0 ) then output low (Y = 0)
CASE-2 - When one input low (A = 0) and other high (B = 1) then output low (Y = 0)
CASE-3 - When one input high (A = 1) and other low (B = 1) then output low (Y = 0)
CASE-4 - When one input high (A = 1) and other high (B = 1) then output high (Y = 1)
OR GATE -
IF TWO INPUT A AND B THEN OUTPUT Y= A+B
A B A+B
0 0 0
0 1 1
OR gate 1 0 1
1 1 1
OPERATIONS
CASE-1 - When both input low (A = 0 , B = 0 ) then output low (Y = 0)
CASE-2 - When one input low (A = 0) and other high (B = 1) then output low (Y = 1)
CASE-3 - When one input high (A = 1) and other low (B = 1) then output low (Y = 1)
CASE-4 - When one input high (A = 1) and other high (B = 1) then output high (Y = 1)
XOR GATE
IF TWO INPUT A AND B THEN OUTPUT Y= A B́+ Á B
A B Y= A B́+ Á B
0 0 0
XOR gate 0 1 1
1 0 1
1 1 0
OPERATIONS
CASE-1 - When both input low (A = 0 , B = 0 ) then output low (Y = 0)
CASE-2 - When one input low (A = 0) and other high (B = 1) then output low (Y = 1)
CASE-3 - When one input high (A = 1) and other low (B = 1) then output low (Y = 1)
CASE-4 - When one input high (A = 1) and other high (B = 1) then output high (Y = 0)
NOT GATE – IF INPUT A THEN OUTPU IS COMPLEMENT OF A
Input Output
1 0
Inverter or NOT gate 0 1
OPERATIONS
CASE-1 - When input low (A = 0) then output low (Y = 1)
CASE-2 - When input high (A = 0) and then output low (Y = 0)
NAND GATE –
A LOGIC GATE WHICH COMBINATION OF AND GATE & NOT GATE IF A & B TWO INPUT THEN
´
OUTPUT Y= AB
Input 1 Input 2 Output
0 0 1
0 1 1
1 0 1
1 1 0