SlideShare a Scribd company logo
BOOlean Logic
The basis for digital electronics.
What digital electronics do you
use?
 Computer
 CD & DVD players
 IPod
 Cell phone
 HDTV
 Digital cameras
What are digital electronics?
 Sound is an analog signal.
 On a CD, digital sound is encoded
as 44.1 kHz, 16 bit audio.
 The original wave is 'sliced' 44,100
times a second - and an average
amplitude level is applied to each
sample.
 16 bit means that a total of 65,536
different values can be assigned,
or quantized to each sample.
 DVD-Audio can be 96 or 192 kHz
and up to 24 bits resolution
George Boole
 George Boole, a British mathematician (1815-1864).
 Logic and math are equivalent.
 All math functions can be determined using these 3
primary Boolean logic operators: AND, OR, and NOT.
 AND narrows your search,
 OR broadens your search, and
 NOT is used to exclude concepts.
Have you used Boolean logic?
 What information have you searched for on the Web?
 Do a Google Search for car radios.
The AND operator
(both, all)
 rivers AND salinity
 dairy products AND export AND
Europe
The OR operator
(either, any)
 fruit OR vegetables
 fruit OR vegetables OR cereal
from CSIRO Australia
The NOT operator
 fruit NOT apples
 Look at the Boolean Machine
http://kathyschrock.net/rbs3k/boolean/
Let’s use Boolean logic to
examine class.
 Please stand up if you are:
 girl
 AND black hair
 AND left handed
 Please stand up if you are:
 girl
 OR black hair
 OR left handed
 And NOT
 How has the group changed depending on the logical
operator used.
What would a library search
give for “stress” and “anxiety”?
Shaded areas indicate
retrieval
Search Statement Types of records retrieved
Number of
records
retrieved
stress OR anxiety
Documents that discuss
either stress or anxiety
1127
stress AND anxiety
Documents that discuss
both stress and anxiety
51
stress NOT anxiety
Documents that discuss
stress but not anxiety
687
Nesting
 When more than one element is in parentheses, the sequence is
left to right. This is called "nesting."
 (foxes OR rabbits) AND pest control
 foxes OR rabbits AND pest control
 (animal pests OR pest animals) NOT rabbits
 Parentheses should be used to group terms joined by OR when
there is any other operator in the search.
Order of precedence of Boolean
operators
 The order of operations is: AND, NOT, OR, XOR
 Parentheses are used to override priority.
 Expressions in parentheses are processed first.
 Parentheses are used to organize the sequence and
groups of concepts.
Write out logic statements using
Boolean operators for these.
 You have a buzzer in your car that sounds when your
keys are in the ignition and the door is open.
 You have a fire alarm installed in your house. This
alarm will sound if it senses heat or smoke.
 There is an election coming up. People are allowed to
vote if they are a citizen and they are 18.
 To complete an assignment the students must do a
presentation or write an essay.
Basis for digital computers.
 The true-false nature of Boolean
logic makes it compatible with
binary logic used in digital
computers.
 Electronic circuits can produce
Boolean logic operations.
 Circuits are called gates.
 NOT
 AND
 OR
NOT gate
 The simplest possible gate is called an "inverter," or a NOT gate.
 One bit as input produces its opposite as output.
 The symbol for a NOT gate in circuit diagrams is shown below.
 The logic table for the NOT gate shows input and output.
A Q
0 1
1 0
From How Stuff Works
AND gate
 The AND gate has the following symbol and
logic table.
 Two or more input bits produce one output bit.
 Both inputs must be true (1) for the output to be
true.
 Otherwise the output is false (0).
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
OR gate
 The OR gate has the following symbol and logic table.
 Two or more input bits produce one output bit.
 Either inputs must be true (1) for the output to be true.
 http://www.play-hookey.com/digital/basic_gates.html
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
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.
Construct the logic table for
these circuits.
What happens when you add a
NOT to an AND gate?
A B Q
0 0 1
0 1 1
1 0 1
1 1 0
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
 Not
