0% found this document useful (0 votes)
13 views17 pages

Lect06-2 4-2 5

This document discusses Boolean algebra and techniques for representing and simplifying Boolean functions. It covers expressing Boolean functions using algebraic equations, truth tables, and logic symbols. Methods are presented for converting between these representations, including simplifying Boolean expressions using algebraic rules and representing functions in terms of minterms and maxterms. The concepts of complementing functions and canonical forms are also introduced.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views17 pages

Lect06-2 4-2 5

This document discusses Boolean algebra and techniques for representing and simplifying Boolean functions. It covers expressing Boolean functions using algebraic equations, truth tables, and logic symbols. Methods are presented for converting between these representations, including simplifying Boolean expressions using algebraic rules and representing functions in terms of minterms and maxterms. The concepts of complementing functions and canonical forms are also introduced.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Digital Logic Design

Course Code: 23162201-4

Lecture 6

More Boolean Algebra

ENGIN112 L6: More Boolean Algebra September 15, 2003


Overview

° Expressing Boolean functions


° Relationships between algebraic equations, symbols,
and truth tables
° Simplification of Boolean expressions
° Minterms and Maxterms
° AND-OR representations
• Product of sums
• Sum of products

ENGIN112 L6: More Boolean Algebra September 15, 2003


Boolean Functions

° Boolean algebra deals with binary variables and


logic operations.
° Function results in binary 0 or 1

x y z F
0 0 0 0
0 0 1 0 x
0 1 0 0 y
0 1 1 0 F = x(y+z’)
z y+z’
1 0 0 1 z’
1 0 1 0
1 1 0 1
1 1 1 1 F = x(y+z’)

ENGIN112 L6: More Boolean Algebra September 15, 2003


Boolean Functions

° Boolean algebra deals with binary variables and


logic operations.
° Function results in binary 0 or 1

x y z xy yz G
0 0 0 0 0 0
0 0 1 0 0 0 x xy
0 1 0 0 0 0 y
0 1 1 0 1 1 G = xy +yz
1 0 0 0 0 0 z
yz
1 0 1 0 0 0
1 1 0 1 0 1 We will learn how to transition between equation,
1 1 1 1 1 1 symbols, and truth table.

ENGIN112 L6: More Boolean Algebra September 15, 2003


Representation Conversion

° Need to transition between boolean expression,


truth table, and circuit (symbols).
° Converting between truth table and expression is
easy.
° Converting between expression and circuit is
easy.
° More difficult to convert to truth table.

Circuit Boolean
Expression

Truth
Table

ENGIN112 L6: More Boolean Algebra September 15, 2003


Truth Table to Expression

° Converting a truth table to an expression


• Each row with output of 1 becomes a product term
• Sum product terms together.

x y z G Any Boolean Expression can be


0 0 0 0 represented in sum of products form!
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
xyz + xyz’ + x’yz
ENGIN112 L6: More Boolean Algebra September 15, 2003
Equivalent Representations of Circuits
° All three formats are equivalent
° Number of 1’s in truth table output column equals AND
terms for Sum-of-Products (SOP)
x y z G
0 0 0 0
0 0 1 0 x x
x
0 1 0 0 G
x
0 1 1 1 x
x
1 0 0 0 x
1 0 1 0 x
x
1 1 0 1
1 1 1 1

x y z
G = xyz + xyz’ + x’yz

ENGIN112 L6: More Boolean Algebra September 15, 2003


Reducing Boolean Expressions

° Is this the smallest possible implementation of


this expression? No! G = xyz + xyz’ + x’yz
° Use Boolean Algebra rules to reduce complexity
while preserving functionality.
° Step 1: Use Theorum 1 (a + a = a)
• So xyz + xyz’ + x’yz = xyz + xyz + xyz’ + x’yz

° Step 2: Use distributive rule a(b + c) = ab + ac


• So xyz + xyz + xyz’ + x’yz = xy(z + z’) + yz(x + x’)
° Step 3: Use Postulate 3 (a + a’ = 1)
• So xy(z + z’) + yz(x + x’) = xy.1 + yz.1

° Step 4: Use Postulate 2 (a . 1 = a)


