SlideShare a Scribd company logo
Department of Communication Engineering, NCTU 1
Unit 3 Boolean Algebra
(Continued)
1. Exclusive-OR Operation
2. Consensus Theorem
Department of Communication Engineering, NCTU 2
3.1 Multiplying Out and Factoring
Expressions
Department of Communication Engineering, NCTU 3
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 Distributive laws
 X(Y+Z) = XY+XZ
 X+YZ = (X+Y)(X+Z)
 The third distributive law
 (X+Y)(X' + Z) = XZ+X' Y
 Used for multiplying out
Department of Communication Engineering, NCTU 4
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 Also used for factoring
Department of Communication Engineering, NCTU 5
3.2 Exclusive-OR and Equivalence
Operations
Department of Communication Engineering, NCTU 6
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 Exclusive-OR, (⊕) is defined as follows
0⊕0=0 0⊕1=1 1⊕0=1 1⊕1=0
 Exclusive-OR is often abbreviated as XOR
 The truth table for X⊕Y is
01 1
11 0
10 1
00 0
C=A ⊕ BA B
Department of Communication Engineering, NCTU 7
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 The logic symbol for X⊕Y
 X⊕Y = X’Y+XY’= (X+Y)(X’+Y’)
 (X⊕Y) ⊕ Z = X⊕Y ⊕ Z
 E.g.
1 1
+ 0 1
1 0 0
Adder
Department of Communication Engineering, NCTU 8
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 Theorems applied exclusive-OR
 X⊕0 = X (3-8)
 X⊕1 = X' (3-9)
 X⊕X = 0 (3-10)
 X⊕X' = 1 (3-11)
 X⊕Y = Y⊕X (commutative law) (3-12)
 (X⊕Y)⊕Z = X⊕(Y⊕Z)
= X⊕Y⊕Z (associative law) (3-13)
 X⊕0 = X (3-8)
 X(Y⊕Z) = XY⊕XZ (distributive law) (3-14)
 (X⊕Y)' = X⊕Y' = X'⊕Y = XY+X'Y' (3-15)
Department of Communication Engineering, NCTU 9
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 Equivalence operation
0 ≡ 0 = 1 0 ≡ 1=0 1 ≡ 0=0 1 ≡ 1=1
 The truth table for X ≡ Y is
11 1
01 0
00 1
10 0
C=A ≡ BA B
Department of Communication Engineering, NCTU 10
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 The logic symbol for X ≡ Y
 Equivalence gate is often called exclusive-NOR (XNOR)
 (X ≡ Y) = XY + X'Y'
01 1
01 0
00 1
10 0
C=(A+B) 'A B
11 1
01 0
00 1
10 0
C=A ≡ BA B
NORXNOR
Department of Communication Engineering, NCTU 11
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 How to simplify an expression that contains XOR or
XNOR
 Substitute X⊕Y with X'Y+XY'
 Substitute X ≡ Y with XY + X'Y'
 E.g.
F = (A'B≡C) + (B⊕AC')
= [(A'B)C + (A'B)'C'] + [B'(AC') + B(AC')']
= A'BC + (A+B')C' + AB'C' + B(A' + C)
= B(A'C + A' + C) + C'(A + B' + AB')
= B(A' + C) + C'(A + B')
Department of Communication Engineering, NCTU 12
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 When manipulating expressions that contain several XOR
or XNOR operations:
(XY' + X'Y)' = XY + X'Y' (3-19)
 E.g.
A'⊕B⊕C = [A'B' + (A')'B]⊕C
= (A'B' + AB)C' + (A'B' + AB)'C (by (3-6))
= (A'B' + AB)C' + (A'B + AB')C (by (3-19))
= A'B'C' + ABC' + A'BC + AB'C
Department of Communication Engineering, NCTU 13
3.3 The Consensus Theorem
Department of Communication Engineering, NCTU 14
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 XY + X'Z + YZ = XY + X'Z
proof :
XY + X'Z + YZ = XY + X'Z + (X + X')YZ
= (XY + XYZ) + (X'Z + X'YZ)
= XY(1 + Z) + X'Z(1 + Y) = XY + X'Z
 The dual form of the consensus theorem is
(X+Y)(X'+Z)(Y+Z) = (X+Y)(X'+Z)
proof :
(X'Y' + XZ' + Y'Z')' = (X'Y' + XZ') '
= (X+Y)(X'+Z)(Y+Z) = (X+Y)(X'+Z)
Department of Communication Engineering, NCTU 15
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 The final result obtained by application of the consensus
theorem may depend on the order in which terms are
eliminated
 E.g
 Sometimes, we may add a term using the consensus
theorem, then use the added terms to eliminate other terms
 E.g F = ABCD + B’CDE + A’B’+ BCE’
add ACDE
then F = ABCD + B’CDE + A’B’+ BCE’+ ACDE
F = A’B’+ BCE’+ ACDE
A C D A BD BCD    ABC ACD
A C D A BD
  
   BCD ABC  ACD 
Department of Communication Engineering, NCTU 16
3.4 Algebraic Simplification of
Switching Expressions
Department of Communication Engineering, NCTU 17
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 Basic ways of simplifying switching functions
 Combining terms : use XY + XY' = X
E.g. abc'd' + abcd' = abd'
 Eliminating terms : use X + XY = X or the consensus
theorem
E.g. a'b + a'bc = a'b
E.g. a'bc' + bcd + a'bd = a'bc' + bcd
 Eliminating laterals : use X + X'Y = X + Y
E.g. A'B+A'B'C'D'+ABCD'
= A'(B + B'C'D') + ABCD‘
= A'(B + C'D') + ABCD‘
= B(A' + ACD') + A'C'D‘
= B(A' + CD') + A'C'D‘
= A'B + BCD' + A'C'D' (3-26)
Department of Communication Engineering, NCTU 18
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 Adding redundant terms : add XX‘, multiply (X+X') etc.
E.g.
WX+XY+X'Z'+WY'Z' (add WZ' by consensus theorem)
=WX+XY+X'Z'+WY'Z'+WZ' (eliminate WY'Z')
=WX+XY+X'Z'+WZ' (eliminate WZ')
=WX+XY+X'Z' (3-27)
Department of Communication Engineering, NCTU 19
Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu
 Some of the theorems of Boolean algebra are not true for
ordinary algebra
 If X + Y = X + Z, then Y = Z (not true)
1 + 0 = 1 + 1 but 10
 If XY = XZ, then Y = Z (not true for X=0)
However,
 If Y = Z, then X + Y = X + Z (true)
 If Y = Z, then XY = XZ (true)

More Related Content

What's hot

Digital Differential Analyzer Line Drawing Algorithm
Digital Differential Analyzer Line Drawing AlgorithmDigital Differential Analyzer Line Drawing Algorithm
Digital Differential Analyzer Line Drawing Algorithm
Kasun Ranga Wijeweera
 
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
PrathimaBaliga
 
bresenham circles and polygons in computer graphics(Computer graphics tutorials)
bresenham circles and polygons in computer graphics(Computer graphics tutorials)bresenham circles and polygons in computer graphics(Computer graphics tutorials)
bresenham circles and polygons in computer graphics(Computer graphics tutorials)
Daroko blog(www.professionalbloggertricks.com)
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
LOKENDRA PRAJAPATI
 
Digital Logic Design-Lecture 5
Digital Logic Design-Lecture 5Digital Logic Design-Lecture 5
Digital Logic Design-Lecture 5
Samia Sultana
 
DDA algorithm
DDA algorithmDDA algorithm
DDA algorithm
Yash Patel
 
Computational geometry
Computational geometryComputational geometry
Computational geometrymurali9120
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusMatthew Leingang
 
Line drawing algorithm and antialiasing techniques
Line drawing algorithm and antialiasing techniquesLine drawing algorithm and antialiasing techniques
Line drawing algorithm and antialiasing techniques
Ankit Garg
 
Clipping 22
Clipping 22Clipping 22
Clipping 22
Lokesh Reddy
 
Bca3010 computer oreineted numerical methods
Bca3010   computer oreineted numerical methodsBca3010   computer oreineted numerical methods
Bca3010 computer oreineted numerical methodssmumbahelp
 
A Tutorial on Computational Geometry
A Tutorial on Computational GeometryA Tutorial on Computational Geometry
A Tutorial on Computational Geometry
Minh-Tri Pham
 
Computer graphics 2
Computer graphics 2Computer graphics 2
Computer graphics 2
Prabin Gautam
 
ACM ICPC 2014 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2014 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2014 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2014 NEERC (Northeastern European Regional Contest) Problems Review
Roman Elizarov
 
Eight Formalisms for Defining Graph Models
Eight Formalisms for Defining Graph ModelsEight Formalisms for Defining Graph Models
Eight Formalisms for Defining Graph Models
Jérôme KUNEGIS
 
A mid point ellipse drawing algorithm on a hexagonal grid
A mid  point ellipse drawing algorithm on a hexagonal gridA mid  point ellipse drawing algorithm on a hexagonal grid
A mid point ellipse drawing algorithm on a hexagonal grid
S M K
 
Dda algorithm
Dda algorithmDda algorithm
Dda algorithm
Mani Kanth
 
Computer graphics notes watermark
Computer graphics notes watermarkComputer graphics notes watermark
Computer graphics notes watermark
RAJKIYA ENGINEERING COLLEGE, BANDA
 
E:\1 Algebra\Unit 5 Polynomials\Quizzes&Tests\Polynomial Practice Tes...
E:\1   Algebra\Unit 5   Polynomials\Quizzes&Tests\Polynomial Practice Tes...E:\1   Algebra\Unit 5   Polynomials\Quizzes&Tests\Polynomial Practice Tes...
E:\1 Algebra\Unit 5 Polynomials\Quizzes&Tests\Polynomial Practice Tes...guestc27ed0c
 
Introduction to homography
Introduction to homographyIntroduction to homography
Introduction to homographyShih-Hsiang Lin
 

What's hot (20)

Digital Differential Analyzer Line Drawing Algorithm
Digital Differential Analyzer Line Drawing AlgorithmDigital Differential Analyzer Line Drawing Algorithm
Digital Differential Analyzer Line Drawing Algorithm
 
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
 
bresenham circles and polygons in computer graphics(Computer graphics tutorials)
bresenham circles and polygons in computer graphics(Computer graphics tutorials)bresenham circles and polygons in computer graphics(Computer graphics tutorials)
bresenham circles and polygons in computer graphics(Computer graphics tutorials)
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
Digital Logic Design-Lecture 5
Digital Logic Design-Lecture 5Digital Logic Design-Lecture 5
Digital Logic Design-Lecture 5
 
DDA algorithm
DDA algorithmDDA algorithm
DDA algorithm
 
Computational geometry
Computational geometryComputational geometry
Computational geometry
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of Calculus
 
Line drawing algorithm and antialiasing techniques
Line drawing algorithm and antialiasing techniquesLine drawing algorithm and antialiasing techniques
Line drawing algorithm and antialiasing techniques
 
Clipping 22
Clipping 22Clipping 22
Clipping 22
 
Bca3010 computer oreineted numerical methods
Bca3010   computer oreineted numerical methodsBca3010   computer oreineted numerical methods
Bca3010 computer oreineted numerical methods
 
A Tutorial on Computational Geometry
A Tutorial on Computational GeometryA Tutorial on Computational Geometry
A Tutorial on Computational Geometry
 
Computer graphics 2
Computer graphics 2Computer graphics 2
Computer graphics 2
 
ACM ICPC 2014 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2014 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2014 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2014 NEERC (Northeastern European Regional Contest) Problems Review
 
Eight Formalisms for Defining Graph Models
Eight Formalisms for Defining Graph ModelsEight Formalisms for Defining Graph Models
Eight Formalisms for Defining Graph Models
 
A mid point ellipse drawing algorithm on a hexagonal grid
A mid  point ellipse drawing algorithm on a hexagonal gridA mid  point ellipse drawing algorithm on a hexagonal grid
A mid point ellipse drawing algorithm on a hexagonal grid
 
Dda algorithm
Dda algorithmDda algorithm
Dda algorithm
 
Computer graphics notes watermark
Computer graphics notes watermarkComputer graphics notes watermark
Computer graphics notes watermark
 
E:\1 Algebra\Unit 5 Polynomials\Quizzes&Tests\Polynomial Practice Tes...
E:\1   Algebra\Unit 5   Polynomials\Quizzes&Tests\Polynomial Practice Tes...E:\1   Algebra\Unit 5   Polynomials\Quizzes&Tests\Polynomial Practice Tes...
E:\1 Algebra\Unit 5 Polynomials\Quizzes&Tests\Polynomial Practice Tes...
 
Introduction to homography
Introduction to homographyIntroduction to homography
Introduction to homography
 

Similar to Unit 03

Applied mathematics for complex engineering
Applied mathematics for complex engineeringApplied mathematics for complex engineering
Applied mathematics for complex engineering
Sahl Buhary
 
ECE 2103_L6 Boolean Algebra Canonical Forms.pptx
ECE 2103_L6 Boolean Algebra Canonical Forms.pptxECE 2103_L6 Boolean Algebra Canonical Forms.pptx
ECE 2103_L6 Boolean Algebra Canonical Forms.pptx
MdJubayerFaisalEmon
 
On approximating the Riemannian 1-center
On approximating the Riemannian 1-centerOn approximating the Riemannian 1-center
On approximating the Riemannian 1-center
Frank Nielsen
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
Dilum Bandara
 
Decoding BCH-Code.pdf
Decoding BCH-Code.pdfDecoding BCH-Code.pdf
Decoding BCH-Code.pdf
KundanSasi
 
Mathematics.pdf
Mathematics.pdfMathematics.pdf
Mathematics.pdf
zaraa30
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common Subsequence
Swati Swati
 
1525 equations of lines in space
1525 equations of lines in space1525 equations of lines in space
1525 equations of lines in space
Dr Fereidoun Dejahang
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsLekashri Subramanian
 
Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix DescriptionsRotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Solo Hermelin
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebraSudheesh S Madhav
 
4 hydrology geostatistics-part_2
4 hydrology geostatistics-part_2 4 hydrology geostatistics-part_2
4 hydrology geostatistics-part_2
Riccardo Rigon
 
IIT JAM MATH 2018 Question Paper | Sourav Sir's Classes
IIT JAM MATH 2018 Question Paper | Sourav Sir's ClassesIIT JAM MATH 2018 Question Paper | Sourav Sir's Classes
IIT JAM MATH 2018 Question Paper | Sourav Sir's Classes
SOURAV DAS
 
Linear Regression Ordinary Least Squares Distributed Calculation Example
Linear Regression Ordinary Least Squares Distributed Calculation ExampleLinear Regression Ordinary Least Squares Distributed Calculation Example
Linear Regression Ordinary Least Squares Distributed Calculation Example
Marjan Sterjev
 
VECTOR ANALYSIS- 2
VECTOR ANALYSIS- 2VECTOR ANALYSIS- 2
VECTOR ANALYSIS- 2
shahzadebaujiti
 
2007
20072007

Similar to Unit 03 (20)

Applied mathematics for complex engineering
Applied mathematics for complex engineeringApplied mathematics for complex engineering
Applied mathematics for complex engineering
 
Chapter-3.ppt
Chapter-3.pptChapter-3.ppt
Chapter-3.ppt
 
ECE 2103_L6 Boolean Algebra Canonical Forms.pptx
ECE 2103_L6 Boolean Algebra Canonical Forms.pptxECE 2103_L6 Boolean Algebra Canonical Forms.pptx
ECE 2103_L6 Boolean Algebra Canonical Forms.pptx
 
On approximating the Riemannian 1-center
On approximating the Riemannian 1-centerOn approximating the Riemannian 1-center
On approximating the Riemannian 1-center
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
Decoding BCH-Code.pdf
Decoding BCH-Code.pdfDecoding BCH-Code.pdf
Decoding BCH-Code.pdf
 
Mathematics.pdf
Mathematics.pdfMathematics.pdf
Mathematics.pdf
 
05_AJMS_332_21.pdf
05_AJMS_332_21.pdf05_AJMS_332_21.pdf
05_AJMS_332_21.pdf
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common Subsequence
 
1525 equations of lines in space
1525 equations of lines in space1525 equations of lines in space
1525 equations of lines in space
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 units
 
3rd Semester Mechanical Engineering (2013-December) Question Papers
3rd Semester Mechanical Engineering (2013-December) Question Papers3rd Semester Mechanical Engineering (2013-December) Question Papers
3rd Semester Mechanical Engineering (2013-December) Question Papers
 
Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix DescriptionsRotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebra
 
130553704223906250
130553704223906250130553704223906250
130553704223906250
 
4 hydrology geostatistics-part_2
4 hydrology geostatistics-part_2 4 hydrology geostatistics-part_2
4 hydrology geostatistics-part_2
 
IIT JAM MATH 2018 Question Paper | Sourav Sir's Classes
IIT JAM MATH 2018 Question Paper | Sourav Sir's ClassesIIT JAM MATH 2018 Question Paper | Sourav Sir's Classes
IIT JAM MATH 2018 Question Paper | Sourav Sir's Classes
 
Linear Regression Ordinary Least Squares Distributed Calculation Example
Linear Regression Ordinary Least Squares Distributed Calculation ExampleLinear Regression Ordinary Least Squares Distributed Calculation Example
Linear Regression Ordinary Least Squares Distributed Calculation Example
 
VECTOR ANALYSIS- 2
VECTOR ANALYSIS- 2VECTOR ANALYSIS- 2
VECTOR ANALYSIS- 2
 
2007
20072007
2007
 

More from Partha_bappa

Alternative Vs Complementary Medicine
Alternative Vs Complementary MedicineAlternative Vs Complementary Medicine
Alternative Vs Complementary Medicine
Partha_bappa
 
Unit 07
Unit 07Unit 07
Unit 07
Partha_bappa
 
Logic Design
Logic DesignLogic Design
Logic Design
Partha_bappa
 
Digital Communication
Digital CommunicationDigital Communication
Digital Communication
Partha_bappa
 
Media Literacy
Media LiteracyMedia Literacy
Media Literacy
Partha_bappa
 
Fourier supplementals
Fourier supplementalsFourier supplementals
Fourier supplementals
Partha_bappa
 
Biology questions answer
Biology questions answerBiology questions answer
Biology questions answer
Partha_bappa
 
INTERNAL Assign no 207( JAIPUR NATIONAL UNI)
INTERNAL Assign no   207( JAIPUR NATIONAL UNI)INTERNAL Assign no   207( JAIPUR NATIONAL UNI)
INTERNAL Assign no 207( JAIPUR NATIONAL UNI)
Partha_bappa
 
internal Assign no 206 ( JAIPUR NATIONAL UNI)
internal Assign no   206 ( JAIPUR NATIONAL UNI)internal Assign no   206 ( JAIPUR NATIONAL UNI)
internal Assign no 206 ( JAIPUR NATIONAL UNI)
Partha_bappa
 
INTERNATIONAL Assign no 205 (JAIPUR NATIONAL UNI)
INTERNATIONAL Assign no 205 (JAIPUR NATIONAL UNI)INTERNATIONAL Assign no 205 (JAIPUR NATIONAL UNI)
INTERNATIONAL Assign no 205 (JAIPUR NATIONAL UNI)
Partha_bappa
 
INTERNAL Assign no 4 ( JAIPUR INTERNAL UNI)
INTERNAL Assign no   4 ( JAIPUR INTERNAL UNI)INTERNAL Assign no   4 ( JAIPUR INTERNAL UNI)
INTERNAL Assign no 4 ( JAIPUR INTERNAL UNI)
Partha_bappa
 

More from Partha_bappa (11)

Alternative Vs Complementary Medicine
Alternative Vs Complementary MedicineAlternative Vs Complementary Medicine
Alternative Vs Complementary Medicine
 
Unit 07
Unit 07Unit 07
Unit 07
 
Logic Design
Logic DesignLogic Design
Logic Design
 
Digital Communication
Digital CommunicationDigital Communication
Digital Communication
 
Media Literacy
Media LiteracyMedia Literacy
Media Literacy
 
Fourier supplementals
Fourier supplementalsFourier supplementals
Fourier supplementals
 
Biology questions answer
Biology questions answerBiology questions answer
Biology questions answer
 
INTERNAL Assign no 207( JAIPUR NATIONAL UNI)
INTERNAL Assign no   207( JAIPUR NATIONAL UNI)INTERNAL Assign no   207( JAIPUR NATIONAL UNI)
INTERNAL Assign no 207( JAIPUR NATIONAL UNI)
 
internal Assign no 206 ( JAIPUR NATIONAL UNI)
internal Assign no   206 ( JAIPUR NATIONAL UNI)internal Assign no   206 ( JAIPUR NATIONAL UNI)
internal Assign no 206 ( JAIPUR NATIONAL UNI)
 
INTERNATIONAL Assign no 205 (JAIPUR NATIONAL UNI)
INTERNATIONAL Assign no 205 (JAIPUR NATIONAL UNI)INTERNATIONAL Assign no 205 (JAIPUR NATIONAL UNI)
INTERNATIONAL Assign no 205 (JAIPUR NATIONAL UNI)
 
INTERNAL Assign no 4 ( JAIPUR INTERNAL UNI)
INTERNAL Assign no   4 ( JAIPUR INTERNAL UNI)INTERNAL Assign no   4 ( JAIPUR INTERNAL UNI)
INTERNAL Assign no 4 ( JAIPUR INTERNAL UNI)
 

Recently uploaded

一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 

Recently uploaded (20)

一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 

Unit 03

  • 1. Department of Communication Engineering, NCTU 1 Unit 3 Boolean Algebra (Continued) 1. Exclusive-OR Operation 2. Consensus Theorem
  • 2. Department of Communication Engineering, NCTU 2 3.1 Multiplying Out and Factoring Expressions
  • 3. Department of Communication Engineering, NCTU 3 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  Distributive laws  X(Y+Z) = XY+XZ  X+YZ = (X+Y)(X+Z)  The third distributive law  (X+Y)(X' + Z) = XZ+X' Y  Used for multiplying out
  • 4. Department of Communication Engineering, NCTU 4 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  Also used for factoring
  • 5. Department of Communication Engineering, NCTU 5 3.2 Exclusive-OR and Equivalence Operations
  • 6. Department of Communication Engineering, NCTU 6 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  Exclusive-OR, (⊕) is defined as follows 0⊕0=0 0⊕1=1 1⊕0=1 1⊕1=0  Exclusive-OR is often abbreviated as XOR  The truth table for X⊕Y is 01 1 11 0 10 1 00 0 C=A ⊕ BA B
  • 7. Department of Communication Engineering, NCTU 7 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  The logic symbol for X⊕Y  X⊕Y = X’Y+XY’= (X+Y)(X’+Y’)  (X⊕Y) ⊕ Z = X⊕Y ⊕ Z  E.g. 1 1 + 0 1 1 0 0 Adder
  • 8. Department of Communication Engineering, NCTU 8 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  Theorems applied exclusive-OR  X⊕0 = X (3-8)  X⊕1 = X' (3-9)  X⊕X = 0 (3-10)  X⊕X' = 1 (3-11)  X⊕Y = Y⊕X (commutative law) (3-12)  (X⊕Y)⊕Z = X⊕(Y⊕Z) = X⊕Y⊕Z (associative law) (3-13)  X⊕0 = X (3-8)  X(Y⊕Z) = XY⊕XZ (distributive law) (3-14)  (X⊕Y)' = X⊕Y' = X'⊕Y = XY+X'Y' (3-15)
  • 9. Department of Communication Engineering, NCTU 9 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  Equivalence operation 0 ≡ 0 = 1 0 ≡ 1=0 1 ≡ 0=0 1 ≡ 1=1  The truth table for X ≡ Y is 11 1 01 0 00 1 10 0 C=A ≡ BA B
  • 10. Department of Communication Engineering, NCTU 10 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  The logic symbol for X ≡ Y  Equivalence gate is often called exclusive-NOR (XNOR)  (X ≡ Y) = XY + X'Y' 01 1 01 0 00 1 10 0 C=(A+B) 'A B 11 1 01 0 00 1 10 0 C=A ≡ BA B NORXNOR
  • 11. Department of Communication Engineering, NCTU 11 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  How to simplify an expression that contains XOR or XNOR  Substitute X⊕Y with X'Y+XY'  Substitute X ≡ Y with XY + X'Y'  E.g. F = (A'B≡C) + (B⊕AC') = [(A'B)C + (A'B)'C'] + [B'(AC') + B(AC')'] = A'BC + (A+B')C' + AB'C' + B(A' + C) = B(A'C + A' + C) + C'(A + B' + AB') = B(A' + C) + C'(A + B')
  • 12. Department of Communication Engineering, NCTU 12 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  When manipulating expressions that contain several XOR or XNOR operations: (XY' + X'Y)' = XY + X'Y' (3-19)  E.g. A'⊕B⊕C = [A'B' + (A')'B]⊕C = (A'B' + AB)C' + (A'B' + AB)'C (by (3-6)) = (A'B' + AB)C' + (A'B + AB')C (by (3-19)) = A'B'C' + ABC' + A'BC + AB'C
  • 13. Department of Communication Engineering, NCTU 13 3.3 The Consensus Theorem
  • 14. Department of Communication Engineering, NCTU 14 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  XY + X'Z + YZ = XY + X'Z proof : XY + X'Z + YZ = XY + X'Z + (X + X')YZ = (XY + XYZ) + (X'Z + X'YZ) = XY(1 + Z) + X'Z(1 + Y) = XY + X'Z  The dual form of the consensus theorem is (X+Y)(X'+Z)(Y+Z) = (X+Y)(X'+Z) proof : (X'Y' + XZ' + Y'Z')' = (X'Y' + XZ') ' = (X+Y)(X'+Z)(Y+Z) = (X+Y)(X'+Z)
  • 15. Department of Communication Engineering, NCTU 15 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  The final result obtained by application of the consensus theorem may depend on the order in which terms are eliminated  E.g  Sometimes, we may add a term using the consensus theorem, then use the added terms to eliminate other terms  E.g F = ABCD + B’CDE + A’B’+ BCE’ add ACDE then F = ABCD + B’CDE + A’B’+ BCE’+ ACDE F = A’B’+ BCE’+ ACDE A C D A BD BCD    ABC ACD A C D A BD       BCD ABC  ACD 
  • 16. Department of Communication Engineering, NCTU 16 3.4 Algebraic Simplification of Switching Expressions
  • 17. Department of Communication Engineering, NCTU 17 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  Basic ways of simplifying switching functions  Combining terms : use XY + XY' = X E.g. abc'd' + abcd' = abd'  Eliminating terms : use X + XY = X or the consensus theorem E.g. a'b + a'bc = a'b E.g. a'bc' + bcd + a'bd = a'bc' + bcd  Eliminating laterals : use X + X'Y = X + Y E.g. A'B+A'B'C'D'+ABCD' = A'(B + B'C'D') + ABCD‘ = A'(B + C'D') + ABCD‘ = B(A' + ACD') + A'C'D‘ = B(A' + CD') + A'C'D‘ = A'B + BCD' + A'C'D' (3-26)
  • 18. Department of Communication Engineering, NCTU 18 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  Adding redundant terms : add XX‘, multiply (X+X') etc. E.g. WX+XY+X'Z'+WY'Z' (add WZ' by consensus theorem) =WX+XY+X'Z'+WY'Z'+WZ' (eliminate WY'Z') =WX+XY+X'Z'+WZ' (eliminate WZ') =WX+XY+X'Z' (3-27)
  • 19. Department of Communication Engineering, NCTU 19 Logic Design Unit 3 Boolean Algebra (Continued) Sau-Hsuan Wu  Some of the theorems of Boolean algebra are not true for ordinary algebra  If X + Y = X + Z, then Y = Z (not true) 1 + 0 = 1 + 1 but 10  If XY = XZ, then Y = Z (not true for X=0) However,  If Y = Z, then X + Y = X + Z (true)  If Y = Z, then XY = XZ (true)