Can you make a NOT gate from
an NAND?
A Q
0 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
Can you make an OR gate from
an NAND?
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
All computations can be done
with an NAND gate.
 The most sophisticated
computer can be made with
NAND gates from Radio Shack.
 Need millions of them.
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
How do I add larger numbers?
 You can write any number in binary.
Add binary numbers.
 Adding larger number just adds more columns.
Gang circuits in sequence.
 To construct a full adder circuit, we'll
need to gang these simple circuits
together.
 The “carry” value will become an input
for the subsequent
 Now have three inputs and two outputs.
 Since we'll have both an input carry and
an output carry, we'll designate them as
CIN and COUT.
Different Version of Full Adder.
 Now we can add two binary bits together
 accounting for a possible carry from the next lower order of magnitude.
 sending a carry to the next higher order of magnitude.
One-bit Full Adder with Carry-In and Carry-Out
CI A B Q CO
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Add multiple bits.
 A full adder must be allocated for each bit to be added
simultaneously.
 To add two 4-bit numbers to produce a 4-bit sum (with a
possible carry), you would need four full adders with carry
lines cascaded.
 By extension, two binary numbers of any size may be added in
this manner.
 http://www.play-hookey.com/digital/adder.html
Gates from electrical relays.
 NOT gate
 AND gate
 OR gate
Test your knowledge on
Boolean logic.
 http://educ.queensu.ca/~compsci/resources/BoolLogic
/assocdistrib.html
Here is a great resource for
digital electronics.
 http://hyperphysics.phy-
astr.gsu.edu/Hbase/electronic/digcktcon.html#c1
Following are extra slides which may not be used.
Binary numbers.
“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
A B Q
0 0 1
0 1 0
1 0 0
1 1 1
Write out the logic tables for
these two circuits.

More Related Content

Similar to boolean-logic.pptx

combinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxcombinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptx
NadzlinIbrahim3
 
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
Vanitha Chandru
 
Boolean Algebra- Digital Logic gates
Boolean Algebra- Digital Logic gatesBoolean Algebra- Digital Logic gates
Boolean Algebra- Digital Logic gates
NTBsnull
 
DE notes
DE notesDE notes
Number System & Logic Gate
Number System & Logic GateNumber System & Logic Gate
Number System & Logic Gate
Ashfakur Rahman
 
Boolean+logic
Boolean+logicBoolean+logic
Boolean+logic
Bilal Maqbool ツ
 
ECAD lab manual
ECAD lab manualECAD lab manual
ECAD lab manual
Dr. Swaminathan Kathirvel
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
MahiboobAliMulla
 
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
KINGZzofYouTube
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
RithinA1
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebra
Ashish KC
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
Arriz San Juan
 
Boolean Aljabra.pptx of dld and computer
Boolean Aljabra.pptx of dld and computerBoolean Aljabra.pptx of dld and computer
Boolean Aljabra.pptx of dld and computer
itxminahil29
 
Digital logic
Digital logicDigital logic
Digital logic
Madhu Bala
 
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
OrlyLisondra1
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
Youngik Song
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gates
Dhwanil Champaneria
 
Logic gates
Logic gatesLogic gates
Logic gates
Edmund Merren
 
Digital Basics
Digital BasicsDigital Basics
Digital Basics
nitinpatelceng
 
Digital electronics logic design complete notes.pdf
Digital electronics logic design complete notes.pdfDigital electronics logic design complete notes.pdf
Digital electronics logic design complete notes.pdf
022BELEHemant
 

Similar to boolean-logic.pptx (20)

combinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxcombinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptx
 
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
 
Boolean Algebra- Digital Logic gates
Boolean Algebra- Digital Logic gatesBoolean Algebra- Digital Logic gates
Boolean Algebra- Digital Logic gates
 
DE notes
DE notesDE notes
DE notes
 
Number System & Logic Gate
Number System & Logic GateNumber System & Logic Gate
Number System & Logic Gate
 
Boolean+logic
Boolean+logicBoolean+logic
Boolean+logic
 
