SlideShare a Scribd company logo
1 of 13
NAND and NOR Gates
Term 2 Week 5
ABZ Private School
Lesson Objective
Discover NAND and NOR’s logic gates, including their symbols and
truth tables.
Describe how logic gates are used in carrying out computation.
Design a logical circuit, combining logic gates to solve a problem.
Combine gates.
⚫ Gates can be combined.
⚫ The output of one gate can become the input of another.
⚫ Try to determine the logic table for this circuit.
What happens when you add a
NOT to an AND gate?
A B Q
0 0 0
Not 0 1 0
1 0 0
1 1 1
A B Q
0 0 1
0 1 1
1 0 1
1 1 0
Can you make an AND gate from
an NAND?
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
NOR Gate
⚫ NOR gates are true if either input is true but not
both.
“Exclusive” gates
⚫ Exclusively OR gate are true if either input is true but
not both.
A B Q
0 0 0
0 1 1
1 0 1
1 1 0
Truth Tables
xy = x AND y = x * y
AND is true only if
both inputs are true
x + y = x OR y
OR is true if either
inputs are true
x bar = NOT x
NOT inverts the bit
We will denote x bar as ~X
NOR is NOT of OR NAND is NOT of AND XOR is true if both inputs
differ
Logic Gates
Here we see the logic gates
that represent the boolean
operations previously
discussed
XOR looks like OR
but with the added
curved line
We typically represent NOR and NAND by the two
on the left, but the two on the right are also correct
How do we use gates to add two
binary numbers?
⚫ Binary numbers are either 1 or 0, either on or off.
⚫ Have two outputs.
⚫ Need a gate to produce each output.
0 0 1 1
+ 0 + 1 + 0 + 1
00 01 01 10
A B Q CO
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
An Example: Half Adder
• There are 4 possibilities
when adding 2 bits
together:
0 + 0 0 + 1 1 + 0 1 + 1
• In the first case, we have a sum
of 0 and a carry of 0
• In the second and third cases,
we have a sum of 1 and a carry
of 0
• In the last case, we have a sum
of 0 and a carry of 1
• These patterns are
demonstrated in the truth table
above to the right
• Notice that sum computes
the same as XOR and carry
computes the same as AND
• We build an Adder using just
one XOR and one AND gate
The truth table for Sum and Carry
and a circuit to compute these
Full Adder
⚫ The half adder really only does half the work
◦ adds 2 bits, but only 2 bits
⚫ If we want to add 2 n-bit
numbers, we need to also
include the carry in from the
previous half adder
◦ So, our circuit becomes more
complicated
⚫ In adding 3 bits (one bit from
x, one bit from y, and the
carry in from the previous
addition), we have 8
possibilities
◦ The sum will either be 0 or 1 and the
carry out will either be 0 or 1
◦ The truth table is given to the right
Building a Full Adder Circuit
⚫ The sum is 1 only if one of x, y
and carry in are 1, or if all three
are 1, the sum is 0 otherwise
⚫ The carry out is 1 if two or three
of x, y and carry in were 1, 0
otherwise
◦ The circuit to the right captures this
by using 2 XOR gates for Sum and 2
AND gates and an OR gate for Carry
Out

More Related Content

Similar to LOGIC GATES WEEK 5.pptx

Logic gates and Digital system.pptx
Logic gates and Digital system.pptxLogic gates and Digital system.pptx
Logic gates and Digital system.pptxAmiShete2
 
Simplification of Circuits.pdf
Simplification of Circuits.pdfSimplification of Circuits.pdf
Simplification of Circuits.pdfMaryJacob24
 
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
 
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
 
UNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxUNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxGaganaP13
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gatessamina khan
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptxAravindaAKumar1
 
logic gate presentation for and or n.ppt
logic gate presentation for and or n.pptlogic gate presentation for and or n.ppt
logic gate presentation for and or n.pptnaghamallella
 
