SlideShare a Scribd company logo
Based on slides by:Charles Kime & Thomas Kaminski
© 2004 Pearson Education, Inc.
ECE/CS 352: Digital System Fundamentals
Lecture 4 – Binary Logic
and Logic Gates
Chapter 1 2
Outline
 Binary Logic and Variables
 Logical Operations
 Truth Tables
 Logic Implementation
 Logic Gates
Chapter 1 3
Binary Logic and Gates
 Binary variables take on one of two values.
 Logical operators operate on binary values and
binary variables.
 Basic logical operators are the logic functions
AND, OR and NOT.
 Logic gates implement logic functions.
 Boolean Algebra: a useful mathematical system
for specifying and transforming logic functions.
 We study Boolean algebra as foundation for
designing and analyzing digital systems!
Chapter 1 4
Binary Variables
 Recall that the two binary values have
different names:
• True/False
• On/Off
• Yes/No
• 1/0
 We use 1 and 0 to denote the two values.
 Variable identifier examples:
• A, B, y, z, or X1 for now
• RESET, START_IT, or ADD1 later
Chapter 1 5
Logical Operations
 The three basic logical operations are:
• AND
• OR
• NOT
 AND is denoted by a dot (·).
 OR is denoted by a plus (+).
 NOT is denoted by an overbar ( ¯ ), a
