SlideShare a Scribd company logo
1 of 45
COMPUTER LOGIC AND
GATES
Presenter: SAMINA KHAN
Fazaia Degree College Risalpur
DATA REPRESENTATION IN
COMPUTER
• Computer is an electronic machine
• It consists of millions of electronic
switches .
• If electronic switch is closed
electricity flows
• If electronic switch is open electricity
does not flows
DATA REPRESENTATION IN COMPUTER
• Switch has two states.
• when electronic switch is closed electricity
flows it is called 1 .
• when electronic switch is open electricity does
not flows it is called 0 .
• Therefore 0 and 1 are used in computer to
represent the two states of switch
How do computer represent data?
• Look at your keyboard
• It has many keys such as alphabet keys, number
keys and special keys.
• Whenever we type something using these keys,
computer represent that data in 1s and 0s
pattern.
How do computer represent data?
• These 1s and 0s are called bits.
• Bit is the abbreviation of binary digit.
• Humans understand words and pictures,
computer understand the binary pattern.
How the computer understand
the pattern of 1s and 0s?
• Computer detects the flow of current.
• 1 represents that the current flow in circuit
• 0 represent that the current is not flowing.
DIGITAL LOGIC & LOGIC
GATES
DIGITAL LOGIC
• It is fundamental in creating electronic devices
such as calculator, computer, digital watches
etc
• DIGITAL logic is used to create digital circuits
which consists of large number of logic gates
LOGIC GATES
• Logic gates are building blocks of digital
circuits used in computer and many other
devices .
• They have two or more inputs (high or low)
and produce a single output (high or low).
TRUTH TABLE
• The truth table represents a digital logic circuit
in table form.
• It shows how a logic circuit’s output responds
to all the possible combinations of the inputs
using logic “1” for True and logic “0” for False.
BASIC LOGIC GATES
• There are three basic logic gates:
• AND GATE
• OR GATE
• NOT GATE
AND GATE
• The AND gate has two or more inputs that can
be low (0) or high (1).
• The output is high when all the inputs are high.
• It produces low output only when at least one
of the inputs are low .
TRUTH TABLE FOR AND GATE
• The truth table for AND gate for two variables.
OR GATE
• An OR gate is a logic gate that performs logical
OR operation.
• A logical OR operation has a high output (1) if
one or both the inputs to the gate are high (1).
• If neither input is high, a low output (0)
results.
TRUTH TABLE FOR OR GATE
• The truth table of a 2 input OR gate can be
represented as:
NOT GATE
• Logic NOT gates provide the complement of
their input signal.
• When their input signal is “HIGH” their
output state will NOT be “HIGH”.
• When their input signal is “LOW” their output
state will NOT be “LOW”.
TRUTH TABLE FOR NOT GATE
• The truth table for NOT gate .
• The “bubble” (o) present at the end of
the NOT gate symbol above denotes a signal
inversion (complementation) of the output
signal.
1 0
0 1
NAND GATE
• The NAND gate is a combination of an
AND gate and NOT gate.
• It produces low output only when all inputs
are high .
TRUTH TABLE FOR NAND GATE
• The truth table for NAND gate for two
variables.
X Y AND
(A.B)
NAND
(A.B)
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
NOR GATE
• The NOR gate combines the OR gate and NOT
gate.
• It is the result of the negation of the OR
operator.
• It produces low output only when any input is
high .
• A HIGH output (1) results if both the inputs to
the gate are LOW (0).
TRUTH TABLE FOR NOR GATE
• The truth table for NOR gate for two variables.
• The bubble indicates that the function of the
or gate has been inverted.
CREATING NAND AND NOR GATE
USING BASIC GATES
Creating NAND gate using AND
and NOT gates
• The NAND gate can be easily created by using
an AND gate and NOT gate.
• It is also called Negated And gate.
Creating NOR gate using OR and
NOT gates
• The NOR gate can be created by using OR and
NOT gate.
Exclusive OR GATE(XOR gate)
• An XOR gate implements an exclusive or; that
is, a true output results if one, and only one,
of the inputs to the gate is true. If both inputs
are false or both are true, a false output
results.
Exclusive OR GATE(XOR gate)
• It is a type of logic gate use to perform a
Boolean expression: F= X.Y+X.Y
• To perform this Boolean function we need
three different logic gates.
oNOT gate (to find NOT of X & Y)
oAND gate (to find X.Y & X.Y)
oOR gate ( to perform addition operation
X.Y+X.Y
TRUTH TABLE FOR Exclusive OR
GATE(XOR gate)
X Y
0 0
0 1
1 0
1 1
X Y
1 1
1 0
0 1
0 0
XY
0
1
0
0
XY
0
0
1
0
F= X.Y+X.Y
F
0
1
1
0
SYMBOL FOR Exclusive OR
GATE(XOR gate)
HOW Exclusive OR GATE WORK?
Exclusive NOR GATE(XNOR gate)
• The XNOR gate is the complement of the XOR
gate
TRUTH TABLE FOR Exclusive NOR
GATE(XNOR gate)
X Y
0 0
0 1
1 0
1 1
F= X.Y+X.Y
XNOR
1
0
0
1
XOR
0
1
1
0
SYMBOL FOR Exclusive NOR
GATE(XNOR gate)
References
• https://www.electronics-tutorials.ws/logic/logic_4.html
• https://www.vivaxsolutions.com/physics/allogicgates.aspx
• https://www.tutorialspoint.com/computer_logical_organization/logic_gates.htm
• https://techterms.com/definition/logicgate
• https://whatis.techtarget.com/definition/logic-gate-AND-OR-XOR-NOT-NAND-NOR-and-
XNOR
Computer logic and gates

More Related Content

What's hot

What's hot (20)

Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Binary to Decimal Conversion
Binary to Decimal ConversionBinary to Decimal Conversion
Binary to Decimal Conversion
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Logic gate
Logic gateLogic gate
Logic gate
 
Binary codes
Binary codesBinary codes
Binary codes
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuits
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Lec 2 digital electronics - random access memory
Lec 2  digital electronics - random access memoryLec 2  digital electronics - random access memory
Lec 2 digital electronics - random access memory
 
Logic gates ppt
Logic gates pptLogic gates ppt
Logic gates ppt
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
 
Signed Binary Numbers
Signed Binary NumbersSigned Binary Numbers
Signed Binary Numbers
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Program execution, straight line sequence and branching
Program execution, straight line sequence and branchingProgram execution, straight line sequence and branching
Program execution, straight line sequence and branching
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Lecture 01 dld 2018
Lecture 01 dld  2018Lecture 01 dld  2018
Lecture 01 dld 2018
 

Similar to Computer logic and gates

LOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfLOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdf
MeghaChauhan75
 

Similar to Computer logic and gates (20)

investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATES
 
logic gates
logic gates logic 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
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdf
 
LOGICAL_GATES_priyansh_singhal.pdf
LOGICAL_GATES_priyansh_singhal.pdfLOGICAL_GATES_priyansh_singhal.pdf
LOGICAL_GATES_priyansh_singhal.pdf
 
Logic gates and Digital system.pptx
Logic gates and Digital system.pptxLogic gates and Digital system.pptx
Logic gates and Digital system.pptx
 
Nursing Infromatics.pptx
Nursing Infromatics.pptxNursing Infromatics.pptx
Nursing Infromatics.pptx
 
Logic circuits and design PART 3.pptx
Logic circuits and  design PART 3.pptxLogic circuits and  design PART 3.pptx
Logic circuits and design PART 3.pptx
 
Logic gates
Logic gatesLogic gates
Logic gates
 
LOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfLOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdf
 
Computer architecture 1
Computer architecture  1Computer architecture  1
Computer architecture 1
 
Practical Uses of Logic Gates
Practical Uses of Logic GatesPractical Uses of Logic Gates
Practical Uses of Logic Gates
 
Logic gates and Boolean.pdf
Logic gates and Boolean.pdfLogic gates and Boolean.pdf
Logic gates and Boolean.pdf
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Electronics: Logic Gates
Electronics: Logic GatesElectronics: Logic Gates
Electronics: 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.pptx
 

More from samina khan

More from samina khan (20)

UNDERSTANDING SELF AND OTHERS.pptx
UNDERSTANDING SELF AND OTHERS.pptxUNDERSTANDING SELF AND OTHERS.pptx
UNDERSTANDING SELF AND OTHERS.pptx
 
INFORMATION TECHNOLOGY.pptx
INFORMATION TECHNOLOGY.pptxINFORMATION TECHNOLOGY.pptx
INFORMATION TECHNOLOGY.pptx
 
scaffolding in teaching.pptx
scaffolding in teaching.pptxscaffolding in teaching.pptx
scaffolding in teaching.pptx
 
REFLECTIVE TEACHING.pptx
REFLECTIVE TEACHING.pptxREFLECTIVE TEACHING.pptx
REFLECTIVE TEACHING.pptx
 
PEDAGOGICAL SKILLS.pptx
PEDAGOGICAL SKILLS.pptxPEDAGOGICAL SKILLS.pptx
PEDAGOGICAL SKILLS.pptx
 
What is an Autobiography?
 What is an Autobiography? What is an Autobiography?
What is an Autobiography?
 
Picture description
Picture descriptionPicture description
Picture description
 
The Internet and World Wide Web
The Internet and World Wide WebThe Internet and World Wide Web
The Internet and World Wide Web
 
Computer security & ethics
Computer security  & ethicsComputer security  & ethics
Computer security & ethics
 
Problem solving
Problem solvingProblem solving
Problem solving
 
Computer networks
Computer networksComputer networks
Computer networks
 
Classroom management
Classroom managementClassroom management
Classroom management
 
More on number system
More on number systemMore on number system
More on number system
 
Stress management
Stress managementStress management
Stress management
 
Classroom management
Classroom managementClassroom management
Classroom management
 
The future of technology
The future of technologyThe future of technology
The future of technology
 
Lesson plan:Multiplication and division of binary numbers
Lesson plan:Multiplication and division of binary numbersLesson plan:Multiplication and division of binary numbers
Lesson plan:Multiplication and division of binary numbers
 
Computer networks grade 7
Computer networks grade 7Computer networks grade 7
Computer networks grade 7
 
Applications of computer
Applications of computerApplications of computer
Applications of computer
 
Data protection and security
Data protection and securityData protection and security
Data protection and security
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Computer logic and gates

  • 1.
  • 2. COMPUTER LOGIC AND GATES Presenter: SAMINA KHAN Fazaia Degree College Risalpur
  • 3. DATA REPRESENTATION IN COMPUTER • Computer is an electronic machine • It consists of millions of electronic switches . • If electronic switch is closed electricity flows • If electronic switch is open electricity does not flows
  • 4. DATA REPRESENTATION IN COMPUTER • Switch has two states. • when electronic switch is closed electricity flows it is called 1 . • when electronic switch is open electricity does not flows it is called 0 . • Therefore 0 and 1 are used in computer to represent the two states of switch
  • 5.
  • 6. How do computer represent data? • Look at your keyboard • It has many keys such as alphabet keys, number keys and special keys. • Whenever we type something using these keys, computer represent that data in 1s and 0s pattern.
  • 7.
  • 8. How do computer represent data? • These 1s and 0s are called bits. • Bit is the abbreviation of binary digit. • Humans understand words and pictures, computer understand the binary pattern.
  • 9. How the computer understand the pattern of 1s and 0s?
  • 10. • Computer detects the flow of current. • 1 represents that the current flow in circuit • 0 represent that the current is not flowing.
  • 11.
  • 12. DIGITAL LOGIC & LOGIC GATES
  • 13. DIGITAL LOGIC • It is fundamental in creating electronic devices such as calculator, computer, digital watches etc • DIGITAL logic is used to create digital circuits which consists of large number of logic gates
  • 14. LOGIC GATES • Logic gates are building blocks of digital circuits used in computer and many other devices . • They have two or more inputs (high or low) and produce a single output (high or low).
  • 15. TRUTH TABLE • The truth table represents a digital logic circuit in table form. • It shows how a logic circuit’s output responds to all the possible combinations of the inputs using logic “1” for True and logic “0” for False.
  • 16. BASIC LOGIC GATES • There are three basic logic gates: • AND GATE • OR GATE • NOT GATE
  • 17. AND GATE • The AND gate has two or more inputs that can be low (0) or high (1). • The output is high when all the inputs are high. • It produces low output only when at least one of the inputs are low .
  • 18. TRUTH TABLE FOR AND GATE • The truth table for AND gate for two variables.
  • 19.
  • 20. OR GATE • An OR gate is a logic gate that performs logical OR operation. • A logical OR operation has a high output (1) if one or both the inputs to the gate are high (1). • If neither input is high, a low output (0) results.
  • 21. TRUTH TABLE FOR OR GATE • The truth table of a 2 input OR gate can be represented as:
  • 22.
  • 23. NOT GATE • Logic NOT gates provide the complement of their input signal. • When their input signal is “HIGH” their output state will NOT be “HIGH”. • When their input signal is “LOW” their output state will NOT be “LOW”.
  • 24. TRUTH TABLE FOR NOT GATE • The truth table for NOT gate . • The “bubble” (o) present at the end of the NOT gate symbol above denotes a signal inversion (complementation) of the output signal. 1 0 0 1
  • 25.
  • 26. NAND GATE • The NAND gate is a combination of an AND gate and NOT gate. • It produces low output only when all inputs are high .
  • 27. TRUTH TABLE FOR NAND GATE • The truth table for NAND gate for two variables. X Y AND (A.B) NAND (A.B) 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0
  • 28.
  • 29. NOR GATE • The NOR gate combines the OR gate and NOT gate. • It is the result of the negation of the OR operator. • It produces low output only when any input is high . • A HIGH output (1) results if both the inputs to the gate are LOW (0).
  • 30. TRUTH TABLE FOR NOR GATE • The truth table for NOR gate for two variables. • The bubble indicates that the function of the or gate has been inverted.
  • 31.
  • 32.
  • 33. CREATING NAND AND NOR GATE USING BASIC GATES
  • 34. Creating NAND gate using AND and NOT gates • The NAND gate can be easily created by using an AND gate and NOT gate. • It is also called Negated And gate.
  • 35. Creating NOR gate using OR and NOT gates • The NOR gate can be created by using OR and NOT gate.
  • 36. Exclusive OR GATE(XOR gate) • An XOR gate implements an exclusive or; that is, a true output results if one, and only one, of the inputs to the gate is true. If both inputs are false or both are true, a false output results.
  • 37. Exclusive OR GATE(XOR gate) • It is a type of logic gate use to perform a Boolean expression: F= X.Y+X.Y • To perform this Boolean function we need three different logic gates. oNOT gate (to find NOT of X & Y) oAND gate (to find X.Y & X.Y) oOR gate ( to perform addition operation X.Y+X.Y
  • 38. TRUTH TABLE FOR Exclusive OR GATE(XOR gate) X Y 0 0 0 1 1 0 1 1 X Y 1 1 1 0 0 1 0 0 XY 0 1 0 0 XY 0 0 1 0 F= X.Y+X.Y F 0 1 1 0
  • 39. SYMBOL FOR Exclusive OR GATE(XOR gate)
  • 40. HOW Exclusive OR GATE WORK?
  • 41. Exclusive NOR GATE(XNOR gate) • The XNOR gate is the complement of the XOR gate
  • 42. TRUTH TABLE FOR Exclusive NOR GATE(XNOR gate) X Y 0 0 0 1 1 0 1 1 F= X.Y+X.Y XNOR 1 0 0 1 XOR 0 1 1 0
  • 43. SYMBOL FOR Exclusive NOR GATE(XNOR gate)
  • 44. References • https://www.electronics-tutorials.ws/logic/logic_4.html • https://www.vivaxsolutions.com/physics/allogicgates.aspx • https://www.tutorialspoint.com/computer_logical_organization/logic_gates.htm • https://techterms.com/definition/logicgate • https://whatis.techtarget.com/definition/logic-gate-AND-OR-XOR-NOT-NAND-NOR-and- XNOR