Computer and network technology (CNT) lecture 03
Computer and network technology (CNT)   lecture 03Computer and network technology (CNT)   lecture 03
Computer and network technology (CNT) lecture 03Susantha Herath
 
Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.JavierDeJesusCamacho1
 
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...ARVIND PANDE
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxChristianVelchez2
 

Similar to LOGIC GATES WEEK 5.pptx (20)

Logic gates
Logic gatesLogic gates
Logic gates
 
LOGIC CKT.ppt
LOGIC CKT.pptLOGIC CKT.ppt
LOGIC CKT.ppt
 
Logic gates and Digital system.pptx
Logic gates and Digital system.pptxLogic gates and Digital system.pptx
Logic gates and Digital system.pptx
 
Cit 1101 lec 03
Cit 1101 lec 03Cit 1101 lec 03
Cit 1101 lec 03
 
Simplification of Circuits.pdf
Simplification of Circuits.pdfSimplification of Circuits.pdf
Simplification of Circuits.pdf
 
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 - 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.
 
UNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxUNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptx
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gates
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
Logic gates
Logic gatesLogic gates
Logic gates
 
logic gate presentation for and or n.ppt
logic gate presentation for and or n.pptlogic gate presentation for and or n.ppt
logic gate presentation for and or n.ppt
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Computer and network technology (CNT) lecture 03
Computer and network technology (CNT)   lecture 03Computer and network technology (CNT)   lecture 03
Computer and network technology (CNT) lecture 03
 
12733771.ppt
12733771.ppt12733771.ppt
12733771.ppt
 
DE notes
DE notesDE notes
DE notes
 
Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.
 
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptx
 

More from AllanGuevarra1

GRADE 5 TINKERCAD powepoint presentation
GRADE 5 TINKERCAD powepoint presentationGRADE 5 TINKERCAD powepoint presentation
GRADE 5 TINKERCAD powepoint presentationAllanGuevarra1
 
BEHAVIOURpolicydffdsfsfdsfdfdsffsafsafdfsfdsfdsafdsfdfdsfdsafdsf
BEHAVIOURpolicydffdsfsfdsfdfdsffsafsafdfsfdsfdsafdsfdfdsfdsafdsfBEHAVIOURpolicydffdsfsfdsfdfdsffsafsafdfsfdsfdsafdsfdfdsfdsafdsf
BEHAVIOURpolicydffdsfsfdsfdfdsffsafsafdfsfdsfdsafdsfdfdsfdsafdsfAllanGuevarra1
 
US-Sc-367-Bean-Life-Cycle-PowerPoint_ver_4.pptx
US-Sc-367-Bean-Life-Cycle-PowerPoint_ver_4.pptxUS-Sc-367-Bean-Life-Cycle-PowerPoint_ver_4.pptx
US-Sc-367-Bean-Life-Cycle-PowerPoint_ver_4.pptxAllanGuevarra1
 
3 Formulas, Ranges, Functions.ppt
3 Formulas, Ranges, Functions.ppt3 Formulas, Ranges, Functions.ppt
3 Formulas, Ranges, Functions.pptAllanGuevarra1
 
PD Educational Technology.pptx
PD Educational Technology.pptxPD Educational Technology.pptx
PD Educational Technology.pptxAllanGuevarra1
 
Lesson Presentation - Technology in School.pptx
Lesson Presentation - Technology in School.pptxLesson Presentation - Technology in School.pptx
Lesson Presentation - Technology in School.pptxAllanGuevarra1
 
Introduction to ICT.pptx
Introduction to ICT.pptxIntroduction to ICT.pptx
Introduction to ICT.pptxAllanGuevarra1
 
PARTS OF MS PAINT.pptx
PARTS OF MS PAINT.pptxPARTS OF MS PAINT.pptx
PARTS OF MS PAINT.pptxAllanGuevarra1
 
Lesson Presentation Powerful Passwords.pptx
Lesson Presentation Powerful Passwords.pptxLesson Presentation Powerful Passwords.pptx
Lesson Presentation Powerful Passwords.pptxAllanGuevarra1
 
