Boolean Algebra
2020
1
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 a foundation for
designing and analyzing digital systems!
Boolean Algebra and Logic
Gates 2
Boolean Variables and Values
A Boolean variable, usually denoted in
common letters, as a, b,..x. y etc can take
only two values 0 and 1.
So we can say x = 0 or x = 1 and y = 0 or y
= 1 but these are the ONLY values the
Boolean variables x and y can take.
3
Boolean functions
• A Boolean function F(x, y) takes Boolean
variables and outputs a Boolean value.
• For instance, we can have
F(x, y) = x + x.y where x and y are
Boolean variables.
• Again, F(x, y) = xy’ as taken from the Unit
notes
4
Logical Operators
• In the last slide, we had the Boolean
function F(x, y) = x + x.y
• Does the function expression involve
operators?
5
Logical Operators
F(x, y) = x + x.y
6
What are these operators?
Logical Operators
• Logical operators operate on
binary values and binary variables.
• For instance 0.1 = 0 and 1 + 1 = 1
so we have to learn a new
arithmetic!
7
George Boole (1815-1864)
8
George Boole was
a largely self-taught
English
mathematician,
philosopher and
logician, most of
whose short career
was spent as the
first professor of
mathematics at
Queen's College,
Cork in Ireland.
Boolean Arithmetic
4–9
OR AND
0 + 0 = 0 0 * 0 = 0
0 + 1 = 1 0 * 1 = 0
1 + 0 = 1 1 * 0 = 0
1 + 1 = 1 1 * 1 = 1
NEGATION
0’ = 1 1’ = 0
Boolean Single Value Theorems
4–10
x 1 x + 1
0 1 1
1 1 1
We can prove the above assertions using
truth tables as follows:
How can you
interpret this
truth table?
11
Absorption Law
Use a truth table to show that for two
Boolean variables x, y and z: x + xy = x
x y xy x + xy
0 0
0 1
1 0
1 1
12
Absorption Law
Use a truth table to show that for two
Boolean variables x, y and z: x + xy = x
x y xy x + xy
0 0 0 0
0 1 0 0
1 0 0 1
1 1 1 1
Boolean Expression Calculator
13
https://www.dcode.fr/boolean-expressions-calculator
Boolean Algebra Theorems
4–14
Boolean Algebraic Proofs
• Our primary reason for doing proofs is to
learn:
– Careful and efficient use of the identities and
theorems of Boolean algebra, and
– How to choose the appropriate identity or
theorem to apply to make forward progress,
irrespective of the application.
Boolean Algebra and Logic
Gates 15
Boolean Algebra
16
Boolean algebra refers to symbolic manipulation of expressions made up of boolean
variables and boolean operators. The familiar identity, commutative, distributive, and
associative axioms from algebra define the axioms of Boolean algebra, along with the
two complementary axioms.
Use Boolean algebra to prove that: x + x · y = x
Proof Steps Justification
x + x · y
= x · 1 + x · y Identity element: x · 1 = x
= x · ( 1 + y) Distributive
= x · 1 1 + y = 1
= x Identity element
Boolean Algebra and Logic
Gates 17
Boolean Algebra
18
In addition, we also have the following;
Use Boolean algebra to show that (x + y) (x + z) = x + yz
19
Proof Steps Justification
(x + y)(x + z)
= x x + xz + yx + yz Expanding
= x + xz + yx + yz Idempotent Law of
Multiplication
= x + x (z + y) + yz Distributive Law
= x + yz Absorption Law
Use Boolean algebra to show that (x + y) (x + z) = x + yz
20
Proof Steps Justification
(x + y)(x + z)
= x + yz Absorption Law
Is it still true that: (x + y)(x + z) = x(x + z) + y (x + z)
21
x y z x + y x + z (x +y)(x + z) x(x + z) y(x + z) x(x+z)+y(x+z)
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Is it still true that: (x + y)(x + z) = x(x + z) + y (x + z)
22
x y z x + y x + z (x +y)(x + z) x(x + z) y(x + z) x(x+z)+y(x+z)
0 0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0
0 1 0 1 0 0 0 0 0
0 1 1 1 1 1 0 1 1
1 0 0 1 1 1 1 0 1
1 0 1 1 1 1 1 0 1
1 1 0 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
Boolean Functions
23
A Boolean function accepts binary inputs and outputs a single
binary value.
A Boolean function is a mathematical function that maps
arguments to a value where the allowable values of range (the
function arguments) and domain (the function value) are just
one of two values, 0 or 1.
We usually denote Boolean functions as F(x, y) where x and y
are Boolean variables. We use truth tables to evaluate the
functions.
https://introcs.cs.princeton.edu/java/71boolean/
Boolean function
• We can define a Boolean function:
F(x, y) = (x AND y) OR (NOT x AND NOT y)
• We write: F(x, y, z) = xy + x’y’
• and then write a “truth table” for it:
24
x y x’ y’ xy x’y’ F(x, y ,z) = xy + x’y’)
0 0 1 1 0 1 1
0 1 1 0 0 0 0
1 0 0 1 0 0 0
1 1 0 0 1 0 1
• Finally, use gates to implement the function: F(x, y) = xy + x’y
• We use two AND gates and one OR gate.
Boolean function
• Another example:
F(x, y, z) = (x AND y AND (NOT z))
OR (x AND (NOT y) AND z)
OR ((NOT x) AND Y AND Z)
OR xyz
• We write this as:
F(x, y, z) = xyz’ + xy’z + x’yz + xyz
25
• Can this function be simplified?
• We can use the Boolean Expression Calculator to help with
this…
Boolean Expression Calculator
26
https://www.dcode.fr/boolean-expressions-calculator
Logicly [logicly.ly]
The application “Logicly” can be used to simulate the circuit as
shown:
You can take a free trial and then either download it on your
computer to use it or use it online.
27
Building the circuit in logicly
28
The gate circuit and truth table
29
Logic Gate Circuit
30
What practical use would this circuit have? Suggestions…
Minterms
A minterm, denoted by mi, where 0
≤ I < 2n, is a product (AND) of the n
variables in which each variable is
complemented if the value
assigned to it is 0, and
uncomplemented if it is 1.
We speak of the 1-minterms =
minterms for which the function F =
1 and 0-minterms, the minterms for
which the function F = 0.
Any Boolean function can be
expressed as a sum (OR) of its 1-
minterms. We write F(x, y z) = ∑(3, 5, 6, 7)
Maxterms
32
Boolean Function F(x, y, z) = x + yz
33
The truth table can show us all the outputs of F(x, y, z) for various
values of the inputs:.
x y z yz x + yz
0 0 0 0 m0 = 0
0 0 1 0 m1 = 0
0 1 0 0 m2 = 0
0 1 1 1 m3 = 1
1 0 0 0 m4 = 1
1 0 1 0 m5 = 1
1 1 0 0 m6 = 1
1 1 1 1 m7 = 1
So here we have F(x, y, z) = x’yz + xy’z’ + xy’z + xyz’ +xyz
Boolean Expression Calculator
34
F(x, y, z) = x’yz + xy’z’ + xy’z + xyz’ +xyz
Spot the error?
Boolean Expression Calculator
35
Congratulations!!
Boolean Expression Calculator
36
F(x, y, z) = x’yz + xy’z’ + xy’z + xyz’ +xyz = x + yz
37
F(x, y, z) = x’yz + xy’z’ + xy’z + xyz’ +xyz = x + yz
How many gates does each of the expressions use?
Recall: (x + y) (x + z) = x + yz
and now we have
x + yz = x’yz + xy’z’ + xy’z + xyz’ +xyz
Is there a way to prove all this algebraically…
38
Proof Steps Justification
x’yz + xy’z’ + xy’z + xyz’ +xyz
= x’yz + xy’z’ + xy’z + xyz’ +xyz + xyz Idempotent
= (x’ + x) yz + xy (z + z’) + xy’(z + z’) Distributive
= yz + xy + xy’ Complement law
= x(y + y’) + yz Distributive Law
= x + yz Absorption law
Show that: x’yz + xy’z + xyz’ +xyz = xy + yz + + yz
39
Proof Steps Justification
x’yz + xy’z + xyz’ +xyz
= x’yz + xy’z + xyz’ +xyz +xyz + xyz Idempotent
= xy(z + z’) + xz (y + y’) + yz (x + x’) Distributive
= xy + yz + xz Complement law
We have seen that (x + y) (x + z) = x + yz
40
(x + y) (x + z) is a Product of Sums (POS)
expression
snd x + yz is a Sum of Products (SOP)
So F(x, y z) = (x + y)(x + z) = x + yz
Ie. The same function can be represented in
SOP or POS format.
Express the function F(x, y, z) = x + yz as a
POS expression.
41
Proof Steps Justification
x + yz
= x + x (z + y) + yz
= x + xz + xy + yz
= xx + xz + xy + yz
= (x + y)(x + z) as per required.
Definitions
42
The boolean expression that we construct is
known as the sum-of-products
representation is also known as the
disjunctive normal form of the function.
A boolean expression consisting entirely
either of minterm or maxterm is called
canonical expression.
43
Express the Boolean function F(a, b, c) = (b + ac’)’(ab’ + c) in
Sum-of-Products form using Boolean algebra laws and
theorems. Express in the minimal expression.
F(a, b, c) = (b + ac’)’(ab’ + c)
= (b’)(ac’)’(ab’ + c) De Morgan’s Law
= b’(a’ + c)(ab’ + c) De Morgan’s law
= (a’b’ + b’c)(ab’ + c) Distributive Law
= a’b’ab’ + a’b’c + b’cab’ + b’cc
= a’b’c + ab’c + b’c
= b’c(a’ + a + 1)
= b’c
44
We had earlier expressed the Boolean function F(a, b, c) = (b + ac’)’(ab’ +
c) in Sum-of-Products form using Boolean algebra laws and theorems.
Express this in canonical form.
F(a, b, c) = (b + ac’)’(ab’ + c)
a b c b’ c’ ac’ b + ac’ (b + ac’)’ ab’ ab’ + c F(a, b, c)
0 0 0 1 1 0 0 1 0 0 0
0 0 1 1 0 0 0 1 0 1 1
0 1 0 0 1 0 1 0 0 0 0
0 1 1 0 0 0 1 0 0 1 0
1 0 0 1 1 1 1 0 1 1 0
1 0 1 1 0 0 0 1 1 1 1
1 1 0 0 1 1 1 0 0 0 0
1 1 1 0 0 0 1 0 0 1 0
F(a, b, c) = a’b’c + ab’c
Canonical Form
• Express in canonical form…F(X, Y, Z) = X Y + Y ‘Z
X Y Z X Y Y’ Y ‘Z F = X Y + Y ‘Z
0 0 0 0 1 0 0
0 0 1 0 1 1 1
0 1 0 0 0 0 0
0 1 1 0 0 0 0
1 0 0 0 1 0 0
1 0 1 0 1 1 1
1 1 0 1 0 0 1
1 1 1 1 0 0 1
46
Claude Shannon
47
Shannon's work became the
foundation of digital circuit
design, as it became widely
known in the electrical
engineering community during
and after World War II. The
theoretical rigor of Shannon's
work superseded the ad hoc
methods that had prevailed
previously..
Boolean Algebra Simplification
Boolean Algebra and Logic
Gates 48
11 1 1
11 1 0
11 0 1
11 0 0
00 1 1
00 1 0
10 0 1
00 0 0
X Y Z F(x, y, z) From the minterms expansion, we have:
F(x, y, z) = x’y’z + xy’z’ +xy’z + xyz’ + xyz
= (x’ + x)y’z + xz’(y’ + y) + xyz
= y’z + xz’y’ + xz’y + xyz
= y’z + x(yz + yz’ + z’y’)
= y’z + x(yz + yz’ + (yz)’)
= y’z + x(1 + yz’)
= x + y’z
We can use the Boolean algebra laws to simplify a function. What is the
formula for F9x, y, z) from the following?
From the Boolean expression to the logic gate diagram…
Boolean Algebra and Logic
Gates 49
11 1 1
11 1 0
11 0 1
11 0 0
00 1 1
00 1 0
10 0 1
00 0 0
X Y Z F(x, y, z) F(x, y, z) = x’y’z + xy’z’ +xy’z + xyz’ + xyz
= (x’ + x)y’z + xz’(y’ + y) + xyz
= y’z + xz’y’ + xz’y + xyz
= y’z + x(yz + yz’ + z’y’)
= y’z + x(yz + yz’ + (yz)’)
= y’z + x(1 + yz’)
= x + y’z
We can use the Boolean algebra laws to simplify a function. What is the
formula for F9x, y, z) from the following?
X
Y F
Z
Logic gates…
50

