SlideShare a Scribd company logo
1 of 11
Download to read offline
CH= 02
LOGIC GATES
By: Saeed Ullah Jan
(PhD – Scholar University of Malakand)
Lecturer in Computer Science
Govt Degree College Wari (Dir Upper)
Email: saeedullah@uom.edu.pk // saeedjan03@gmail.com
Phone: 0944-840488
Course Title: Digital Logic & Computer Design
Program: BS – Computer Science 3rd Semester
13-Nov-18
Definition
• Digital logic is the representation of electrical
signals and sequences of digital circuit through
numbers.
• Signal or Input will be 0 or 1
• Inputs may be one, two or more
• Implementation of Number Systems
• Basic Concept
• Logic Gates
13-Nov-18
Logic Gates
• A logic gate is an elementary building block of a digital circuit.
• Most logic gates have two inputs and one output.
• At any given moment, every terminal is in one of the two binary
conditions low (0) or high (1), represented by different voltage
levels.
13-Nov-18
What are the basic digital logic gates ?
• Digital systems are said to be constructed by
using logic gates.
• These gates are the AND, OR, NOT, NAND, NOR,
XOR and XNOR gates.
• The basic operations are described below with the
help of truth tables.
13-Nov-18
OR Gate:
• The OR gate is an electronic circuit that gives a high output (1) if
one or more of its inputs are high
• An OR gate is a digital logic gate with two or more inputs and one
output that performs logical operation. The output of an OR gate is
true when one or more of its inputs are true
• Truth Table
Symbol
OR
13-Nov-18
X Y Z
0 0 0
0 1 1
1 0 1
1 1 1
X
Y
Z
Z = X | Y
AND Gate:
• The AND gate is an electronic circuit that gives a high output
(1) only if all of its inputs are high
• An AND gate is a digital logic gate with two or more inputs and
one output that performs logical operation. The output of an
AND gate is true when both or all of its inputs are true
• Truth Table
Symbol
13-Nov-18
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
AND
Z = X & Y
X
Y
Z
NOT Gate:
• The NOT gate is an electronic circuit that gives a high output
(1) if input is low (0) and gives low (0) output if input is high (1).
• It simply invert the input
• Truth Table
Symbol
13-Nov-18
X Y
0
1
1
0
X Y
Y
NOT
X Y
Y = ~X
NOT
NAND Gate:
• A NAND gate is a logic gate which produces an output which is
false only if all its inputs are true
• Its output is complement of an AND gate
• Truth Table
Symbol
13-Nov-18
X Y Z
0 0 1
0 1 1
1 0 1
1 1 0
NAND
X
Y
Z
Z = ~(X & Y)
nand(Z,X,Y)
NOR Gate:
• The NOR gate is a digital logic gate that produces logical high
output if both the inputs to the gate are low
• Its output is complement of an OR gate
• Truth Table
Symbol
13-Nov-18
X Y Z
0 0 1
0 1 0
1 0 0
1 1 0
X
Y
Z
Z = ~(X | Y)
nor(Z,X,Y)
Exclusive-OR or XOR Gate:
• The XOR gate is a digital logic gate that gives a true output
when the number of true inputs is odd
• When inputs are same the output low
• When inputs are different the output high
• Truth Table
Symbol
13-Nov-18
X Y Z
0 0 0
0 1 1
1 0 1
1 1 0
XOR
X
Y
Z
Z = X ^ Y
XOR(Z,X,Y)
XNOR or Exclusive-NOR Gate:
• The XNOR gate is a digital logic gate whose function is the
logical complement of the exclusive OR gate
• The output of an XNOR gate is true when all of its inputs are
true or when all of its inputs are false.
• Truth Table
Symbol
13-Nov-18
X Y Z
0 0 1
0 1 0
1 0 0
1 1 1
XNOR
X
Y
Z
Z = ~(X ^ Y)
Z = X ~^ Y
XNOR(Z,X,Y)

More Related Content

What's hot (20)

CSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic GatesCSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic Gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Presentation On Logic Gate
Presentation On Logic Gate Presentation On Logic Gate
Presentation On Logic Gate
 
Digital logic gate and its application
Digital logic gate and its applicationDigital logic gate and its application
Digital logic gate and its application
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Edc
EdcEdc
Edc
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Logic gate
Logic gateLogic gate
Logic gate
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Logic gate
Logic gateLogic gate
Logic gate
 
