Digital System�Lecture - 02
Boolean algebra
2
Binary Systems
Propositional Logic
Propositional Calculus Example
Propositions, that may be TRUE or FALSE:
it is raining
the weather forecast is bad
A combined proposition:
it is raining OR the weather forecast is bad
Propositional Calculus Example
We can equate propositions, for example by writing:
I will take an umbrella = it is raining OR the weather
forecast is bad
or equivalently we can write:
If it is raining OR the weather forecast is bad
Then I will take an umbrella
OR
Rain Bad Weather Forecast Take Umbrella
Diagrammatic representation
Rain
Bad Weather Forecast
OR
Take Umbrella
Truth Tables
Raining | Bad Weather | Umbrella |
False | False | False |
False | True | True |
True | True | True |
True | False | True |
Boolean Algebra
Boolean Algebra
Fundamental Operators - And Operator
Three fundamental operators AND, OR and NOT.
AND Operator
Z = A ∙ B
The AND operation is represented by the symbol “∙”. The truth table or logic table of the AND operation is as follows:
Fundamental Operators – OR Operator
OR Operator
Z = A + B
The OR operation is represented by the “+” symbol. Note that the OR operation is not related to addition in ordinary arithmetic. The truth table for OR is as follows:
Fundamental Operators – NOT Operator
NOT Operator
or Z = A’
Fundamentals of Boolean Algebra
Precedence
Operator | Symbol | Precedence |
NOT | ' | Highest |
AND | • | Middle |
OR | + | Lowest |
All outcomes can be written as:
AND Operator (•)
OR Operator (+)
NOT '
Boolean Algebra Laws
1) Communicative laws 2) Associative laws
A + B = B + A A+(B+C) = (A+B)+C
AB = BA (AB)C = A(BC)
3) Distributive laws 4) Absorption Law
A∙ (B+C) = (A ∙ B) + (A ∙ C) A∙ (A+B) = A +(A ∙ B)
5) Complement Law
A + = 1
A ∙ = 0
Other useful relationship:
1) A ∙ 1 = A 2) A ∙ 0 = 0 3) A + 1 = 1 4) A + 0 = A
5) A + A = A 6) A ∙ A = A
De Morgan’s Theorem
1)
2)
Simplification of Boolean Equation Using DeMorgan’s Theorem
Simplify Y = (A+B) ∙ (A+C)
Y = (A+B) ∙ (A+C)
= A ∙ A + A ∙ C + B ∙ A + B ∙ C
= A + A ∙ C + A ∙ B + B ∙ C
= A ∙ (1+C+B) + B ∙ C – Redundance Law
= A + B ∙ C
Sum of Product (SOP) and Product of Sum (POS)
Conversion of a truth table into SOP and POS
Derivation of SOP and POS
Sum of Products expression (Minterm Form)
1) From a truth table
2) The product terms from each row in which the output is a “1” are collected
3) The desired expression is the sum of these products e.g.
Product of Sums expression (Maxterm Form)
1) Form a truth table
2) Construct a column to contain the sum terms
3) The required expression is the product of sums terms from the row in which the output is “0” e.g.
Karnaugh Map (K-Map)
Layout of Karnaugh Map
Use of K-Map
Use of K-Map
Representation of Karnaugh Map
Truth Table
Karnaugh Map
Use of K-Map
Simplification using a K-Map
Example 1
Example 2
Example 3
Example 4
Example 5
Thanks!
Any questions?
You can find me at:
35