single quote mark (') after, or (~) before
the variable.
Chapter 1 6
 Examples:
• is read “Y is equal to A AND B.”
• is read “z is equal to x OR y.”
• is read “X is equal to NOT A.”
Notation Examples
 Note: The statement:
1 + 1 = 2 (read “one plus one equals two”)
is not the same as
1 + 1 = 1 (read “1 or 1 equals 1”).
 B
A
Y 
y
x
z 

A
X 
Chapter 1 7
Operator Definitions
 Operations are defined on the values
"0" and "1" for each operator:
AND
0 · 0 = 0
0 · 1 = 0
1 · 0 = 0
1 · 1 = 1
OR
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 1
NOT
1
0
0
1
Chapter 1 8
0
1
1
0
X
NOT
X
Z
Truth Tables
 Truth table  a tabular listing of the values of a
function for all possible combinations of values on its
arguments
 Example: Truth tables for the basic logic operations:
1
1
1
0
0
1
0
1
0
0
0
0
Z = X·Y
Y
X
AND OR
X Y Z = X+Y
0 0 0
0 1 1
1 0 1
1 1 1
Chapter 1 9
 Using Switches
• For inputs:
 logic 1 is switch closed
 logic 0 is switch open
• For outputs:
 logic 1 is light on
 logic 0 is light off.
• NOT uses a switch such
that:
 logic 1 is switch open
 logic 0 is switch closed
Logic Function Implementation
Switches in series => AND
Switches in parallel => OR
C
Normally-closed switch => NOT
Chapter 1
 Example: Logic Using Switches
 Light is on (L = 1) for
L(A, B, C, D) =
and off (L = 0), otherwise.
 Useful model for relay circuits and for CMOS
gate circuits, the foundation of current digital
logic technology
Logic Function Implementation (Continued)
B
A
D
C
A ((B C') + D) = A B C' + A D
Chapter 1
Logic Gates
 In the earliest computers, switches were opened
and closed by magnetic fields produced by
energizing coils in relays. The switches in turn
opened and closed the current paths.
 Later, vacuum tubes that open and close
current paths electronically replaced relays.
 Today, transistors are used as electronic
switches that open and close current paths.
Chapter 1
Logic Gates (continued)
 Implementation of logic gates with transistors (See
Reading Supplement  CMOS Circuits)
 Transistor or tube implementations of logic functions are
called logic gates or just gates
 Transistor gate circuits can be modeled by switch circuits
•
F
+V
X
Y
+V
X
+V
X
Y
•
•
•
•
•
• •
•
• •
•
•
(a) NOR
G = X +Y
(b) NAND (c) NOT
X .Y
X
•
•
•
Chapter 1
(b) Timing diagram
X 0 0 1 1
Y 0 1 0 1
X · Y
(AND) 0 0 0 1
X 1 Y
(OR) 0 1 1 1
(NOT) X 1 1 0 0
(a) Graphic symbols
OR gate
X
Y
Z 5 X 1 Y
X
Y
Z 5 X · Y
AND gate
X Z 5 X
Logic Gate Symbols and Behavior
 Logic gates have special symbols:
 And waveform behavior in time as follows:
Chapter 1
Logic Diagrams and Expressions
 Boolean equations, truth tables and logic diagrams describe the same function!
 Truth tables are unique; expressions and logic diagrams are not. This gives
flexibility in implementing functions.
X
Y F
Z
Logic Diagram
Equation
Z
Y
X
F 

Truth Table
1
1 1 1
1
1 1 0
1
1 0 1
1
1 0 0
0
0 1 1
0
0 1 0
1
0 0 1
0
0 0 0
X Y Z Z
Y
X
F 


Chapter 1
Summary
 Binary Logic and Variables
 Logical Operations
 Truth Tables
 Logic Implementation
 Logic Gates
Chapter 1
Terms of Use
 © 2004 by Pearson Education,Inc. All rights reserved.
 The following terms of use apply in addition to the standard
Pearson Education Legal Notice.
 Permission is given to incorporate these materials into classroom
presentations and handouts only to instructors adopting Logic and
Computer Design Fundamentals as the course text.
 Permission is granted to the instructors adopting the book to post
these materials on a protected website or protected ftp site in
original or modified form. All other website or ftp postings,
including those offering the materials for a fee, are prohibited.
 You may not remove or in any way alter this Terms of Use notice
or any trademark, copyright, or other proprietary notice,
including the copyright watermark on each slide.
 Return to Title Page
Ad

More Related Content

Similar to lecture_binary_logic_and_logic_gates.ppt (20)

Chapter 2.pdf
Chapter 2.pdfChapter 2.pdf
Chapter 2.pdf
ssuserf7cd2b
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)
MeghaSharma513
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).ppt
michaelaaron25322
 
Rthch2nts 160709112024
Rthch2nts 160709112024Rthch2nts 160709112024
Rthch2nts 160709112024
marangburu42
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
blaircomp2003
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
Burhanuddin Mohammad
 
Saleh
SalehSaleh
Saleh
saleh2013
 
Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers and
MuruganandhanD
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logic
Kamal Acharya
 
03-BooleanAlgebra_ Boolean algebra .pptx
03-BooleanAlgebra_ Boolean algebra .pptx03-BooleanAlgebra_ Boolean algebra .pptx
03-BooleanAlgebra_ Boolean algebra .pptx
principalss172
 
boolean-algebra.pdf
boolean-algebra.pdfboolean-algebra.pdf
boolean-algebra.pdf
RameshK531901
 
DE notes
DE notesDE notes
DE notes
Prof. Dr. K. Adisesha
 
Boolean Algebra and logic gates by Shahzaib Khalil
Boolean Algebra and logic gates by Shahzaib KhalilBoolean Algebra and logic gates by Shahzaib Khalil
Boolean Algebra and logic gates by Shahzaib Khalil
sairahussainsaira62
 
DLD Chapter-2.pdf
DLD Chapter-2.pdfDLD Chapter-2.pdf
DLD Chapter-2.pdf
TamiratDejene1
 
Boolean Algebra part 2.ppt
Boolean Algebra part 2.pptBoolean Algebra part 2.ppt
Boolean Algebra part 2.ppt
AshishChandrakar12
 
Boolean Logic& Algebra.pptx
Boolean Logic& Algebra.pptxBoolean Logic& Algebra.pptx
Boolean Logic& Algebra.pptx
RamandeepKaur152744
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
arunachalamr16
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
Rai University
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
AttaullahRahimoon
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
Kumar
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)
MeghaSharma513
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).ppt
michaelaaron25322
 
Rthch2nts 160709112024
Rthch2nts 160709112024Rthch2nts 160709112024
Rthch2nts 160709112024
marangburu42
 
Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers and
MuruganandhanD
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logic
Kamal Acharya
 
03-BooleanAlgebra_ Boolean algebra .pptx
03-BooleanAlgebra_ Boolean algebra .pptx03-BooleanAlgebra_ Boolean algebra .pptx
03-BooleanAlgebra_ Boolean algebra .pptx
principalss172
 
Boolean Algebra and logic gates by Shahzaib Khalil
Boolean Algebra and logic gates by Shahzaib KhalilBoolean Algebra and logic gates by Shahzaib Khalil
Boolean Algebra and logic gates by Shahzaib Khalil
sairahussainsaira62
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
arunachalamr16
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
Rai University
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
Kumar
 

More from SherifElGohary7 (20)

introduction to html and cssIntroHTML.ppt
introduction to html and cssIntroHTML.pptintroduction to html and cssIntroHTML.ppt
introduction to html and cssIntroHTML.ppt
SherifElGohary7
 