Digital Basics
Digital BasicsDigital Basics
Digital Basics
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Electronics: Logic Gates
Electronics: Logic GatesElectronics: Logic Gates
Electronics: Logic Gates
 
Logical Gates
Logical GatesLogical Gates
Logical Gates
 

Similar to Logic gates

11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptxElisée Ndjabu
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptxAravindaAKumar1
 
Chapter 3_Logic Gates (EEEg4302).pdf
Chapter 3_Logic Gates (EEEg4302).pdfChapter 3_Logic Gates (EEEg4302).pdf
Chapter 3_Logic Gates (EEEg4302).pdfTamiratDejene1
 
Logic-Gates-PPT-converted.pdf
Logic-Gates-PPT-converted.pdfLogic-Gates-PPT-converted.pdf
Logic-Gates-PPT-converted.pdfUllasBanglore
 
Introduction to digital logic gates
Introduction to digital logic gatesIntroduction to digital logic gates
Introduction to digital logic gatesVikas Dongre
 
Logic-Gates-PPT-converted-1.pdf it is the topic of Basic logic gates involved...
Logic-Gates-PPT-converted-1.pdf it is the topic of Basic logic gates involved...Logic-Gates-PPT-converted-1.pdf it is the topic of Basic logic gates involved...
Logic-Gates-PPT-converted-1.pdf it is the topic of Basic logic gates involved...ashwiniashu8799
 
Boolean Algebra- Digital Logic gates
Boolean Algebra- Digital Logic gatesBoolean Algebra- Digital Logic gates
Boolean Algebra- Digital Logic gatesNTBsnull
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesDhwanil Champaneria
 
Gerbang LOGIKA DIGITAL
Gerbang LOGIKA DIGITALGerbang LOGIKA DIGITAL
Gerbang LOGIKA DIGITALDedi Supardi
 
perform operation with boolean algebra
perform operation with boolean algebraperform operation with boolean algebra
perform operation with boolean algebraBrenda Debra
 
6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.ppt6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.pptnaghamallella
 
basic logic gate presentation date23.ppt
basic logic gate presentation date23.pptbasic logic gate presentation date23.ppt
basic logic gate presentation date23.pptnaghamallella
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxChristianVelchez2
 
Digital electoronics ppt
Digital electoronics pptDigital electoronics ppt
Digital electoronics pptvinothini1996
 
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdfM. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdfDr.Florence Dayana
 

Similar to Logic gates (20)

11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx
 
logic gates.pptx
logic gates.pptxlogic gates.pptx
logic gates.pptx
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
Chapter 3_Logic Gates (EEEg4302).pdf
Chapter 3_Logic Gates (EEEg4302).pdfChapter 3_Logic Gates (EEEg4302).pdf
Chapter 3_Logic Gates (EEEg4302).pdf
 
Logic-Gates-PPT-converted.pdf
Logic-Gates-PPT-converted.pdfLogic-Gates-PPT-converted.pdf
Logic-Gates-PPT-converted.pdf
 
Introduction to digital logic gates
Introduction to digital logic gatesIntroduction to digital logic gates
Introduction to digital logic gates
 
Logic gate
Logic gateLogic gate
Logic gate
 
Logic-Gates-PPT-converted-1.pdf it is the topic of Basic logic gates involved...
Logic-Gates-PPT-converted-1.pdf it is the topic of Basic logic gates involved...Logic-Gates-PPT-converted-1.pdf it is the topic of Basic logic gates involved...
Logic-Gates-PPT-converted-1.pdf it is the topic of Basic logic gates involved...
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
Boolean Algebra- Digital Logic gates
Boolean Algebra- Digital Logic gatesBoolean Algebra- Digital Logic gates
Boolean Algebra- Digital Logic gates
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gates
 
Gerbang LOGIKA DIGITAL
Gerbang LOGIKA DIGITALGerbang LOGIKA DIGITAL
Gerbang LOGIKA DIGITAL
 
perform operation with boolean algebra
perform operation with boolean algebraperform operation with boolean algebra
perform operation with boolean algebra
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.ppt6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.ppt
 
