SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Tendances (20)

Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
latches
 latches latches
latches
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Digital principles basic
Digital principles basicDigital principles basic
Digital principles basic
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Parity generator & checker
Parity generator & checkerParity generator & checker
Parity generator & checker
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Registers
RegistersRegisters
Registers
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
flip flop Presentation
flip flop  Presentationflip flop  Presentation
flip flop Presentation
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Interface
InterfaceInterface
Interface
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 

Similaire à Computer logic and gates

investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESLakhvinder Singh
 
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. Satya P. Joshi
 
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 CircuitsVanitha Chandru
 
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.pdfKINGZzofYouTube
 
LOGICAL_GATES_priyansh_singhal.pdf
LOGICAL_GATES_priyansh_singhal.pdfLOGICAL_GATES_priyansh_singhal.pdf
LOGICAL_GATES_priyansh_singhal.pdfMeghaChauhan75
 
Logic gates and Digital system.pptx
Logic gates and Digital system.pptxLogic gates and Digital system.pptx
Logic gates and Digital system.pptxAmiShete2
 
Nursing Infromatics.pptx
Nursing Infromatics.pptxNursing Infromatics.pptx
Nursing Infromatics.pptx8759000398
 
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.pptxOrlyLisondra1
 
LOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfLOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfMeghaChauhan75
 
Practical Uses of Logic Gates
Practical Uses of Logic GatesPractical Uses of Logic Gates
Practical Uses of Logic GatesAbiral Gautam
 
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
 

Similaire à 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
 

Plus de samina khan

UNDERSTANDING SELF AND OTHERS.pptx
UNDERSTANDING SELF AND OTHERS.pptxUNDERSTANDING SELF AND OTHERS.pptx
UNDERSTANDING SELF AND OTHERS.pptxsamina khan
 
INFORMATION TECHNOLOGY.pptx
INFORMATION TECHNOLOGY.pptxINFORMATION TECHNOLOGY.pptx
INFORMATION TECHNOLOGY.pptxsamina khan
 
scaffolding in teaching.pptx
scaffolding in teaching.pptxscaffolding in teaching.pptx
scaffolding in teaching.pptxsamina khan
 
REFLECTIVE TEACHING.pptx
REFLECTIVE TEACHING.pptxREFLECTIVE TEACHING.pptx
REFLECTIVE TEACHING.pptxsamina khan
 
PEDAGOGICAL SKILLS.pptx
PEDAGOGICAL SKILLS.pptxPEDAGOGICAL SKILLS.pptx
PEDAGOGICAL SKILLS.pptxsamina khan
 
What is an Autobiography?
 What is an Autobiography? What is an Autobiography?
What is an Autobiography?samina khan
 
Picture description
Picture descriptionPicture description
Picture descriptionsamina khan
 
The Internet and World Wide Web
The Internet and World Wide WebThe Internet and World Wide Web
The Internet and World Wide Websamina khan
 
Computer security & ethics
Computer security  & ethicsComputer security  & ethics
Computer security & ethicssamina khan
 
Computer networks
Computer networksComputer networks
Computer networkssamina khan
 
Classroom management
Classroom managementClassroom management
Classroom managementsamina khan
 
More on number system
More on number systemMore on number system
More on number systemsamina khan
 
Stress management
Stress managementStress management
Stress managementsamina khan
 
Classroom management
Classroom managementClassroom management
Classroom managementsamina khan
 
The future of technology
The future of technologyThe future of technology
The future of technologysamina khan
 
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 numberssamina khan
 
Computer networks grade 7
Computer networks grade 7Computer networks grade 7
Computer networks grade 7samina khan
 
Applications of computer
Applications of computerApplications of computer
Applications of computersamina khan
 
Data protection and security
Data protection and securityData protection and security
Data protection and securitysamina khan
 

Plus de 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
 

Dernier

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
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 FresherRemote DBA Services
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
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 FMESafe Software
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Dernier (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

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