ECAD lab manual
ECAD lab manualECAD lab manual
ECAD lab manual
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
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
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebra
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
Boolean Aljabra.pptx of dld and computer
Boolean Aljabra.pptx of dld and computerBoolean Aljabra.pptx of dld and computer
Boolean Aljabra.pptx of dld and computer
 
Digital logic
Digital logicDigital logic
Digital logic
 
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
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Digital Basics
Digital BasicsDigital Basics
Digital Basics
 
Digital electronics logic design complete notes.pdf
Digital electronics logic design complete notes.pdfDigital electronics logic design complete notes.pdf
Digital electronics logic design complete notes.pdf
 

More from KrishnaveniManickam3

UNIT 03 ORGANISING.ppt
UNIT 03 ORGANISING.pptUNIT 03 ORGANISING.ppt
UNIT 03 ORGANISING.ppt
KrishnaveniManickam3
 
UNIT 5 CONTROLLING.ppt
UNIT 5 CONTROLLING.pptUNIT 5 CONTROLLING.ppt
UNIT 5 CONTROLLING.ppt
KrishnaveniManickam3
 
1-DSP Fundamentals.ppt
1-DSP Fundamentals.ppt1-DSP Fundamentals.ppt
1-DSP Fundamentals.ppt
KrishnaveniManickam3
 
Review report-template_ECE_AVSEC (10_09_2014).pptx
Review report-template_ECE_AVSEC (10_09_2014).pptxReview report-template_ECE_AVSEC (10_09_2014).pptx
Review report-template_ECE_AVSEC (10_09_2014).pptx
KrishnaveniManickam3
 
unit 5.ppt
unit 5.pptunit 5.ppt
piezo ele.ppt.pptx
piezo ele.ppt.pptxpiezo ele.ppt.pptx
piezo ele.ppt.pptx
KrishnaveniManickam3
 
UNIT 2.ppt
UNIT 2.pptUNIT 2.ppt
PPT-DC.pptx
PPT-DC.pptxPPT-DC.pptx
staffing.ppt
staffing.pptstaffing.ppt
staffing.ppt
KrishnaveniManickam3
 
UNIT 5 CONTROLLING.ppt
UNIT 5 CONTROLLING.pptUNIT 5 CONTROLLING.ppt
UNIT 5 CONTROLLING.ppt
KrishnaveniManickam3
 
Organising unit ppt.ppt
Organising unit ppt.pptOrganising unit ppt.ppt
Organising unit ppt.ppt
KrishnaveniManickam3
 

More from KrishnaveniManickam3 (11)

UNIT 03 ORGANISING.ppt
UNIT 03 ORGANISING.pptUNIT 03 ORGANISING.ppt
UNIT 03 ORGANISING.ppt
 
UNIT 5 CONTROLLING.ppt
UNIT 5 CONTROLLING.pptUNIT 5 CONTROLLING.ppt
UNIT 5 CONTROLLING.ppt
 
1-DSP Fundamentals.ppt
1-DSP Fundamentals.ppt1-DSP Fundamentals.ppt
1-DSP Fundamentals.ppt
 
Review report-template_ECE_AVSEC (10_09_2014).pptx
Review report-template_ECE_AVSEC (10_09_2014).pptxReview report-template_ECE_AVSEC (10_09_2014).pptx
Review report-template_ECE_AVSEC (10_09_2014).pptx
 
unit 5.ppt
unit 5.pptunit 5.ppt
unit 5.ppt
 
piezo ele.ppt.pptx
piezo ele.ppt.pptxpiezo ele.ppt.pptx
piezo ele.ppt.pptx
 
UNIT 2.ppt
UNIT 2.pptUNIT 2.ppt
UNIT 2.ppt
 
PPT-DC.pptx
PPT-DC.pptxPPT-DC.pptx
PPT-DC.pptx
 
staffing.ppt
staffing.pptstaffing.ppt
staffing.ppt
 
UNIT 5 CONTROLLING.ppt
UNIT 5 CONTROLLING.pptUNIT 5 CONTROLLING.ppt
UNIT 5 CONTROLLING.ppt
 
