SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

basic logic gates
 basic logic gates basic logic gates
basic logic gatesvishal gupta
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnan J
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE Tamim Tanvir
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & DecoderSyed Saeed
 
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)ISMT College
 
Registers
RegistersRegisters
RegistersGaditek
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplificationUnsa Shakir
 
Logic microoperations
Logic microoperationsLogic microoperations
Logic microoperationsNitesh Singh
 
Comparators in DLD.
Comparators in DLD.Comparators in DLD.
Comparators in DLD.Zain Jafri
 
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
 

Was ist angesagt? (20)

basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Registers
RegistersRegisters
Registers
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Counters
CountersCounters
Counters
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
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)
 
Registers
RegistersRegisters
Registers
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
Logic microoperations
Logic microoperationsLogic microoperations
Logic microoperations
 
Boolean algebra & logic gates
Boolean algebra & logic gatesBoolean algebra & logic gates
Boolean algebra & logic gates
 
1s and 2s complement
1s and 2s complement1s and 2s complement
1s and 2s complement
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Comparators in DLD.
Comparators in DLD.Comparators in DLD.
Comparators in DLD.
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
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
 

Ähnlich wie 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
 
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
 
Basic Gates in Digital Logic
Basic Gates in Digital LogicBasic Gates in Digital Logic
Basic Gates in Digital LogicISMT College
 

Ähnlich wie 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
 
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
 
Basic Gates in Digital Logic
Basic Gates in Digital LogicBasic Gates in Digital Logic
Basic Gates in Digital Logic
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
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 TerraformAndrey Devyatkin
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
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
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
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
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
🐬 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
 

Kürzlich hochgeladen (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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)
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
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
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
+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...
 

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