More Related Content

PPTX
Quick sort
PPT
digital logic design number system
PDF
digital logic design Chapter 2 boolean_algebra_&_logic_gates
PPTX
Multi ways trees
PPT
Avl trees
PPT
2.5 bfs & dfs 02
PPTX
Trees in data structures
PPT
Linear Algebra and Matrix
Quick sort
digital logic design number system
digital logic design Chapter 2 boolean_algebra_&_logic_gates
Multi ways trees
Avl trees
2.5 bfs & dfs 02
Trees in data structures
Linear Algebra and Matrix

What's hot (20)

PPT
Data Structure and Algorithms Binary Search Tree
PPT
Greedy method1
PPTX
Bfs and Dfs
PDF
Matrix algebra
PPTX
Binary Search Tree
PDF
AD3251-Data Structures Design-Notes-Searching-Hashing.pdf
PPT
Asymptotic notations
PPT
KNOWLEDGE REPRESENTATION ISSUES.ppt
PPTX
Ebcdic code 24 1
PDF
Binary tree
PPTX
Selection sort and insertion sort
PPTX
Recursion
PPTX
Queue and its operations
PPT
Greedy Algorihm
PPTX
Dynamic programming
PPTX
Circular link list.ppt
PPT
Fibonacci search
PPTX
Boolean algebra.pptx
PPTX
PPTX
Binary Tree in Data Structure
Data Structure and Algorithms Binary Search Tree
Greedy method1
Bfs and Dfs
Matrix algebra
Binary Search Tree
AD3251-Data Structures Design-Notes-Searching-Hashing.pdf
Asymptotic notations
KNOWLEDGE REPRESENTATION ISSUES.ppt
Ebcdic code 24 1
Binary tree
Selection sort and insertion sort
Recursion
Queue and its operations
Greedy Algorihm
Dynamic programming
Circular link list.ppt
Fibonacci search
Boolean algebra.pptx
Binary Tree in Data Structure
Ad

