SlideShare a Scribd company logo
1 of 11
Online Teaching Course Content
An Understanding approach to Basic Logic Gates
Course Teacher: Raja Inayatullah Khan,
Assistant Professor
Department of Physics
University of Peshawar
Pakistan
Email: rajainayat@up.edu.pk
YouTube: https://www.youtube.com/channel/UCG6jrNibuOoo0N7TRW9WiXA/
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Understanding some basic terminologies
used in Basic Logic Gates
Logic:
Logic is defined as the science of reasoning. It describes what statement follows from
other statements. In logic all the statements are either True or False , there is no
room for may might be perhaps.
Therefore to express “ true or false” condition we need only two variables or
symbols. Hence the binary number system in which only two numbers allowed “0”
or “1”is suitable for dealing with logical statements.
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Logic Gate
 An electronic circuit which performs logical operations such as OR (+), AND (.) and
NOT (-) called logical operators , is called a logic gate or a logic circuit. A logic
network is a collection of Logic gates interconnected in such a way that they
perform specified switching functions (on/off, high/low, True/False) and is also
known as Switching Network.
 A basic Logic gate Like (OR, AND) has two or more inputs and one out put while
for NOT- Logic Gate has One input and one output.
 Logic Circuits are classified in to two classes:
 1. Combinational Logic Circuits (CLC) & 2. Sequential Logic Circuit
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
1. Combinational Logic Circuits (CLC) &
2. Sequential Logic Circuits (SLC)
 1. Combinational Logic Circuits (CLC):
A CLC is one whose output at any instant of time is a function of its inputs at that instant of
time only. E.g. OR , AND, NOT etc.
 2. Sequential Logic Circuits (SLC):
A SLC is one whose output at any instant of time is a function of not only its inputs at that instant of tim
but also of the past inputs which have removed. A SLC consists of CLC and memory which stores the inpu
DATA.
E.g. counters etc.
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Boolean Algebra (Algebra of Logic):
It is an algebra where the variables are constrained (restricted) to have only two possible states or
values of “ON or OFF”, “ True or False”. The variables are bivalued by “0 & 1”.
Truth Table:
The table which shows all inputs & output possibilities for a logic circuit. It is also known as the
tables of combination of independent variables and dependent variables i.e. input to output.
Logic equation:
It gives a relationship between input and output variables.
Raja Inayatullah Khan, Department of Physics, University of Peshawar, PAKISTAN Email:rajainayat@up.edu.pk
Dated: May 6, 2020
Logic OR – Gate: (Logical Statement Example)
It has two or more logic input & single out put. Its output is “ 1” if one are more ore all
inputs are assumed to be “1”.
Example of a Logical Statement:
“The train will be stopped only when Station arrives OR emergency Chain is pulled.”
A + B= X
Were A and B are two inputs for two conditions of Station and Emergency Chain and X is
an output for the Train Stopped or Not. Symbolically it is given as :
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Let us say for input variables “ A & B” are
Station not arrived ---- A=0 False
Station arrived ---- A=1 True ( As defined in the Statement)
And
Emergency chain is not pulled--- B=0 False
Emergency Chain is pulled ------B=1 True (As defined in the Statement)
While the output variable “ X”
Train no stopped -------- X=0 False
Train stopped --------- X=1 True (As defined in the Statement)
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Station not arrived-(0)
Station arrived-----(1)
A
Emergency Chain
not pulled--- (0)
Emergency chain
pulled---- (1) B
Train Not Stopped
(0)
Train Stopped--(1) X
Station not arrived 0 Emergency Chain
not pulled
0 Train Not Stopped 0
Station not arrived 0 Emergency Chain
pulled
1 Train Not Stopped 0
Station arrived 1 Emergency Chain
not pulled
0 Train Not Stopped 0
Station arrived 1 Emergency Chain
pulled
1 Train Stopped 1
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Truth Table – OR-Gate
INPUTS OUTPUT
Logic AND – Gate: (Logical Statement Example)
It has two or more logic input & single out put. Its output is “ 1” if all of its inputs are assumed
to be “1”.
Example of a Logical Statement:
“I will go to Islamabad if my “Friend goes” with me AND tomorrow’s
“Test gets postponed.”
A . B= X
Were A and B are two inputs for two conditions “Friend goes=1” and “Test gets postponed=1”
and X is an output for Go to Islamabad=1. Symbolically it is given as :
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Let us say for input variables “ A & B” are
Friend does not go -------- ---- A=0 False
Friend goes --------------------- A=1 True ( As defined in the Statement)
And
Test not postponed --------- -- B=0 False
Test postponed------------ ------B=1 True (As defined in the Statement)
While the output variable “ X”
Not Going to Islamabad-------- X=0 False
Going to Islamabad --------- X=1 True (As defined in the Statement)
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Friend does not go -- (0)
Friend goes -----(1) A Test not postponed- (0)
Test postponed --- (1) B Train Not
Stopped= (0)
Train
Stopped=(1)
X
Friend does not go 0 Test not postponed 0 Not going to
Islamabad
0
Friend does not go 0 Test postponed 1 Not going to
Islamabad
0
Friend goes 1 Test not postponed 0 Not going to
Islamabad
0
Friend goes 1 Test postponed 1 Going to
Islamabad
1
Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
Truth Table AND -Gate
INPUTS OUTPUT

More Related Content