introduction to html and css html1.ppt
introduction to html and css   html1.pptintroduction to html and css   html1.ppt
introduction to html and css html1.ppt
SherifElGohary7
 
2-Test biocompatibilitalty testing .ppt
2-Test biocompatibilitalty testing  .ppt2-Test biocompatibilitalty testing  .ppt
2-Test biocompatibilitalty testing .ppt
SherifElGohary7
 
articulating mirrors laser application 1610922286.pptx
articulating mirrors laser application 1610922286.pptxarticulating mirrors laser application 1610922286.pptx
articulating mirrors laser application 1610922286.pptx
SherifElGohary7
 
Intrusion Detection and Prevention Systems.pptx
Intrusion Detection and Prevention Systems.pptxIntrusion Detection and Prevention Systems.pptx
Intrusion Detection and Prevention Systems.pptx
SherifElGohary7
 
AAMI medical device standards program.pptx
AAMI medical device standards program.pptxAAMI medical device standards program.pptx
AAMI medical device standards program.pptx
SherifElGohary7
 
dppc-breach-notification-slides-201804.ppt
dppc-breach-notification-slides-201804.pptdppc-breach-notification-slides-201804.ppt
dppc-breach-notification-slides-201804.ppt
SherifElGohary7
 
presentationsPPT-HIPAA-Privacy-Rule-Training.pptx
presentationsPPT-HIPAA-Privacy-Rule-Training.pptxpresentationsPPT-HIPAA-Privacy-Rule-Training.pptx
presentationsPPT-HIPAA-Privacy-Rule-Training.pptx
SherifElGohary7
 
Lectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).pptLectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).ppt
SherifElGohary7
 
Lecture digital logic design Chapter4_4Web.ppt
Lecture digital logic design Chapter4_4Web.pptLecture digital logic design Chapter4_4Web.ppt
Lecture digital logic design Chapter4_4Web.ppt
SherifElGohary7
 
Encoder-Decoder-Multiplexers-and-Demultiplexers.ppt
Encoder-Decoder-Multiplexers-and-Demultiplexers.pptEncoder-Decoder-Multiplexers-and-Demultiplexers.ppt
Encoder-Decoder-Multiplexers-and-Demultiplexers.ppt
SherifElGohary7
 
Lecture of BloodGlucoseMonitoring2008.ppt
Lecture of BloodGlucoseMonitoring2008.pptLecture of BloodGlucoseMonitoring2008.ppt
Lecture of BloodGlucoseMonitoring2008.ppt
SherifElGohary7
 
IT GovernanceChallenges facing IT Governance.pdf
IT GovernanceChallenges facing IT Governance.pdfIT GovernanceChallenges facing IT Governance.pdf
IT GovernanceChallenges facing IT Governance.pdf
SherifElGohary7
 
Chapter 12 CSR and Corporate Governance.ppt
Chapter 12 CSR and Corporate Governance.pptChapter 12 CSR and Corporate Governance.ppt
Chapter 12 CSR and Corporate Governance.ppt
SherifElGohary7
 
Digital logic design of 2nd Lecture 2.pdf
Digital logic design of 2nd Lecture 2.pdfDigital logic design of 2nd Lecture 2.pdf
Digital logic design of 2nd Lecture 2.pdf
SherifElGohary7
 
Medical biophysics of Introduction-18.pdf
Medical biophysics of Introduction-18.pdfMedical biophysics of Introduction-18.pdf
Medical biophysics of Introduction-18.pdf
SherifElGohary7
 
Digital-logic-design-16148_flip-flop1.ppt
Digital-logic-design-16148_flip-flop1.pptDigital-logic-design-16148_flip-flop1.ppt
Digital-logic-design-16148_flip-flop1.ppt
SherifElGohary7
 
Lecture-digital-27_T_and_JK_Flip-Flops.ppt
Lecture-digital-27_T_and_JK_Flip-Flops.pptLecture-digital-27_T_and_JK_Flip-Flops.ppt
Lecture-digital-27_T_and_JK_Flip-Flops.ppt
SherifElGohary7
 
Lecture-digital logic design-32_Counters.ppt
Lecture-digital logic design-32_Counters.pptLecture-digital logic design-32_Counters.ppt
Lecture-digital logic design-32_Counters.ppt
SherifElGohary7
 
Lecture-Logic Design_circuit-15-Registers.ppt
Lecture-Logic Design_circuit-15-Registers.pptLecture-Logic Design_circuit-15-Registers.ppt
Lecture-Logic Design_circuit-15-Registers.ppt
SherifElGohary7
 
