Professional Documents
Culture Documents
Boolean
Schematics
Department of Electrical and Expression
Electronic Engineering
5
Determining output level from a diagram Implementing Circuits From Boolean Expressions
• When the operation of a circuit is defined by a Boolean expression, we
can draw a logic-circuit diagram directly from that expression.
• Example: draw the circuit for y = AC + BC + ABC
– Done in two steps
6 7
ABC A • (B • C) = (A • B) • C
x = A B C + A BC + ABC 8 9
1
• Distributive Law
A • (B + C) = A • B + A • C
A (B + C) = A B + A C • Rule 1
OR Truth Table
• Rule 2
Rules of Boolean Algebra
• Rule 3
10 • Rule 4 11
• Rule 5 • Rule 9
• Rule 10: A + AB = A
– Proof: A+AB = A(1+B) by distributive law
• Rule 6 OR Truth Table
= A·1 by rule 2
=A by rule 4
– Or prove by truth table
• Rule 7
• Rule 8 12 13
( )
– Simplify z = A + B ( A + B ) z = AA + AB + BA + BB by distributive law
AB = 0 + AB + BA + B by rule 8 and rule 7
= AB + BA + B by rule 1
A
• Rule 12: (A + B)(A + C) = A + BC = B( A + A + 1) by distributive law
AB = B ⋅1 by rule 6 and rule 2
• This rule can only be proved by constructing the truth table (?)
B =B by rule 4
14 15
2
Review Questions DeMorgan’s Theorems
• Theorem 1
• Simplify
y = AC + AB C x + y = x⋅ y Remember:
y = AC • Theorem 2
“Break the bar,
change the operator”
x⋅ y = x + y
y
• Simplify y = A BC D + A BC D – D
DeMorgan's
M ' th
theorem iis very useful
f l iin di
digital
it l circuit
i it d design
i
• Simplify y = AD + ABD x + y + z = x⋅ y⋅ z
y = AD + BD x⋅ y⋅z = x + y + z
16 17
Simplify ( AB + C ) Simplify AB ⋅ CD ⋅ EF
• AC + BC • AB + CD + EF
• AC + BC • AB + CD + EF
• AC + BC • AB + CD + EF
• AC + BC • ABCDEF
Simplify ( A + C ) ⋅ ( B + D) Determine the output expression for the below
• AC + BD circuit and simplify it using DeMorgan’s Theorem
• AC + BD • ABC
• AC + BD • ABC
• AC + BD • A+ B +C
18 • A+ B +C 19
Examples (Summary):
Review Questions
a) ( AB + C ) = AB ⋅ C = ( A + B ) ⋅ C = AC + BC
• Using DeMorgan’s Theorems to convert the
b) ( A + C ) ⋅ ( B + D) = ( A + C ) + ( B + D) = A ⋅ C + B ⋅ D = AC + BD
expressions to one that has only single-variable
c) A + B ⋅ C = A ⋅ ( B ⋅ C ) = A ⋅ ( B + C ) = A( B + C ) inversions.
d) ( A + BC ) ⋅ ( D + EF ) = ( A + BC ) + ( D + EF ) y = R ST + Q y = (R + S +T )Q
= ( A ⋅ BC ) + ( D ⋅ EF )
= A ⋅ (B + C) + D ⋅ (E + F ) z = ( A + B )⋅ C z = AB + C
= AB + AC + DE + DF
e) AB ⋅ CD ⋅ EF = AB + CD + EF = AB + CD + EF y = A + B + CD y = A B (C + D )
f ) Determine the output expression for the below circuit and simplify it
using DeMorgan’s Theorem
20 21
3
Implications of DeMorgan’s Theorems Universality of NAND gates
• Any expression can be implemented using combinations of OR gates, AND gates and
x + y = x⋅ y INVERTERs
• However, it is also possible to implement any logic expression using only NAND
Usually redrawn gates and no other type of gate
• i.e., The AND gate with INVERTERs in this way • This is because NAND gates, in proper combination, can perform Boolean operations
on each of its inputs is equivalent to a OR, AND, and INVERTER
NOR gate
x⋅ y = x+ y
Usually redrawn
• i.e., The OR gate with INVERTERs on in this way
each of its inputs is equivalent to a NAND
gate
22 23
IC in Dual-in-line
package (DIP)
24 25
4
Why we need alternate representation?
• Proper use of the alternate gate symbols in the circuit diagram can make the
Canonical Form
circuit operation much more easy to understand • Boolean expression can be expressed in
• E.g., the two circuits on the many different ways
(A + D)(B + C) ≡ AB + AC + BD + CD
right are equivalent
• However, circuit (a) does not
facilitate an understanding of • Two standard ways:
how the circuit function
• Circuit (b) is easy to – Sum of Product
understand: Z will go HIGH
whenever either A=B=1 or
– Product of Sum
C=D=1 (or both) • Canonical SOP
• Canonical POS
28 29
AB C + BD + AD (A + B + C)(B + D )(A + D)
Product Sum
Product – NOT canonical:
Sum
– NOT canonical: A + B(C + D) – Many parenthesis A + B(C + D)
– No parenthesis • Not too natural for human, but equally good
• Most natural for human for computers.
30 31
Example: This example illustrate the complete procedure for designing a Example: Conversion through the opposite direction: Truth Table
logic circuit. Suppose the logic circuit having 3 inputs, A, B, C will have its
output HIGH only when a majority of the inputs are HIGH.
A B C x
Step 1 Set up the truth table
0 0 0 0
Step 2 Write the AND term for 0 0 1 0
5
Forms of Boolean Expressions Simplifying Logic Circuits
• Once the expression for a logic circuit is obtained, we may try to simplify
• There are two general forms of logic expression: SOP, POS it, so that the implementation requires fewer gates
• Sum-of-products form (SOP) • Example: below two circuits are the same, but the second one is much
more simpler
– first the product (AND) terms are formed then these are summed
(OR)
– eg: ABC + DEF + GHI
• Product-of-sum form (POS)
– first the sum (OR) terms are formed then the products are taken
(AND)
– eg: (A+B+C)(D+E+F)(G+H+I)
• It is possible to convert between these two forms using
Boolean algebra • Two methods for simplifying
– Algebraic method (use Boolean algebra theorems)
– Karnaugh mapping method (next lesson)
34 35