YEAR 8 ICT WEEK 1 CREATING TABLES.pptx
YEAR 8 ICT WEEK 1 CREATING TABLES.pptxYEAR 8 ICT WEEK 1 CREATING TABLES.pptx
YEAR 8 ICT WEEK 1 CREATING TABLES.pptxAllanGuevarra1
 
T 1 MT assignment project-Gr1.pptx
T 1 MT assignment project-Gr1.pptxT 1 MT assignment project-Gr1.pptx
T 1 MT assignment project-Gr1.pptxAllanGuevarra1
 
GRADE 6 ALGORITHM.pptx
GRADE 6 ALGORITHM.pptxGRADE 6 ALGORITHM.pptx
GRADE 6 ALGORITHM.pptxAllanGuevarra1
 

More from AllanGuevarra1 (20)

GRADE 5 TINKERCAD powepoint presentation
GRADE 5 TINKERCAD powepoint presentationGRADE 5 TINKERCAD powepoint presentation
GRADE 5 TINKERCAD powepoint presentation
 
BEHAVIOURpolicydffdsfsfdsfdfdsffsafsafdfsfdsfdsafdsfdfdsfdsafdsf
BEHAVIOURpolicydffdsfsfdsfdfdsffsafsafdfsfdsfdsafdsfdfdsfdsafdsfBEHAVIOURpolicydffdsfsfdsfdfdsffsafsafdfsfdsfdsafdsfdfdsfdsafdsf
BEHAVIOURpolicydffdsfsfdsfdfdsffsafsafdfsfdsfdsafdsfdfdsfdsafdsf
 
US-Sc-367-Bean-Life-Cycle-PowerPoint_ver_4.pptx
US-Sc-367-Bean-Life-Cycle-PowerPoint_ver_4.pptxUS-Sc-367-Bean-Life-Cycle-PowerPoint_ver_4.pptx
US-Sc-367-Bean-Life-Cycle-PowerPoint_ver_4.pptx
 
3 Formulas, Ranges, Functions.ppt
3 Formulas, Ranges, Functions.ppt3 Formulas, Ranges, Functions.ppt
3 Formulas, Ranges, Functions.ppt
 
PD Educational Technology.pptx
PD Educational Technology.pptxPD Educational Technology.pptx
PD Educational Technology.pptx
 
Lesson Presentation - Technology in School.pptx
Lesson Presentation - Technology in School.pptxLesson Presentation - Technology in School.pptx
Lesson Presentation - Technology in School.pptx
 
Introduction to ICT.pptx
Introduction to ICT.pptxIntroduction to ICT.pptx
Introduction to ICT.pptx
 
PARTS OF MS PAINT.pptx
PARTS OF MS PAINT.pptxPARTS OF MS PAINT.pptx
PARTS OF MS PAINT.pptx
 
Lesson Presentation Powerful Passwords.pptx
Lesson Presentation Powerful Passwords.pptxLesson Presentation Powerful Passwords.pptx
Lesson Presentation Powerful Passwords.pptx
 
Py-Slides-2.ppt
Py-Slides-2.pptPy-Slides-2.ppt
Py-Slides-2.ppt
 
ROBOTICS EV3.ppt
ROBOTICS EV3.pptROBOTICS EV3.ppt
ROBOTICS EV3.ppt
 
ME Grade 8.pptx
ME Grade 8.pptxME Grade 8.pptx
ME Grade 8.pptx
 
YEAR 8 ICT WEEK 1 CREATING TABLES.pptx
YEAR 8 ICT WEEK 1 CREATING TABLES.pptxYEAR 8 ICT WEEK 1 CREATING TABLES.pptx
YEAR 8 ICT WEEK 1 CREATING TABLES.pptx
 
Project Grdae 8.pptx
Project Grdae 8.pptxProject Grdae 8.pptx
Project Grdae 8.pptx
 
counting 5s activity
counting 5s activitycounting 5s activity
counting 5s activity
 
GRADE 6-8.pptx
GRADE 6-8.pptxGRADE 6-8.pptx
GRADE 6-8.pptx
 