Similar to DM2020 boolean algebra (20)

PPT
Boolean Algebra and Logic gates ( Chapter 2)
PDF
Chapter 4 logic design
PPT
Boolean Algebra
PPT
Boolean algebra And Logic Gates
PPTX
Chapter No 2.pptx it is a digital logic design
PPTX
Chapter 2.pptx
PDF
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
PDF
Boolean Algebra Boolean Algebra and Logi
PDF
Boolean Algebra SOP POS_Computer Architecture.pdf
PPTX
WINSEM2024-25_ISWE201L_TH_VL2024250503341_2024-12-18_Reference-Material-I.pptx
PPT
boolean_algebra.ppt of all of us and the family will not even have to worry
DOCX
M3 PPT 22ESC143.docx
DOCX
M3 PPT 22ESC143.docx
PPTX
Boolean expression org.
PPTX
Digital Logic Design presentation Boolean Algebra and Logic Gates.pptx
PDF
DLD Chapter-2.pdf
PPT
booleanalgebra-140914001141-phpapp01 (1).ppt
PDF
Lect 2 boolean algebra (4 5-21)
PPTX
Boolean Algebra logic and De Morgan theorem
PPT
Boolean
Boolean Algebra and Logic gates ( Chapter 2)
Chapter 4 logic design
Boolean Algebra
Boolean algebra And Logic Gates
Chapter No 2.pptx it is a digital logic design
Chapter 2.pptx
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
Boolean Algebra Boolean Algebra and Logi
Boolean Algebra SOP POS_Computer Architecture.pdf
WINSEM2024-25_ISWE201L_TH_VL2024250503341_2024-12-18_Reference-Material-I.pptx
boolean_algebra.ppt of all of us and the family will not even have to worry
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
Boolean expression org.
Digital Logic Design presentation Boolean Algebra and Logic Gates.pptx
DLD Chapter-2.pdf
booleanalgebra-140914001141-phpapp01 (1).ppt
Lect 2 boolean algebra (4 5-21)
Boolean Algebra logic and De Morgan theorem
Boolean
Ad

