Boolean Algebra Examples
Boolean Algebra Examples
A B C D Q
0 0 1 0 0
0 1 1 1 1
1 0 1 1 1
1 1 0 0 1
B A A.B A+B Q
0 0 0 1 1
0 1 0 0 0
1 0 0 0 0
1 1 1 0 1
Then, the whole circuit above can be replaced by just one
single Exclusive-NOR Gate and indeed an Exclusive-NOR Gate
is made up of these individual gate functions.
3. Construct the Logic Gate and make equations of this Truth Table;
(Assignment)
A B A B A.B A + B Q=(A.B)+(A+B)
0 0 1 1 0 1 1
0 1 1 0 1 0 0
1 0 0 1 0 1 0
1 1 0 0 0 1 1
4. Construct the Logic Gate and make equations of this Truth Table;
(Assignment)
Inpu
Output
t
A B A AND
B
0 0 0
0 1 0
1 0 0
1 1 1
This system may look more complicated than the other two to
analyse but again, the logic circuit just consists of
simple AND, OR and NOT gates connected together.
As with the previous Boolean examples, we can simplify the
circuit by writing down the Boolean notation for each logic gate
function in turn in order to give us a final expression for the
output at Q.
Outpu
inputs Intermediates
t
0 0 0 0 1 1 1 0 0
0 0 1 0 1 0 1 0 0
0 1 0 0 0 1 1 0 0
0 1 1 0 0 0 0 0 0
1 0 0 0 1 1 1 1 1
1 0 1 0 1 0 1 1 1
1 1 0 0 0 1 1 1 1
1 1 1 1 0 0 0 0 1
Then we can see that the entire logic circuit above can be
replaced by just one single input labelled “A” thereby reducing a
circuit of six individual logic gates to just one single piece of
wire, (or Buffer). This type of circuit analysis using Boolean
Algebra can be very powerful and quickly identify any
unnecessary logic gates within a digital logic design thereby
reducing the number of gates required, the power consumption
of the circuit and of course the cost.
2. Draw a logic circuit and construct a Truth Table for this equations (A + B)C.
3. Draw a logic circuit and construct a Truth Table for this equations AB + AC.
4. Draw a logic circuit and construct a Truth Table for this equations A + BC+ D
5. Draw a logic circuit and construct a Truth Table for this (A + B)(C + D) C
Boolean Algebra Example (3 inputs)
For more complicated expressions, tables are built from the truth tables of their basic
parts. Here are several:
1. Draw a truth table and Logic Circuit for this equation A+ B.C
A B C BC A+BC
0 0 0 0 0
0 0 1 0 0
0 1 0 0 0
0 1 1 1 1
1 0 0 0 1
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
2. Draw a truth table and Logic Circuit for this equation A(B+D).
A B D B+D A(B+D)
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 1 0
1 0 0 0 0
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1
3. Draw a truth table and Logic Circuit for this equation (A+B)(A+C).
A B C A+B A+C (A+B)(A+C)
0 0 0 0 0 0
0 0 1 0 1 0
0 1 0 1 0 0
0 1 1 1 1 1
1 0 0 1 1 1
1 0 1 1 1 1
1 1 0 1 1 1
1 1 1 1 1 1
4. Draw a truth table and Logic Circuit for this equation PT(P+Z).
P T Z T PT P+Z PT (P+Z)
0 0 0 1 0 0 0
0 0 1 1 0 1 0
0 1 0 0 0 0 0
0 1 1 0 0 1 0
1 0 0 1 1 1 1
1 0 1 1 1 1 1
1 1 0 0 0 1 0
1 1 1 0 0 1 0