Lecture 6 &7 DLD
Lecture 6 &7 DLD
Boolean Algebra
🠶 Boolean algebra is mathematics of digital systems. A basic
knowledge of Boolean algebra is to the study and analysis of
logic circuits.
🠶 Variable, complement, and literal are term used in
Boolean algebra.
🠶 A variable is a symbol (usually an uppercase letter) used to
represent a logical quantity. Any single variable can have 1 or
0 value.
🠶 The complement is the inverse of variable A=0
A=1
A literal is a basic variable in a Boolean expression. It can
either be in its original (uncomplemented) form or
complemented form.
Laws and Rules of Boolean Algebra
or
The complement of two or more variable
ANDed is equivalent to the OR of the
complements of the individual
variables.
XY = X + Y
DeMorgan’s Second theorem
🠶 Standard SOP and POS form has all the variables in all the terms
🠶 A non-standard SOP is converted into standard SOP by using the rule
🠶 A non-standard POS is converted into standard POS by using the rule
Sum of products (sop)
🠶 When two or more product terms are summed by Boolean addition, the
resulting
expression is a sum-of-products (SOP).
Some examples are
AB + ABC
ABC + CDE + BCD
AB + ABC + AC
🠶 NAND/NAND Implementation of an SOP Expression
NAND gates can be used to implement an SOP expression. By using only
NAND gates, an AND/OR function can be accomplished, as illustrated in Figure
4–23. The first level of NAND gates feed into a NAND gate that acts as a
negative-OR gate. The NAND and negative-OR inversions cancel and the
result is effectively an AND/OR circuit.
Converting Product Terms to Standard
SOP
Step 1. Multiply each non standard product term by a term made up of
the sum of a missing variable and its complement (e.g: A+A).
Step 2. Repeat step 1 until resulting product terms contain all variables
in the domain in either complemented or uncomplemented form.
Canonical Form
In case of SOP, minterm is the product of variable whose combined output is equal
to one.
In case of Pos, maxterm is the sum of variable whose combined output is equal to
0.
SOP-POS Conversion
🠶 Canonical Sum
🠶 Canonical Product
🠶 =
Boolean Expressions and Truth
Tables
🠶 Standard SOP & POS expressions converted to truth table form
🠶 Standard SOP & POS expressions determined from truth table
SOP-Truth Table Conversion
Input Output
A B C F
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1
POS-Truth Table Conversion
Input Output
A B C F
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1