• So xy.1 + yz.1 = xy + yz = xyz + xyz’ + x’yz
ENGIN112 L6: More Boolean Algebra September 15, 2003
Reduced Hardware Implementation
° Reduced equation requires less hardware!
° Same function implemented!
x y z G
0 0 0 0
0 0 1 0 x x
0 1 0 0 G
0 1 1 1
1 0 0 0
1 0 1 0 x
x
1 1 0 1
1 1 1 1

x y z
G = xyz + xyz’ + x’yz = xy + yz

ENGIN112 L6: More Boolean Algebra September 15, 2003


Minterms and Maxterms

° Each variable in a Boolean expression is a literal


° Boolean variables can appear in normal (x) or
complement form (x’)
° Each AND combination of terms is a minterm
° Each OR combination of terms is a maxterm
For example: For example:
Minterms Maxterms

x y z Minterm x y z Maxterm
0 0 0 x’y’z’ m0 0 0 0 x+y+z M0
0 0 1 x’y’z m1 0 0 1 x+y+z’ M1
… …
1 0 0 xy’z’ m4 1 0 0 x’+y+z M4
… …
1 1 1 xyz m7 1 1 1 x’+y’+z’ M7
ENGIN112 L6: More Boolean Algebra September 15, 2003
Representing Functions with Minterms
° Minterm number same as row position in truth table
(starting from top from 0)
° Shorthand way to represent functions

x y z G
0 0 0 0 G = xyz + xyz’ + x’yz
0 0 1 0
0 1 0 0
0 1 1 1
G = m7 + m6 + m3 = Σ(3, 6, 7)
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1

ENGIN112 L6: More Boolean Algebra September 15, 2003


Complementing Functions
° Minterm number same as row position in truth table
(starting from top from 0)
° Shorthand way to represent functions

x y z G G’
0 0 0 0 1 G = xyz + xyz’ + x’yz
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0 G’ = (xyz + xyz’ + x’yz)’ =
1 0 0 0 1
1 0 1 0 1
1 1 0 1 0 Can we find a simpler representation?
1 1 1 1 0

ENGIN112 L6: More Boolean Algebra September 15, 2003


Complementing Functions

° Step 1: assign temporary names


• b + c -> z G = a + b+ c
• (a + z)’ = G’ G’ = (a + b + c)’
° Step 2: Use DeMorgans’ Law
• (a + z)’ = a’ . z’
° Step 3: Resubstitute (b+c) for z
• a’ . z’ = a’ . (b + c)’
° Step 4: Use DeMorgans’ Law G = a + b+ c
• a’ . (b + c)’ = a’ . (b’. c’) G’ = a’ . b’ . c’ = a’b’c’
° Step 5: Associative rule
• a’ . (b’. c’) = a’ . b’ . c’

ENGIN112 L6: More Boolean Algebra September 15, 2003


Complementation Example

° Find complement of F = x’z + yz


• F’ = (x’z + yz)’
° DeMorgan’s
• F’ = (x’z)’ (yz)’

° DeMorgan’s
• F’ = (x’’+z’)(y’+z’)

° Reduction -> eliminate double negation on x


• F’ = (x+z’)(y’+z’)

This format is called product of sums

ENGIN112 L6: More Boolean Algebra September 15, 2003


Conversion Between Canonical Forms

° Easy to convert between minterm and maxterm


representations
° For maxterm representation, select rows with 0’s

x y z G
0 0 0 0 G = xyz + xyz’ + x’yz
0 0 1 0
0 1 0 0
0 1 1 1 G = m7 + m6 + m3 = Σ(3, 6, 7)
1 0 0 0
1 0 1 0
1 1 0 1 G = M0M1M2M4M5 = Π(0,1,2,4,5)
1 1 1 1
G = (x+y+z)(x+y+z’)(x+y’+z)(x’+y+z)(x’+y+z’)

ENGIN112 L6: More Boolean Algebra September 15, 2003


Representation of Circuits
° All logic expressions can be represented in 2-
level format
° Circuits can be reduced to minimal 2-level
representation
° Sum of products representation most common in
industry.

ENGIN112 L6: More Boolean Algebra September 15, 2003


Summary

° Truth table, circuit, and boolean expression formats


are equivalent
° Easy to translate truth table to SOP and POS
representation
° Boolean algebra rules can be used to reduce circuit
size while maintaining function
° All logic functions can be made from AND, OR, and
NOT
° Easiest way to understand: Do examples!
° Next time: More logic gates!

ENGIN112 L6: More Boolean Algebra September 15, 2003

You might also like