introduction to html and cssIntroHTML.ppt
introduction to html and cssIntroHTML.pptintroduction to html and cssIntroHTML.ppt
introduction to html and cssIntroHTML.ppt
SherifElGohary7
 
introduction to html and css html1.ppt
introduction to html and css   html1.pptintroduction to html and css   html1.ppt
introduction to html and css html1.ppt
SherifElGohary7
 
2-Test biocompatibilitalty testing .ppt
2-Test biocompatibilitalty testing  .ppt2-Test biocompatibilitalty testing  .ppt
2-Test biocompatibilitalty testing .ppt
SherifElGohary7
 
articulating mirrors laser application 1610922286.pptx
articulating mirrors laser application 1610922286.pptxarticulating mirrors laser application 1610922286.pptx
articulating mirrors laser application 1610922286.pptx
SherifElGohary7
 
Intrusion Detection and Prevention Systems.pptx
Intrusion Detection and Prevention Systems.pptxIntrusion Detection and Prevention Systems.pptx
Intrusion Detection and Prevention Systems.pptx
SherifElGohary7
 
AAMI medical device standards program.pptx
AAMI medical device standards program.pptxAAMI medical device standards program.pptx
AAMI medical device standards program.pptx
SherifElGohary7
 
dppc-breach-notification-slides-201804.ppt
dppc-breach-notification-slides-201804.pptdppc-breach-notification-slides-201804.ppt
dppc-breach-notification-slides-201804.ppt
SherifElGohary7
 
presentationsPPT-HIPAA-Privacy-Rule-Training.pptx
presentationsPPT-HIPAA-Privacy-Rule-Training.pptxpresentationsPPT-HIPAA-Privacy-Rule-Training.pptx
presentationsPPT-HIPAA-Privacy-Rule-Training.pptx
SherifElGohary7
 
Lectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).pptLectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).ppt
SherifElGohary7
 
Lecture digital logic design Chapter4_4Web.ppt
Lecture digital logic design Chapter4_4Web.pptLecture digital logic design Chapter4_4Web.ppt
Lecture digital logic design Chapter4_4Web.ppt
SherifElGohary7
 
Encoder-Decoder-Multiplexers-and-Demultiplexers.ppt
Encoder-Decoder-Multiplexers-and-Demultiplexers.pptEncoder-Decoder-Multiplexers-and-Demultiplexers.ppt
Encoder-Decoder-Multiplexers-and-Demultiplexers.ppt
SherifElGohary7
 
Lecture of BloodGlucoseMonitoring2008.ppt
Lecture of BloodGlucoseMonitoring2008.pptLecture of BloodGlucoseMonitoring2008.ppt
Lecture of BloodGlucoseMonitoring2008.ppt
SherifElGohary7
 
IT GovernanceChallenges facing IT Governance.pdf
IT GovernanceChallenges facing IT Governance.pdfIT GovernanceChallenges facing IT Governance.pdf
IT GovernanceChallenges facing IT Governance.pdf
SherifElGohary7
 
Chapter 12 CSR and Corporate Governance.ppt
Chapter 12 CSR and Corporate Governance.pptChapter 12 CSR and Corporate Governance.ppt
Chapter 12 CSR and Corporate Governance.ppt
SherifElGohary7
 
Digital logic design of 2nd Lecture 2.pdf
Digital logic design of 2nd Lecture 2.pdfDigital logic design of 2nd Lecture 2.pdf
Digital logic design of 2nd Lecture 2.pdf
SherifElGohary7
 
Medical biophysics of Introduction-18.pdf
Medical biophysics of Introduction-18.pdfMedical biophysics of Introduction-18.pdf
Medical biophysics of Introduction-18.pdf
SherifElGohary7
 
Digital-logic-design-16148_flip-flop1.ppt
Digital-logic-design-16148_flip-flop1.pptDigital-logic-design-16148_flip-flop1.ppt
Digital-logic-design-16148_flip-flop1.ppt
SherifElGohary7
 
Lecture-digital-27_T_and_JK_Flip-Flops.ppt
Lecture-digital-27_T_and_JK_Flip-Flops.pptLecture-digital-27_T_and_JK_Flip-Flops.ppt
Lecture-digital-27_T_and_JK_Flip-Flops.ppt
SherifElGohary7
 
Lecture-digital logic design-32_Counters.ppt
Lecture-digital logic design-32_Counters.pptLecture-digital logic design-32_Counters.ppt
Lecture-digital logic design-32_Counters.ppt
SherifElGohary7
 