More from Robert Geofroy (11)

PPTX
ESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptx
PPTX
This is the introductory set of slides for the Basic English course.
PDF
Sampling Distribution of Sample proportion
PDF
Dm2021 binary operations
PDF
Set theory
PDF
Permutations 2020
PDF
Datasets
PDF
Course project solutions 2018
PDF
Course project solutions 2019
PPTX
Arguments and methods of proof
PPTX
Using sage maths to solve systems of linear equations
ESOL_COURSE_ INTRODUCTION_R_GEOFROY.pptx
This is the introductory set of slides for the Basic English course.
Sampling Distribution of Sample proportion
Dm2021 binary operations
Set theory
Permutations 2020
Datasets
Course project solutions 2018
Course project solutions 2019
Arguments and methods of proof
Using sage maths to solve systems of linear equations

Recently uploaded (20)

PDF
Climate and Adaptation MCQs class 7 from chatgpt
PPTX
Module on health assessment of CHN. pptx
PDF
semiconductor packaging in vlsi design fab
PDF
HVAC Specification 2024 according to central public works department
PDF
Journal of Dental Science - UDMY (2022).pdf
PDF
Farming Based Livelihood Systems English Notes
PDF
plant tissues class 6-7 mcqs chatgpt.pdf
PDF
English Textual Question & Ans (12th Class).pdf
PDF
Laparoscopic Colorectal Surgery at WLH Hospital
PDF
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
PDF
Civil Department's presentation Your score increases as you pick a category
PPTX
Macbeth play - analysis .pptx english lit
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPT
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
PDF
The TKT Course. Modules 1, 2, 3.for self study
PDF
Literature_Review_methods_ BRACU_MKT426 course material
PDF
Everyday Spelling and Grammar by Kathi Wyldeck
PPTX
Climate Change and Its Global Impact.pptx
Climate and Adaptation MCQs class 7 from chatgpt
Module on health assessment of CHN. pptx
semiconductor packaging in vlsi design fab
HVAC Specification 2024 according to central public works department
Journal of Dental Science - UDMY (2022).pdf
Farming Based Livelihood Systems English Notes
plant tissues class 6-7 mcqs chatgpt.pdf
English Textual Question & Ans (12th Class).pdf
Laparoscopic Colorectal Surgery at WLH Hospital
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
Civil Department's presentation Your score increases as you pick a category
Macbeth play - analysis .pptx english lit
Environmental Education MCQ BD2EE - Share Source.pdf
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
AI-driven educational solutions for real-life interventions in the Philippine...
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
The TKT Course. Modules 1, 2, 3.for self study
Literature_Review_methods_ BRACU_MKT426 course material
Everyday Spelling and Grammar by Kathi Wyldeck
Climate Change and Its Global Impact.pptx