Recently uploaded

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 

Recently uploaded (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Logic gates - An understanding approach

  • 1. Online Teaching Course Content An Understanding approach to Basic Logic Gates Course Teacher: Raja Inayatullah Khan, Assistant Professor Department of Physics University of Peshawar Pakistan Email: rajainayat@up.edu.pk YouTube: https://www.youtube.com/channel/UCG6jrNibuOoo0N7TRW9WiXA/ Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
  • 2. Understanding some basic terminologies used in Basic Logic Gates Logic: Logic is defined as the science of reasoning. It describes what statement follows from other statements. In logic all the statements are either True or False , there is no room for may might be perhaps. Therefore to express “ true or false” condition we need only two variables or symbols. Hence the binary number system in which only two numbers allowed “0” or “1”is suitable for dealing with logical statements. Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
  • 3. Logic Gate  An electronic circuit which performs logical operations such as OR (+), AND (.) and NOT (-) called logical operators , is called a logic gate or a logic circuit. A logic network is a collection of Logic gates interconnected in such a way that they perform specified switching functions (on/off, high/low, True/False) and is also known as Switching Network.  A basic Logic gate Like (OR, AND) has two or more inputs and one out put while for NOT- Logic Gate has One input and one output.  Logic Circuits are classified in to two classes:  1. Combinational Logic Circuits (CLC) & 2. Sequential Logic Circuit Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
  • 4. 1. Combinational Logic Circuits (CLC) & 2. Sequential Logic Circuits (SLC)  1. Combinational Logic Circuits (CLC): A CLC is one whose output at any instant of time is a function of its inputs at that instant of time only. E.g. OR , AND, NOT etc.  2. Sequential Logic Circuits (SLC): A SLC is one whose output at any instant of time is a function of not only its inputs at that instant of tim but also of the past inputs which have removed. A SLC consists of CLC and memory which stores the inpu DATA. E.g. counters etc. Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
  • 5. Boolean Algebra (Algebra of Logic): It is an algebra where the variables are constrained (restricted) to have only two possible states or values of “ON or OFF”, “ True or False”. The variables are bivalued by “0 & 1”. Truth Table: The table which shows all inputs & output possibilities for a logic circuit. It is also known as the tables of combination of independent variables and dependent variables i.e. input to output. Logic equation: It gives a relationship between input and output variables. Raja Inayatullah Khan, Department of Physics, University of Peshawar, PAKISTAN Email:rajainayat@up.edu.pk Dated: May 6, 2020
  • 6. Logic OR – Gate: (Logical Statement Example) It has two or more logic input & single out put. Its output is “ 1” if one are more ore all inputs are assumed to be “1”. Example of a Logical Statement: “The train will be stopped only when Station arrives OR emergency Chain is pulled.” A + B= X Were A and B are two inputs for two conditions of Station and Emergency Chain and X is an output for the Train Stopped or Not. Symbolically it is given as : Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
  • 7. Let us say for input variables “ A & B” are Station not arrived ---- A=0 False Station arrived ---- A=1 True ( As defined in the Statement) And Emergency chain is not pulled--- B=0 False Emergency Chain is pulled ------B=1 True (As defined in the Statement) While the output variable “ X” Train no stopped -------- X=0 False Train stopped --------- X=1 True (As defined in the Statement) Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
  • 8. Station not arrived-(0) Station arrived-----(1) A Emergency Chain not pulled--- (0) Emergency chain pulled---- (1) B Train Not Stopped (0) Train Stopped--(1) X Station not arrived 0 Emergency Chain not pulled 0 Train Not Stopped 0 Station not arrived 0 Emergency Chain pulled 1 Train Not Stopped 0 Station arrived 1 Emergency Chain not pulled 0 Train Not Stopped 0 Station arrived 1 Emergency Chain pulled 1 Train Stopped 1 Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020 Truth Table – OR-Gate INPUTS OUTPUT
  • 9. Logic AND – Gate: (Logical Statement Example) It has two or more logic input & single out put. Its output is “ 1” if all of its inputs are assumed to be “1”. Example of a Logical Statement: “I will go to Islamabad if my “Friend goes” with me AND tomorrow’s “Test gets postponed.” A . B= X Were A and B are two inputs for two conditions “Friend goes=1” and “Test gets postponed=1” and X is an output for Go to Islamabad=1. Symbolically it is given as : Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
  • 10. Let us say for input variables “ A & B” are Friend does not go -------- ---- A=0 False Friend goes --------------------- A=1 True ( As defined in the Statement) And Test not postponed --------- -- B=0 False Test postponed------------ ------B=1 True (As defined in the Statement) While the output variable “ X” Not Going to Islamabad-------- X=0 False Going to Islamabad --------- X=1 True (As defined in the Statement) Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020
  • 11. Friend does not go -- (0) Friend goes -----(1) A Test not postponed- (0) Test postponed --- (1) B Train Not Stopped= (0) Train Stopped=(1) X Friend does not go 0 Test not postponed 0 Not going to Islamabad 0 Friend does not go 0 Test postponed 1 Not going to Islamabad 0 Friend goes 1 Test not postponed 0 Not going to Islamabad 0 Friend goes 1 Test postponed 1 Going to Islamabad 1 Raja Inayatullah Khan, Department of Physics, University of Peshawar-Dated:May 6, 2020 Truth Table AND -Gate INPUTS OUTPUT