Lecture-Logic Design_circuit-15-Registers.ppt
Lecture-Logic Design_circuit-15-Registers.pptLecture-Logic Design_circuit-15-Registers.ppt
Lecture-Logic Design_circuit-15-Registers.ppt
SherifElGohary7
 
Ad

Recently uploaded (20)

sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
ajayrm685
 
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdfDavid Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Working with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to ImplementationWorking with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to Implementation
Alabama Transportation Assistance Program
 
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
PawachMetharattanara
 
Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025
Antonin Danalet
 
Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Optimizing Reinforced Concrete Cantilever Retaining Walls Using Gases Brownia...
Journal of Soft Computing in Civil Engineering
 
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdfIBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
VigneshPalaniappanM
 
Construction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.pptConstruction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.ppt
ssuser2ffcbc
 
Automatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and BeyondAutomatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and Beyond
NU_I_TODALAB
 
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning ModelsMode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Journal of Soft Computing in Civil Engineering
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
Physical and Physic-Chemical Based Optimization Methods: A Review
Physical and Physic-Chemical Based Optimization Methods: A ReviewPhysical and Physic-Chemical Based Optimization Methods: A Review
Physical and Physic-Chemical Based Optimization Methods: A Review
Journal of Soft Computing in Civil Engineering
 
Personal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.pptPersonal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.ppt
ganjangbegu579
 
Artificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptxArtificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptx
rakshanatarajan005
 
Machine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATIONMachine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATION
DarrinBright1
 
Modeling the Influence of Environmental Factors on Concrete Evaporation Rate
Modeling the Influence of Environmental Factors on Concrete Evaporation RateModeling the Influence of Environmental Factors on Concrete Evaporation Rate
Modeling the Influence of Environmental Factors on Concrete Evaporation Rate
Journal of Soft Computing in Civil Engineering
 
Design of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdfDesign of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdf
Kamel Farid
 
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
sss1.pptxsss1.pptxsss1.pptxsss1.pptxsss1.pptx
ajayrm685
 
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdfDavid Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry - Specializes In AWS, Microservices And Python.pdf
David Boutry
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
PawachMetharattanara
 
Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025Transport modelling at SBB, presentation at EPFL in 2025
Transport modelling at SBB, presentation at EPFL in 2025
Antonin Danalet
 
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdfIBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
VigneshPalaniappanM
 
Construction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.pptConstruction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.ppt
ssuser2ffcbc
 
Automatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and BeyondAutomatic Quality Assessment for Speech and Beyond
Automatic Quality Assessment for Speech and Beyond
NU_I_TODALAB
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
Personal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.pptPersonal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.ppt
ganjangbegu579
 
Artificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptxArtificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptx
rakshanatarajan005
 
Machine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATIONMachine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATION
DarrinBright1
 
Design of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdfDesign of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdf
Kamel Farid
 
Ad