DM2020 boolean algebra

  • 2. 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 a foundation for designing and analyzing digital systems! Boolean Algebra and Logic Gates 2
  • 3. Boolean Variables and Values A Boolean variable, usually denoted in common letters, as a, b,..x. y etc can take only two values 0 and 1. So we can say x = 0 or x = 1 and y = 0 or y = 1 but these are the ONLY values the Boolean variables x and y can take. 3
  • 4. Boolean functions • A Boolean function F(x, y) takes Boolean variables and outputs a Boolean value. • For instance, we can have F(x, y) = x + x.y where x and y are Boolean variables. • Again, F(x, y) = xy’ as taken from the Unit notes 4
  • 5. Logical Operators • In the last slide, we had the Boolean function F(x, y) = x + x.y • Does the function expression involve operators? 5
  • 6. Logical Operators F(x, y) = x + x.y 6 What are these operators?
  • 7. Logical Operators • Logical operators operate on binary values and binary variables. • For instance 0.1 = 0 and 1 + 1 = 1 so we have to learn a new arithmetic! 7
  • 8. George Boole (1815-1864) 8 George Boole was a largely self-taught English mathematician, philosopher and logician, most of whose short career was spent as the first professor of mathematics at Queen's College, Cork in Ireland.
  • 9. Boolean Arithmetic 4–9 OR AND 0 + 0 = 0 0 * 0 = 0 0 + 1 = 1 0 * 1 = 0 1 + 0 = 1 1 * 0 = 0 1 + 1 = 1 1 * 1 = 1 NEGATION 0’ = 1 1’ = 0
  • 10. Boolean Single Value Theorems 4–10 x 1 x + 1 0 1 1 1 1 1 We can prove the above assertions using truth tables as follows: How can you interpret this truth table?
  • 11. 11 Absorption Law Use a truth table to show that for two Boolean variables x, y and z: x + xy = x x y xy x + xy 0 0 0 1 1 0 1 1
  • 12. 12 Absorption Law Use a truth table to show that for two Boolean variables x, y and z: x + xy = x x y xy x + xy 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1
  • 15. Boolean Algebraic Proofs • Our primary reason for doing proofs is to learn: – Careful and efficient use of the identities and theorems of Boolean algebra, and – How to choose the appropriate identity or theorem to apply to make forward progress, irrespective of the application. Boolean Algebra and Logic Gates 15
  • 16. Boolean Algebra 16 Boolean algebra refers to symbolic manipulation of expressions made up of boolean variables and boolean operators. The familiar identity, commutative, distributive, and associative axioms from algebra define the axioms of Boolean algebra, along with the two complementary axioms.
  • 17. Use Boolean algebra to prove that: x + x · y = x Proof Steps Justification x + x · y = x · 1 + x · y Identity element: x · 1 = x = x · ( 1 + y) Distributive = x · 1 1 + y = 1 = x Identity element Boolean Algebra and Logic Gates 17
  • 18. Boolean Algebra 18 In addition, we also have the following;
  • 19. Use Boolean algebra to show that (x + y) (x + z) = x + yz 19 Proof Steps Justification (x + y)(x + z) = x x + xz + yx + yz Expanding = x + xz + yx + yz Idempotent Law of Multiplication = x + x (z + y) + yz Distributive Law = x + yz Absorption Law
  • 20. Use Boolean algebra to show that (x + y) (x + z) = x + yz 20 Proof Steps Justification (x + y)(x + z) = x + yz Absorption Law
  • 21. Is it still true that: (x + y)(x + z) = x(x + z) + y (x + z) 21 x y z x + y x + z (x +y)(x + z) x(x + z) y(x + z) x(x+z)+y(x+z) 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
  • 22. Is it still true that: (x + y)(x + z) = x(x + z) + y (x + z) 22 x y z x + y x + z (x +y)(x + z) x(x + z) y(x + z) x(x+z)+y(x+z) 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 1 1 1 0 1 1 1 0 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
  • 23. Boolean Functions 23 A Boolean function accepts binary inputs and outputs a single binary value. A Boolean function is a mathematical function that maps arguments to a value where the allowable values of range (the function arguments) and domain (the function value) are just one of two values, 0 or 1. We usually denote Boolean functions as F(x, y) where x and y are Boolean variables. We use truth tables to evaluate the functions. https://introcs.cs.princeton.edu/java/71boolean/
  • 24. Boolean function • We can define a Boolean function: F(x, y) = (x AND y) OR (NOT x AND NOT y) • We write: F(x, y, z) = xy + x’y’ • and then write a “truth table” for it: 24 x y x’ y’ xy x’y’ F(x, y ,z) = xy + x’y’) 0 0 1 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 1 0 0 1 0 1 • Finally, use gates to implement the function: F(x, y) = xy + x’y • We use two AND gates and one OR gate.
  • 25. Boolean function • Another example: F(x, y, z) = (x AND y AND (NOT z)) OR (x AND (NOT y) AND z) OR ((NOT x) AND Y AND Z) OR xyz • We write this as: F(x, y, z) = xyz’ + xy’z + x’yz + xyz 25 • Can this function be simplified? • We can use the Boolean Expression Calculator to help with this…
  • 27. Logicly [logicly.ly] The application “Logicly” can be used to simulate the circuit as shown: You can take a free trial and then either download it on your computer to use it or use it online. 27
  • 28. Building the circuit in logicly 28
  • 29. The gate circuit and truth table 29
  • 30. Logic Gate Circuit 30 What practical use would this circuit have? Suggestions…
  • 31. Minterms A minterm, denoted by mi, where 0 ≤ I < 2n, is a product (AND) of the n variables in which each variable is complemented if the value assigned to it is 0, and uncomplemented if it is 1. We speak of the 1-minterms = minterms for which the function F = 1 and 0-minterms, the minterms for which the function F = 0. Any Boolean function can be expressed as a sum (OR) of its 1- minterms. We write F(x, y z) = ∑(3, 5, 6, 7)
  • 33. Boolean Function F(x, y, z) = x + yz 33 The truth table can show us all the outputs of F(x, y, z) for various values of the inputs:. x y z yz x + yz 0 0 0 0 m0 = 0 0 0 1 0 m1 = 0 0 1 0 0 m2 = 0 0 1 1 1 m3 = 1 1 0 0 0 m4 = 1 1 0 1 0 m5 = 1 1 1 0 0 m6 = 1 1 1 1 1 m7 = 1 So here we have F(x, y, z) = x’yz + xy’z’ + xy’z + xyz’ +xyz
  • 34. Boolean Expression Calculator 34 F(x, y, z) = x’yz + xy’z’ + xy’z + xyz’ +xyz Spot the error?
  • 36. Boolean Expression Calculator 36 F(x, y, z) = x’yz + xy’z’ + xy’z + xyz’ +xyz = x + yz
  • 37. 37 F(x, y, z) = x’yz + xy’z’ + xy’z + xyz’ +xyz = x + yz How many gates does each of the expressions use?
  • 38. Recall: (x + y) (x + z) = x + yz and now we have x + yz = x’yz + xy’z’ + xy’z + xyz’ +xyz Is there a way to prove all this algebraically… 38 Proof Steps Justification x’yz + xy’z’ + xy’z + xyz’ +xyz = x’yz + xy’z’ + xy’z + xyz’ +xyz + xyz Idempotent = (x’ + x) yz + xy (z + z’) + xy’(z + z’) Distributive = yz + xy + xy’ Complement law = x(y + y’) + yz Distributive Law = x + yz Absorption law
  • 39. Show that: x’yz + xy’z + xyz’ +xyz = xy + yz + + yz 39 Proof Steps Justification x’yz + xy’z + xyz’ +xyz = x’yz + xy’z + xyz’ +xyz +xyz + xyz Idempotent = xy(z + z’) + xz (y + y’) + yz (x + x’) Distributive = xy + yz + xz Complement law
  • 40. We have seen that (x + y) (x + z) = x + yz 40 (x + y) (x + z) is a Product of Sums (POS) expression snd x + yz is a Sum of Products (SOP) So F(x, y z) = (x + y)(x + z) = x + yz Ie. The same function can be represented in SOP or POS format.
  • 41. Express the function F(x, y, z) = x + yz as a POS expression. 41 Proof Steps Justification x + yz = x + x (z + y) + yz = x + xz + xy + yz = xx + xz + xy + yz = (x + y)(x + z) as per required.
  • 42. Definitions 42 The boolean expression that we construct is known as the sum-of-products representation is also known as the disjunctive normal form of the function. A boolean expression consisting entirely either of minterm or maxterm is called canonical expression.
  • 43. 43 Express the Boolean function F(a, b, c) = (b + ac’)’(ab’ + c) in Sum-of-Products form using Boolean algebra laws and theorems. Express in the minimal expression. F(a, b, c) = (b + ac’)’(ab’ + c) = (b’)(ac’)’(ab’ + c) De Morgan’s Law = b’(a’ + c)(ab’ + c) De Morgan’s law = (a’b’ + b’c)(ab’ + c) Distributive Law = a’b’ab’ + a’b’c + b’cab’ + b’cc = a’b’c + ab’c + b’c = b’c(a’ + a + 1) = b’c
  • 44. 44 We had earlier expressed the Boolean function F(a, b, c) = (b + ac’)’(ab’ + c) in Sum-of-Products form using Boolean algebra laws and theorems. Express this in canonical form. F(a, b, c) = (b + ac’)’(ab’ + c) a b c b’ c’ ac’ b + ac’ (b + ac’)’ ab’ ab’ + c F(a, b, c) 0 0 0 1 1 0 0 1 0 0 0 0 0 1 1 0 0 0 1 0 1 1 0 1 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 1 0 1 0 0 1 1 1 1 0 1 1 0 1 0 1 1 0 0 0 1 1 1 1 1 1 0 0 1 1 1 0 0 0 0 1 1 1 0 0 0 1 0 0 1 0 F(a, b, c) = a’b’c + ab’c
  • 45. Canonical Form • Express in canonical form…F(X, Y, Z) = X Y + Y ‘Z X Y Z X Y Y’ Y ‘Z F = X Y + Y ‘Z 0 0 0 0 1 0 0 0 0 1 0 1 1 1 0 1 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 1 1 1 1 0 1 0 0 1 1 1 1 1 0 0 1
  • 46. 46
  • 47. Claude Shannon 47 Shannon's work became the foundation of digital circuit design, as it became widely known in the electrical engineering community during and after World War II. The theoretical rigor of Shannon's work superseded the ad hoc methods that had prevailed previously..
  • 48. Boolean Algebra Simplification Boolean Algebra and Logic Gates 48 11 1 1 11 1 0 11 0 1 11 0 0 00 1 1 00 1 0 10 0 1 00 0 0 X Y Z F(x, y, z) From the minterms expansion, we have: F(x, y, z) = x’y’z + xy’z’ +xy’z + xyz’ + xyz = (x’ + x)y’z + xz’(y’ + y) + xyz = y’z + xz’y’ + xz’y + xyz = y’z + x(yz + yz’ + z’y’) = y’z + x(yz + yz’ + (yz)’) = y’z + x(1 + yz’) = x + y’z We can use the Boolean algebra laws to simplify a function. What is the formula for F9x, y, z) from the following?
  • 49. From the Boolean expression to the logic gate diagram… Boolean Algebra and Logic Gates 49 11 1 1 11 1 0 11 0 1 11 0 0 00 1 1 00 1 0 10 0 1 00 0 0 X Y Z F(x, y, z) F(x, y, z) = x’y’z + xy’z’ +xy’z + xyz’ + xyz = (x’ + x)y’z + xz’(y’ + y) + xyz = y’z + xz’y’ + xz’y + xyz = y’z + x(yz + yz’ + z’y’) = y’z + x(yz + yz’ + (yz)’) = y’z + x(1 + yz’) = x + y’z We can use the Boolean algebra laws to simplify a function. What is the formula for F9x, y, z) from the following? X Y F Z