basic logic gate presentation date23.ppt
basic logic gate presentation date23.pptbasic logic gate presentation date23.ppt
basic logic gate presentation date23.ppt
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptx
 
AND, NAND, OR, NOR GATES
AND, NAND, OR, NOR GATESAND, NAND, OR, NOR GATES
AND, NAND, OR, NOR GATES
 
Digital electoronics ppt
Digital electoronics pptDigital electoronics ppt
Digital electoronics ppt
 
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdfM. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
 

Recently uploaded

Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Recently uploaded (20)

Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

Logic gates

  • 1. CH= 02 LOGIC GATES By: Saeed Ullah Jan (PhD – Scholar University of Malakand) Lecturer in Computer Science Govt Degree College Wari (Dir Upper) Email: saeedullah@uom.edu.pk // saeedjan03@gmail.com Phone: 0944-840488 Course Title: Digital Logic & Computer Design Program: BS – Computer Science 3rd Semester 13-Nov-18
  • 2. Definition • Digital logic is the representation of electrical signals and sequences of digital circuit through numbers. • Signal or Input will be 0 or 1 • Inputs may be one, two or more • Implementation of Number Systems • Basic Concept • Logic Gates 13-Nov-18
  • 3. Logic Gates • A logic gate is an elementary building block of a digital circuit. • Most logic gates have two inputs and one output. • At any given moment, every terminal is in one of the two binary conditions low (0) or high (1), represented by different voltage levels. 13-Nov-18
  • 4. What are the basic digital logic gates ? • Digital systems are said to be constructed by using logic gates. • These gates are the AND, OR, NOT, NAND, NOR, XOR and XNOR gates. • The basic operations are described below with the help of truth tables. 13-Nov-18
  • 5. OR Gate: • The OR gate is an electronic circuit that gives a high output (1) if one or more of its inputs are high • An OR gate is a digital logic gate with two or more inputs and one output that performs logical operation. The output of an OR gate is true when one or more of its inputs are true • Truth Table Symbol OR 13-Nov-18 X Y Z 0 0 0 0 1 1 1 0 1 1 1 1 X Y Z Z = X | Y
  • 6. AND Gate: • The AND gate is an electronic circuit that gives a high output (1) only if all of its inputs are high • An AND gate is a digital logic gate with two or more inputs and one output that performs logical operation. The output of an AND gate is true when both or all of its inputs are true • Truth Table Symbol 13-Nov-18 X Y Z 0 0 0 0 1 0 1 0 0 1 1 1 AND Z = X & Y X Y Z
  • 7. NOT Gate: • The NOT gate is an electronic circuit that gives a high output (1) if input is low (0) and gives low (0) output if input is high (1). • It simply invert the input • Truth Table Symbol 13-Nov-18 X Y 0 1 1 0 X Y Y NOT X Y Y = ~X NOT
  • 8. NAND Gate: • A NAND gate is a logic gate which produces an output which is false only if all its inputs are true • Its output is complement of an AND gate • Truth Table Symbol 13-Nov-18 X Y Z 0 0 1 0 1 1 1 0 1 1 1 0 NAND X Y Z Z = ~(X & Y) nand(Z,X,Y)
  • 9. NOR Gate: • The NOR gate is a digital logic gate that produces logical high output if both the inputs to the gate are low • Its output is complement of an OR gate • Truth Table Symbol 13-Nov-18 X Y Z 0 0 1 0 1 0 1 0 0 1 1 0 X Y Z Z = ~(X | Y) nor(Z,X,Y)
  • 10. Exclusive-OR or XOR Gate: • The XOR gate is a digital logic gate that gives a true output when the number of true inputs is odd • When inputs are same the output low • When inputs are different the output high • Truth Table Symbol 13-Nov-18 X Y Z 0 0 0 0 1 1 1 0 1 1 1 0 XOR X Y Z Z = X ^ Y XOR(Z,X,Y)
  • 11. XNOR or Exclusive-NOR Gate: • The XNOR gate is a digital logic gate whose function is the logical complement of the exclusive OR gate • The output of an XNOR gate is true when all of its inputs are true or when all of its inputs are false. • Truth Table Symbol 13-Nov-18 X Y Z 0 0 1 0 1 0 1 0 0 1 1 1 XNOR X Y Z Z = ~(X ^ Y) Z = X ~^ Y XNOR(Z,X,Y)