Boolean Algebra and Gates
Boolean Algebra and Gates
Now you know why the binary numbering system is so handy in digital
systems.
3.2 Boolean Algebra
• As with common
arithmetic, Boolean
operations have rules of
precedence.
• The NOT operator has
highest priority, followed
by AND and then OR.
• This is how we chose the
(shaded) function
subparts in our table.
3.2 Boolean Algebra
is:
3.2 Boolean Algebra
products form.
3.3 Logic Gates
• The three simplest gates are the AND, OR, and NOT
gates.
operation.
3.3 Logic Gates
circuits.
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
B+CD
A(B+CD)
A
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.
– Let’s take the previous circuit as the example:
A(B+CD)
– There are four variables, hence 16 (24)
combinations of values are possible.
Constructing a Truth Table for a
Logic Circuit
• Evaluating the expression
– To evaluate the expression A(B+CD), first find
the values of the variables that make the
expression equal to 1 (using the rules for
Boolean add & mult).
– In this case, the expression equals 1 only if A=1
and B+CD=1 because
A(B+CD) = 1·1 = 1
Constructing a Truth Table for a
Logic Circuit
• Evaluating the expression (cont’)
– Now, determine when B+CD term equals 1.
– The term B+CD=1 if either B=1 or CD=1 or if
both B and CD equal 1 because
B+CD = 1+0 = 1
B+CD = 0+1 = 1
B+CD = 1+1 = 1
• The term CD=1 only if C=1 and D=1
Constructing a Truth Table for a
Logic Circuit
• Evaluating the expression (cont’)
– Summary:
– A(B+CD)=1
• When A=1 and B=1 regardless of the values of C
and D
• When A=1 and C=1 and D=1 regardless of the
value of B
– The expression A(B+CD)=0 for all other value
combinations of the variables.
Constructing a Truth Table for a Logic
Circuit
• Putting the results in A B
INPUTS
C D
OUTPUT
A(B+CD)