lecture_binary_logic_and_logic_gates.ppt

  • 1. Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 4 – Binary Logic and Logic Gates
  • 2. Chapter 1 2 Outline  Binary Logic and Variables  Logical Operations  Truth Tables  Logic Implementation  Logic Gates
  • 3. Chapter 1 3 Binary Logic and Gates  Binary variables take on one of two values.  Logical operators operate on binary values and binary variables.  Basic logical operators are the logic functions AND, OR and NOT.  Logic gates implement logic functions.  Boolean Algebra: a useful mathematical system for specifying and transforming logic functions.  We study Boolean algebra as foundation for designing and analyzing digital systems!
  • 4. Chapter 1 4 Binary Variables  Recall that the two binary values have different names: • True/False • On/Off • Yes/No • 1/0  We use 1 and 0 to denote the two values.  Variable identifier examples: • A, B, y, z, or X1 for now • RESET, START_IT, or ADD1 later
  • 5. Chapter 1 5 Logical Operations  The three basic logical operations are: • AND • OR • NOT  AND is denoted by a dot (·).  OR is denoted by a plus (+).  NOT is denoted by an overbar ( ¯ ), a single quote mark (') after, or (~) before the variable.
  • 6. Chapter 1 6  Examples: • is read “Y is equal to A AND B.” • is read “z is equal to x OR y.” • is read “X is equal to NOT A.” Notation Examples  Note: The statement: 1 + 1 = 2 (read “one plus one equals two”) is not the same as 1 + 1 = 1 (read “1 or 1 equals 1”).  B A Y  y x z   A X 
  • 7. Chapter 1 7 Operator Definitions  Operations are defined on the values "0" and "1" for each operator: AND 0 · 0 = 0 0 · 1 = 0 1 · 0 = 0 1 · 1 = 1 OR 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 1 NOT 1 0 0 1
  • 8. Chapter 1 8 0 1 1 0 X NOT X Z Truth Tables  Truth table  a tabular listing of the values of a function for all possible combinations of values on its arguments  Example: Truth tables for the basic logic operations: 1 1 1 0 0 1 0 1 0 0 0 0 Z = X·Y Y X AND OR X Y Z = X+Y 0 0 0 0 1 1 1 0 1 1 1 1
  • 9. Chapter 1 9  Using Switches • For inputs:  logic 1 is switch closed  logic 0 is switch open • For outputs:  logic 1 is light on  logic 0 is light off. • NOT uses a switch such that:  logic 1 is switch open  logic 0 is switch closed Logic Function Implementation Switches in series => AND Switches in parallel => OR C Normally-closed switch => NOT
  • 10. Chapter 1  Example: Logic Using Switches  Light is on (L = 1) for L(A, B, C, D) = and off (L = 0), otherwise.  Useful model for relay circuits and for CMOS gate circuits, the foundation of current digital logic technology Logic Function Implementation (Continued) B A D C A ((B C') + D) = A B C' + A D
  • 11. Chapter 1 Logic Gates  In the earliest computers, switches were opened and closed by magnetic fields produced by energizing coils in relays. The switches in turn opened and closed the current paths.  Later, vacuum tubes that open and close current paths electronically replaced relays.  Today, transistors are used as electronic switches that open and close current paths.
  • 12. Chapter 1 Logic Gates (continued)  Implementation of logic gates with transistors (See Reading Supplement  CMOS Circuits)  Transistor or tube implementations of logic functions are called logic gates or just gates  Transistor gate circuits can be modeled by switch circuits • F +V X Y +V X +V X Y • • • • • • • • • • • • (a) NOR G = X +Y (b) NAND (c) NOT X .Y X • • •
  • 13. Chapter 1 (b) Timing diagram X 0 0 1 1 Y 0 1 0 1 X · Y (AND) 0 0 0 1 X 1 Y (OR) 0 1 1 1 (NOT) X 1 1 0 0 (a) Graphic symbols OR gate X Y Z 5 X 1 Y X Y Z 5 X · Y AND gate X Z 5 X Logic Gate Symbols and Behavior  Logic gates have special symbols:  And waveform behavior in time as follows:
  • 14. Chapter 1 Logic Diagrams and Expressions  Boolean equations, truth tables and logic diagrams describe the same function!  Truth tables are unique; expressions and logic diagrams are not. This gives flexibility in implementing functions. X Y F Z Logic Diagram Equation Z Y X F   Truth Table 1 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 0 0 1 1 0 0 1 0 1 0 0 1 0 0 0 0 X Y Z Z Y X F   
  • 15. Chapter 1 Summary  Binary Logic and Variables  Logical Operations  Truth Tables  Logic Implementation  Logic Gates
  • 16. Chapter 1 Terms of Use  © 2004 by Pearson Education,Inc. All rights reserved.  The following terms of use apply in addition to the standard Pearson Education Legal Notice.  Permission is given to incorporate these materials into classroom presentations and handouts only to instructors adopting Logic and Computer Design Fundamentals as the course text.  Permission is granted to the instructors adopting the book to post these materials on a protected website or protected ftp site in original or modified form. All other website or ftp postings, including those offering the materials for a fee, are prohibited.  You may not remove or in any way alter this Terms of Use notice or any trademark, copyright, or other proprietary notice, including the copyright watermark on each slide.  Return to Title Page

Editor's Notes

  • #10: L (A, B, C, D) = A ((B C') + D) = A B C' + A D
  • #12: The transistor without the “bubble” on its input is an N-type field effect transistor. It acts like a closed switch between its top and bottom terminals with an H (1) applied to its input on its left. It acts like an open switch with an L (0) applied to its input. The transistor with the “bubble” on its input is a P-type field effect transistor. The +V at the top provides an H (1) and the Ground symbol at the bottom provides an L (0). By modeling the two types of field effect transistors as switches, one can see how the series and parallel interconnections can produce 1’s and 0’s on the outputs on the right in response to applied 1’s and 0’s on the inputs on the left. NOR and NAND are OR and AND, each followed by a NOT respectively.