DLD Chapter 4 Part I NEW
DLD Chapter 4 Part I NEW
Example :
• Determine the values of A, B, C, and D that make the sum term equal to 0
• Determine the values of A and B that make the sum term equal to 0
Boolean Multiplication
• Boolean multiplication is equivalent to the AND operation.
Examples
• Determine the values of A, B, C, and D that make the product term equal to 1
Laws and Rules of Boolean Algebra
• The basic laws of Boolean algebra—are the same as in ordinary
algebra
• The commutative laws for addition and multiplication
• The associative laws for addition and multiplication
• The distributive law
Commutative Laws
• This law states that the order in • This law states that the order in
which the variables are ‘OR’ed which the variables are ANDed
makes no difference. makes no difference.
Associative Laws
Rule 2 : Rule 5 :
Rule 3 : Rule 6 :
Rule 7 :
Rule 8 :
Rule 9 :
Rule 10 :
Rule 11:
Rule 12:
DeMorgan’s Theorems
• DeMorgan’s theorems provide mathematical verification of the
equivalency of the NAND and negative-OR gates and the equivalency
of the NOR and negative-AND gates
DeMorgan’s first theorem
Theorm Gate equivalence and truth table
• The complement of a product of
variables is equal to the sum of
the complements of the
variables.
• In another way this means,
• The complement of two or more
ANDed variables is equivalent to
the OR of the complements of the
individual variables.
• Formula
DeMorgan’s second theorem
Therom Gate equivalence and truth table
• The complement of a sum of
variables is equal to the product
of the complements of the
variables.
• Stated another way,
• The complement of two or more
ORed variables is equivalent to the
AND of the complements of the
individual variables.
• formula
Examples and Exercise
Examples :
Apply DeMorgan’s theorems to the following expressions
Solutions
Exercise:
Apply DeMorgan’s theorem to the expression
Example:
• The Boolean expression for an exclusive-OR gate is AB+AB. With this as a starting point, use
DeMorgan’s theorems and any other rules or laws that are applicable to develop an expression
for the exclusive-NOR gate.
Solution:
Boolean Analysis of Logic Circuits
• Boolean algebra provides a concise way to express the operation of a
logic circuit formed by a combination of logic gates so that the output
can be determined for various combinations of input values.
Boolean Expression for a Logic Circuit
• To derive the Boolean expression for a given combinational logic circuit, begin at the left-
most inputs and work toward the final output, writing the expression for each gate.
Example : (Use the figure below )
1. The expression for the left-most AND gate with inputs C and D is CD.
2. The output of the left-most AND gate is one of the inputs to the OR gate and B is the other input.
Therefore, the expression for the OR gate is B + CD.
3. The output of the OR gate is one of the inputs to the right-most AND gate and A is the other input.
Therefore, the expression for this AND gate is A(B + CD), which is the final output expression for the entire
circuit
Constructing a Truth Table for a
Logic Circuit
• Once the Boolean expression for a given logic circuit has been
determined, a truth table that shows the output for all possible values
of the input variables can be developed. The procedure requires that
you evaluate the Boolean expression for all possible combinations of
values for the input variables.
Constructing a Truth Table for a Logic Circuit (cont…)
• In the case of the circuit in the figure there are four
input variables (A, B, C, and D)
• combinations