Organising unit ppt.ppt
Organising unit ppt.pptOrganising unit ppt.ppt
Organising unit ppt.ppt
 

Recently uploaded

一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
upoux
 
morris_worm_intro_and_source_code_analysis_.pdf
morris_worm_intro_and_source_code_analysis_.pdfmorris_worm_intro_and_source_code_analysis_.pdf
morris_worm_intro_and_source_code_analysis_.pdf
ycwu0509
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
Yasser Mahgoub
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
AI for Legal Research with applications, tools
AI for Legal Research with applications, toolsAI for Legal Research with applications, tools
AI for Legal Research with applications, tools
mahaffeycheryld
 
Gas agency management system project report.pdf
Gas agency management system project report.pdfGas agency management system project report.pdf
Gas agency management system project report.pdf
Kamal Acharya
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
nedcocy
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
mahaffeycheryld
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Design and optimization of ion propulsion drone
Design and optimization of ion propulsion droneDesign and optimization of ion propulsion drone
Design and optimization of ion propulsion drone
bjmsejournal
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 

Recently uploaded (20)

一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
 
morris_worm_intro_and_source_code_analysis_.pdf
morris_worm_intro_and_source_code_analysis_.pdfmorris_worm_intro_and_source_code_analysis_.pdf
morris_worm_intro_and_source_code_analysis_.pdf
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 08 Doors and Windows.pdf
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
AI for Legal Research with applications, tools
AI for Legal Research with applications, toolsAI for Legal Research with applications, tools
AI for Legal Research with applications, tools
 
Gas agency management system project report.pdf
Gas agency management system project report.pdfGas agency management system project report.pdf
Gas agency management system project report.pdf
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Design and optimization of ion propulsion drone
Design and optimization of ion propulsion droneDesign and optimization of ion propulsion drone
Design and optimization of ion propulsion drone
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 

