KILLERLESSONS.COM PRESENTS
www.killerlessons.com
Learn Logic Gates fast, with day to day examples
www.killerlessons.com
www.killerlessons.com
Logic Gates perform a logical operation within
a circuit. It helps to produce an output using
one or many inputs.
www.killerlessons.com
Common Logic Gates
Performs the logic of THIS AND THAT. Means, you
need to have BOTH THE INPUTS as TRUE for the
output to be TRUE
Lets’ call he is the stubborn guy. Because he
wants BOTH, all the time
www.killerlessons.com
Think like this...
A kid, visits a toy shop with his mother
He sees two toys, a teddy and a car
Kid wants both, teddy AND the car to be happy
Or else, kid is sad, and will not leave the toy shop
www.killerlessons.com
www.killerlessons.com
Input 1 (teddy) Input 2 (car) Output
0
(no teddy)
0
(no car)
0
(sad kid)
1
(gets teddy)
0
(no car)
0
(sad kid)
0
(no teddy)
1
(gets car)
0
(sad kid)
1
(gets teddy)
1
(gets car)
1
(happy kid)
Performs the logic of THIS OR THAT. Means, you
need to have EITHER ONE INPUT as TRUE for the
output to be TRUE
Lets’ call he is the okay guy. Because he is okay
with EITHER ONE or even BOTH, all the time
www.killerlessons.com
Think like this...
The same kid, visits the candy shop
He says he wants a Chocolate OR a toffee
Give either one and the kid would be happy
If the kid doesn’t get any, he would be sad, and
will not leave the candy shop
www.killerlessons.com
www.killerlessons.com
Input 1 (chocolate) Input 2 (toffee) Output
0
(no choco)
0
(no toffee)
0
(sad kid)
1
(gets choco)
0
(no toffee)
1
(happy kid)
0
(no choco)
1
(gets toffee)
1
(happy kid)
1
(gets choco)
1
(gets toffee)
1
(happy kid)
Performs the logic of OPPOSITE. Means, whatever
the value you provide as the INPUT,
the OUTPUT would be it’s OPPOSITE
Lets’ call he is the opposite guy. Because he does
everything the OPPOSITE way
NOT GATE has only ONE INPUT and ONE OUTPUT
www.killerlessons.com
Think like this...
A troublesome kid does the exact opposite of
what his mother says to do.
If he’s said to play outside, he does not want to.
If he’s said not to play outside, he goes outside to
play.
www.killerlessons.com
www.killerlessons.com
Input Output
0
(mom : don't play outside)
1
(kid plays outside)
1
(mom : play outside)
0
(kid doesn't play outside)
www.killerlessons.com
We have learnt about AND OR and NOT Gates
What would happen if an AND Gate is combined
with a NOT Gate?
And…
When an OR Gate is combined with a NOT Gate?
www.killerlessons.com
What would happen if an AND Gate is combined
with a NOT Gate?
Creates a NAND Gate
And…
When an OR Gate is combined with a NOT Gate?
Creates NOR Gate
Performs the logic of AND, but gives the OPPOSITE
for the OUTPUT
www.killerlessons.com
Think like this...
Mother has said the kid that…
He has to go to school, unless it is
Raining AND Thundering
www.killerlessons.com
Which means that...
If it is raining in the morning, but not thundering,
kid can go to school.
If it is not raining in the morning, but thundering,
kid can go to school.
Kid cannot go to school, only if it Raining AND
Thundering
www.killerlessons.com
www.killerlessons.com
Input 1 (rain) Input 2 (thunder) Output
0
(no rain)
0
(no thunder)
1
(can go to school)
1
(raining)
0
(no thunder)
1
(can go to school)
0
(no rain)
1
(thundering)
1
(can go to school)
1
(raining)
1
(thundering)
0
(cannot go to school)
Performs the logic of OR, but gives the OPPOSITE
for the OUTPUT
www.killerlessons.com
Think like this...
Mother has said the kid that…
Kid has to go to school unless it is
either Raining OR Thundering
www.killerlessons.com
Which means that...
If it is not raining, and not thundering,
kid can go to school
If it is raining in the morning, but not thundering,
kid cannot go to school.
If it is not raining in the morning, but thundering,
kid cannot go to school.
If it is both raining, and thundering,
kid cannot go to school
www.killerlessons.com
www.killerlessons.com
Input 1 (rain) Input 2 (thunder) Output
0
(no rain)
0
(no thunder)
1
(can go to school)
1
(raining)
0
(no thunder)
0
(cannot go to school)
0
(no rain)
1
(thundering)
0
(cannot go to school)
1
(raining)
1
(thundering)
0
(cannot go to school)
www.killerlessons.com

Learn Logic Gates in a Flash using Examples

  • 1.
  • 2.
  • 3.
    www.killerlessons.com Logic Gates performa logical operation within a circuit. It helps to produce an output using one or many inputs.
  • 4.
  • 5.
    Performs the logicof THIS AND THAT. Means, you need to have BOTH THE INPUTS as TRUE for the output to be TRUE Lets’ call he is the stubborn guy. Because he wants BOTH, all the time www.killerlessons.com
  • 6.
    Think like this... Akid, visits a toy shop with his mother He sees two toys, a teddy and a car Kid wants both, teddy AND the car to be happy Or else, kid is sad, and will not leave the toy shop www.killerlessons.com
  • 7.
    www.killerlessons.com Input 1 (teddy)Input 2 (car) Output 0 (no teddy) 0 (no car) 0 (sad kid) 1 (gets teddy) 0 (no car) 0 (sad kid) 0 (no teddy) 1 (gets car) 0 (sad kid) 1 (gets teddy) 1 (gets car) 1 (happy kid)
  • 8.
    Performs the logicof THIS OR THAT. Means, you need to have EITHER ONE INPUT as TRUE for the output to be TRUE Lets’ call he is the okay guy. Because he is okay with EITHER ONE or even BOTH, all the time www.killerlessons.com
  • 9.
    Think like this... Thesame kid, visits the candy shop He says he wants a Chocolate OR a toffee Give either one and the kid would be happy If the kid doesn’t get any, he would be sad, and will not leave the candy shop www.killerlessons.com
  • 10.
    www.killerlessons.com Input 1 (chocolate)Input 2 (toffee) Output 0 (no choco) 0 (no toffee) 0 (sad kid) 1 (gets choco) 0 (no toffee) 1 (happy kid) 0 (no choco) 1 (gets toffee) 1 (happy kid) 1 (gets choco) 1 (gets toffee) 1 (happy kid)
  • 11.
    Performs the logicof OPPOSITE. Means, whatever the value you provide as the INPUT, the OUTPUT would be it’s OPPOSITE Lets’ call he is the opposite guy. Because he does everything the OPPOSITE way NOT GATE has only ONE INPUT and ONE OUTPUT www.killerlessons.com
  • 12.
    Think like this... Atroublesome kid does the exact opposite of what his mother says to do. If he’s said to play outside, he does not want to. If he’s said not to play outside, he goes outside to play. www.killerlessons.com
  • 13.
    www.killerlessons.com Input Output 0 (mom :don't play outside) 1 (kid plays outside) 1 (mom : play outside) 0 (kid doesn't play outside)
  • 14.
    www.killerlessons.com We have learntabout AND OR and NOT Gates What would happen if an AND Gate is combined with a NOT Gate? And… When an OR Gate is combined with a NOT Gate?
  • 15.
    www.killerlessons.com What would happenif an AND Gate is combined with a NOT Gate? Creates a NAND Gate And… When an OR Gate is combined with a NOT Gate? Creates NOR Gate
  • 16.
    Performs the logicof AND, but gives the OPPOSITE for the OUTPUT www.killerlessons.com
  • 17.
    Think like this... Motherhas said the kid that… He has to go to school, unless it is Raining AND Thundering www.killerlessons.com
  • 18.
    Which means that... Ifit is raining in the morning, but not thundering, kid can go to school. If it is not raining in the morning, but thundering, kid can go to school. Kid cannot go to school, only if it Raining AND Thundering www.killerlessons.com
  • 19.
    www.killerlessons.com Input 1 (rain)Input 2 (thunder) Output 0 (no rain) 0 (no thunder) 1 (can go to school) 1 (raining) 0 (no thunder) 1 (can go to school) 0 (no rain) 1 (thundering) 1 (can go to school) 1 (raining) 1 (thundering) 0 (cannot go to school)
  • 20.
    Performs the logicof OR, but gives the OPPOSITE for the OUTPUT www.killerlessons.com
  • 21.
    Think like this... Motherhas said the kid that… Kid has to go to school unless it is either Raining OR Thundering www.killerlessons.com
  • 22.
    Which means that... Ifit is not raining, and not thundering, kid can go to school If it is raining in the morning, but not thundering, kid cannot go to school. If it is not raining in the morning, but thundering, kid cannot go to school. If it is both raining, and thundering, kid cannot go to school www.killerlessons.com
  • 23.
    www.killerlessons.com Input 1 (rain)Input 2 (thunder) Output 0 (no rain) 0 (no thunder) 1 (can go to school) 1 (raining) 0 (no thunder) 0 (cannot go to school) 0 (no rain) 1 (thundering) 0 (cannot go to school) 1 (raining) 1 (thundering) 0 (cannot go to school)
  • 24.