Boolean Expressions 1
Boolean Expressions 1
Boolean Expressions 1
com
Boolean 0 and 1 do not represent actual numbers but instead represent the state
of a voltage variable, or what is called its logic level.
Logic 0 Logic 1
False True
Off On
Low High
No Yes
Open Switch Close Switch
Truth Table
A truth table is a means for describing how a logic circuit's output depends on
the logic levels present at the circuit's inputs.
In the following two-inputs logic circuit, the table lists all possible
combinations of logic levels present at inputs A and B along with the
corresponding output level X.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
When either input A OR B is 1, the output X is 1. Therefore the "?" in the box
is an OR gate.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
A in series with B = B in
A.B = B.A Commutative
series with A
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Theorem (17) says that when the AND product of two variables is inverted, this
is the same as inverting each variable individually and then ORing them.
Example
X = [(A'+C) * (B+D')]'
= (A'+C)' + (B+D')' [by theorem (17)]
= (A''*C') + (B'+D'') [by theorem (16)]
= AC' + B'D
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
1. Invert each input and output of the standard symbol. This is done by adding
bubbles (small circles) on input and output lines that do not have bubbles, and
by removing bubbles that are already there.
2. Change the operation symbol from AND to OR, or from OR to AND. (In the
special case of the INVERTER, the operation symbol is not changed.)
www.Vidyarthiplus.com
www.Vidyarthiplus.com
1. The equivalences are valid for gates with any number of inputs.
2. None of the standard symbols have bubbles on their inputs, and all the
alternate symbols do.
3. The standard and alternate symbols for each gate represent the same physical
circuit: there is no difference in the circuits represented by the two symbols.
4. NAND and NOR gates are inverting gates, and so both the standard and
alternate symbols for each will have a bubble on either the input or the output.
AND and OR gates are noninverting gates, and so the alternate symbols for
each will have bubbles on both inputs and output.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Here are some examples of Boolean algebra simplifications. Each line gives a form of the
expression, and the rule or rules used to derive it from the previous one. Generally, there
are several ways to reach the result. Here is the list of simplification rules.
• Simplify: C + BC:
Expression Rule(s) Used
C + BC Original Expression
C + (B + C) DeMorgan's Law.
(C + C) + B Commutative, Associative Laws.
T+B Complement Law.
T Identity Law.
• Simplify: AB(A + B)(B + B):
Expression Rule(s) Used
AB(A + B)(B
Original Expression
+ B)
(A + C)A(D + D) + AC + C Distributive.
(A + C)A + AC + C Complement, Identity.
A((A + C) + C) + C Commutative, Distributive.
A(A + C) + C Associative, Idempotent.
AA + AC + C Distributive.
A + (A + T)C Idempotent, Identity, Distributive.
A+C Identity, twice.
• You can also use distribution of or over and starting from A(A+C)+C to reach the
same result by another route.
• Simplify: A(A + B) + (B + AA)(A + B):
www.Vidyarthiplus.com
www.Vidyarthiplus.com
AA + AB + (B + A)A
Idempotent (AA to A), then Distributive, used twice.
+ (B + A)B
AB + (B + A)A + (B Complement, then Identity. (Strictly speaking, we also used
+ A)B the Commutative Law for each of these applications.)
AB + BA + AA + BB
Distributive, two places.
+ AB
Idempotent (for the A's), then Complement and Identity to
AB + BA + A + AB
remove BB.
AB + AB + AT + AB Commutative, Identity; setting up for the next step.
AB + A(B + T + B) Distributive.
AB + A Identity, twice (depending how you count it).
A + AB Commutative.
(A + A)(A + B) Distributive.
A+B Complement, Identity.
The Karnaugh map uses the following rules for the simplification of expressions by
grouping together adjacent cells containing ones
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• Groups may wrap around the table. The leftmost cell in a row may be
grouped with the rightmost cell and the top cell in a column may be grouped
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• There should be as few groups as possible, as long as this does not contradict
any of the previous rules.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
o
• In the upper right;
o
• In the lower left;
o
• In the lower right;
These terms can be combined (assuming they are all ones in the
Karnaugh Map!). The result is
By combining the first two terms above (the two terms at the top of the
Karnaugh Map):-
o
• By combining the last two terms above (the two terms at the bottom
of the Karnaugh Map):-
o
• Then, these two germs can be combined to give:
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Summmary:
1. No zeros allowed.
2. No diagonals.
3. Only power of 2 number of cells in each group.
4. Groups should be as large as possible.
5. Every one must be in at least one group.
6. Overlapping allowed.
7. Wrap around allowed.
8. Fewest number of groups possible.
www.Vidyarthiplus.com