boolean-logic.pptx

  • 1. BOOlean Logic The basis for digital electronics.
  • 2. What digital electronics do you use?  Computer  CD & DVD players  IPod  Cell phone  HDTV  Digital cameras
  • 3. What are digital electronics?  Sound is an analog signal.  On a CD, digital sound is encoded as 44.1 kHz, 16 bit audio.  The original wave is 'sliced' 44,100 times a second - and an average amplitude level is applied to each sample.  16 bit means that a total of 65,536 different values can be assigned, or quantized to each sample.  DVD-Audio can be 96 or 192 kHz and up to 24 bits resolution
  • 4. George Boole  George Boole, a British mathematician (1815-1864).  Logic and math are equivalent.  All math functions can be determined using these 3 primary Boolean logic operators: AND, OR, and NOT.  AND narrows your search,  OR broadens your search, and  NOT is used to exclude concepts.
  • 5. Have you used Boolean logic?  What information have you searched for on the Web?  Do a Google Search for car radios.
  • 6. The AND operator (both, all)  rivers AND salinity  dairy products AND export AND Europe
  • 7. The OR operator (either, any)  fruit OR vegetables  fruit OR vegetables OR cereal from CSIRO Australia
  • 8. The NOT operator  fruit NOT apples  Look at the Boolean Machine http://kathyschrock.net/rbs3k/boolean/
  • 9. Let’s use Boolean logic to examine class.  Please stand up if you are:  girl  AND black hair  AND left handed  Please stand up if you are:  girl  OR black hair  OR left handed  And NOT  How has the group changed depending on the logical operator used.
  • 10. What would a library search give for “stress” and “anxiety”? Shaded areas indicate retrieval Search Statement Types of records retrieved Number of records retrieved stress OR anxiety Documents that discuss either stress or anxiety 1127 stress AND anxiety Documents that discuss both stress and anxiety 51 stress NOT anxiety Documents that discuss stress but not anxiety 687
  • 11. Nesting  When more than one element is in parentheses, the sequence is left to right. This is called "nesting."  (foxes OR rabbits) AND pest control  foxes OR rabbits AND pest control  (animal pests OR pest animals) NOT rabbits  Parentheses should be used to group terms joined by OR when there is any other operator in the search.
  • 12. Order of precedence of Boolean operators  The order of operations is: AND, NOT, OR, XOR  Parentheses are used to override priority.  Expressions in parentheses are processed first.  Parentheses are used to organize the sequence and groups of concepts.
  • 13. Write out logic statements using Boolean operators for these.  You have a buzzer in your car that sounds when your keys are in the ignition and the door is open.  You have a fire alarm installed in your house. This alarm will sound if it senses heat or smoke.  There is an election coming up. People are allowed to vote if they are a citizen and they are 18.  To complete an assignment the students must do a presentation or write an essay.
  • 14. Basis for digital computers.  The true-false nature of Boolean logic makes it compatible with binary logic used in digital computers.  Electronic circuits can produce Boolean logic operations.  Circuits are called gates.  NOT  AND  OR
  • 15. NOT gate  The simplest possible gate is called an "inverter," or a NOT gate.  One bit as input produces its opposite as output.  The symbol for a NOT gate in circuit diagrams is shown below.  The logic table for the NOT gate shows input and output. A Q 0 1 1 0 From How Stuff Works
  • 16. AND gate  The AND gate has the following symbol and logic table.  Two or more input bits produce one output bit.  Both inputs must be true (1) for the output to be true.  Otherwise the output is false (0). A B Q 0 0 0 0 1 0 1 0 0 1 1 1
  • 17. OR gate  The OR gate has the following symbol and logic table.  Two or more input bits produce one output bit.  Either inputs must be true (1) for the output to be true.  http://www.play-hookey.com/digital/basic_gates.html A B Q 0 0 0 0 1 1 1 0 1 1 1 1
  • 18. 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.
  • 19. Construct the logic table for these circuits.
  • 20. What happens when you add a NOT to an AND gate? A B Q 0 0 1 0 1 1 1 0 1 1 1 0 A B Q 0 0 0 0 1 0 1 0 0 1 1 1  Not
  • 21. Can you make a NOT gate from an NAND? A Q 0 1 1 0
  • 22. Can you make an AND gate from an NAND? A B Q 0 0 0 0 1 0 1 0 0 1 1 1
  • 23. Can you make an OR gate from an NAND? A B Q 0 0 0 0 1 1 1 0 1 1 1 1
  • 24. All computations can be done with an NAND gate.  The most sophisticated computer can be made with NAND gates from Radio Shack.  Need millions of them.
  • 25. 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
  • 26. How do I add larger numbers?  You can write any number in binary.
  • 27. Add binary numbers.  Adding larger number just adds more columns.
  • 28. Gang circuits in sequence.  To construct a full adder circuit, we'll need to gang these simple circuits together.  The “carry” value will become an input for the subsequent  Now have three inputs and two outputs.  Since we'll have both an input carry and an output carry, we'll designate them as CIN and COUT.
  • 29. Different Version of Full Adder.  Now we can add two binary bits together  accounting for a possible carry from the next lower order of magnitude.  sending a carry to the next higher order of magnitude. One-bit Full Adder with Carry-In and Carry-Out CI A B Q CO 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1
  • 30. Add multiple bits.  A full adder must be allocated for each bit to be added simultaneously.  To add two 4-bit numbers to produce a 4-bit sum (with a possible carry), you would need four full adders with carry lines cascaded.  By extension, two binary numbers of any size may be added in this manner.  http://www.play-hookey.com/digital/adder.html
  • 31. Gates from electrical relays.  NOT gate  AND gate  OR gate
  • 32. Test your knowledge on Boolean logic.  http://educ.queensu.ca/~compsci/resources/BoolLogic /assocdistrib.html
  • 33. Here is a great resource for digital electronics.  http://hyperphysics.phy- astr.gsu.edu/Hbase/electronic/digcktcon.html#c1
  • 34. Following are extra slides which may not be used.
  • 36. “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 A B Q 0 0 1 0 1 0 1 0 0 1 1 1
  • 37. Write out the logic tables for these two circuits.