GRADE 1-5.ppt
GRADE 1-5.pptGRADE 1-5.ppt
GRADE 1-5.ppt
 
T 1 MT assignment project-Gr1.pptx
T 1 MT assignment project-Gr1.pptxT 1 MT assignment project-Gr1.pptx
T 1 MT assignment project-Gr1.pptx
 
GRADE 6 WEEK 7.pptx
GRADE 6 WEEK 7.pptxGRADE 6 WEEK 7.pptx
GRADE 6 WEEK 7.pptx
 
GRADE 6 ALGORITHM.pptx
GRADE 6 ALGORITHM.pptxGRADE 6 ALGORITHM.pptx
GRADE 6 ALGORITHM.pptx
 

Recently uploaded

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
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
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 

Recently uploaded (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 

LOGIC GATES WEEK 5.pptx

  • 1. NAND and NOR Gates Term 2 Week 5 ABZ Private School
  • 2. Lesson Objective Discover NAND and NOR’s logic gates, including their symbols and truth tables. Describe how logic gates are used in carrying out computation. Design a logical circuit, combining logic gates to solve a problem.
  • 3. Combine gates. ⚫ Gates can be combined. ⚫ The output of one gate can become the input of another. ⚫ Try to determine the logic table for this circuit.
  • 4. What happens when you add a NOT to an AND gate? A B Q 0 0 0 Not 0 1 0 1 0 0 1 1 1 A B Q 0 0 1 0 1 1 1 0 1 1 1 0
  • 5. Can you make an AND gate from an NAND? A B Q 0 0 0 0 1 0 1 0 0 1 1 1
  • 6. NOR Gate ⚫ NOR gates are true if either input is true but not both.
  • 7. “Exclusive” gates ⚫ Exclusively OR gate are true if either input is true but not both. A B Q 0 0 0 0 1 1 1 0 1 1 1 0
  • 8. Truth Tables xy = x AND y = x * y AND is true only if both inputs are true x + y = x OR y OR is true if either inputs are true x bar = NOT x NOT inverts the bit We will denote x bar as ~X NOR is NOT of OR NAND is NOT of AND XOR is true if both inputs differ
  • 9. Logic Gates Here we see the logic gates that represent the boolean operations previously discussed XOR looks like OR but with the added curved line We typically represent NOR and NAND by the two on the left, but the two on the right are also correct
  • 10. How do we use gates to add two binary numbers? ⚫ Binary numbers are either 1 or 0, either on or off. ⚫ Have two outputs. ⚫ Need a gate to produce each output. 0 0 1 1 + 0 + 1 + 0 + 1 00 01 01 10 A B Q CO 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1
  • 11. An Example: Half Adder • There are 4 possibilities when adding 2 bits together: 0 + 0 0 + 1 1 + 0 1 + 1 • In the first case, we have a sum of 0 and a carry of 0 • In the second and third cases, we have a sum of 1 and a carry of 0 • In the last case, we have a sum of 0 and a carry of 1 • These patterns are demonstrated in the truth table above to the right • Notice that sum computes the same as XOR and carry computes the same as AND • We build an Adder using just one XOR and one AND gate The truth table for Sum and Carry and a circuit to compute these
  • 12. Full Adder ⚫ The half adder really only does half the work ◦ adds 2 bits, but only 2 bits ⚫ If we want to add 2 n-bit numbers, we need to also include the carry in from the previous half adder ◦ So, our circuit becomes more complicated ⚫ In adding 3 bits (one bit from x, one bit from y, and the carry in from the previous addition), we have 8 possibilities ◦ The sum will either be 0 or 1 and the carry out will either be 0 or 1 ◦ The truth table is given to the right
  • 13. Building a Full Adder Circuit ⚫ The sum is 1 only if one of x, y and carry in are 1, or if all three are 1, the sum is 0 otherwise ⚫ The carry out is 1 if two or three of x, y and carry in were 1, 0 otherwise ◦ The circuit to the right captures this by using 2 XOR gates for Sum and 2 AND gates and an OR gate for Carry Out