DLD Boolean Algebra Complete
DLD Boolean Algebra Complete
Algebra
Boolean Algebra uses a set of Laws and Rules to define the operation of a
digital logic circuit.
Truth Tables
Boolean Equivalent Boolean Algebra
Description
Expression Switching Circuit Law or Rule
A in parallel with
A+1=1 Annulment
closed = “CLOSED”
A in parallel with
A+0=A Identity
open = “A”
A in series with
A.1=A Identity
closed = “A”
A in series with
A.0=0 Annulment
open = “OPEN”
A in parallel with
A+A=A Idempotent
A = “A”
A in series with
A.A=A Idempotent
A = “A”
NOT NOT A
NOT A = A Double Negation
(double negative) = “A”
A in parallel with
A+A=1 Complement
NOT A = “CLOSED”
A in series with
A.A=0 Complement
NOT A = “OPEN”
A in parallel with B=
A+B = B+A Commutative
B in parallel with A
A in series with B=
A.B = B.A Commutative
B in series with A
o A + (B + C) = (A + B) + C = A + B + C (OR
Associate Law)
o A(B.C) = (A.B)C = A . B . C (AND Associate Law)
1. NULL 0
2. IDENTITY 1
3. Input A A
4. Input B B
5. NOT A A
6. NOT B B
Q= (A + B).(A + C)
A(1 + C) + A.B +
– Distributive law
B.C
A.1 + A.B + B.C – Identity OR law (1 + C = 1)
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
Note that the Boolean Expression for a two input AND gate can be
written as: A.B or just simply AB without the decimal point.
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
A Q
0 1
1 0
A B Q
0 0 1
0 1 1
1 0 1
1 1 0
A B Q
0 0 1
0 1 0
1 0 0
1 1 0
As well as the standard logic gates there are also two special types
of logic gate function called an Exclusive-OR Gate and an Exclusive-
NOR Gate. The Boolean expression to indicate an Exclusive-OR or
( ⊕ ).
Exclusive-NOR function is to a symbol with a plus sign inside a circle,
A B Q
0 0 0
0 1 1
1 0 1
1 1 0
Boolean Expression Q = A ⊕ B
0 0 1
0 1 0
1 0 0
1 1 1
Boolean Expression Q = A ⊕ B
0 1 0 1 1 0 1 0
1 0 0 1 1 0 1 0
1 1 1 0 1 0 0 1
AND A.B
OR A+B
NOT A
NAND A .B
NOR A+B
EX-OR (A.B) + (A.B) or A ⊕ B
2-input logic gate truth tables are given here as examples of the
operation of each logic function, but there are many more logic
gates with 3, 4 even 8 individual inputs. The multiple input gates are
no different to the simple 2-input gates above, So a 4-input AND
gate would still require ALL 4-inputs to be present to produce the
required output at Q and its larger truth table would reflect that.
Inputs Output at
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
From the truth table above, column C represents the output function
generated by the NAND gate, while column D represents the output
function from the Ex-OR gate. Both of these two output expressions
then become the input condition for the Ex-NOR gate at the output.
It can be seen from the truth table that an output at Q is present
when any of the two inputs A or B are at logic 1. The only truth table
that satisfies this condition is that of an OR Gate. Therefore, the
whole of the above circuit can be replaced by just one single 2-
input OR Gate.
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
Example No3
Find the Boolean algebra expression for the following system.
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.
The output from the 3-input AND gate is only at logic “1”
when ALL the gates inputs are HIGH at logic level “1” (A.B.C). The
output from the lower OR gate is only a “1” when one or both
inputs B or C are at logic level “0”. The output from the 2-
input AND gate is a “1” when input A is a “1” and inputs B or C are
at “0”. Then the output at Q is only a “1” when inputs A.B.C equal
“1” or A is equal to “1” and both inputs B or C equal “0”, A.(B+C).
By using “de Morgan’s theorem” inputs B and input C cancel out
as to produce an output at Q they can be either at logic “1” or at
logic “0”. Then this just leaves input A as the only input needed to
give an output at Q as shown in the table below.
Inputs Intermediates Output
0 0 0 0 1 1 1 0 0
0 0 1 0 1 1 1 1 1
0 1 0 0 0 1 1 0 0
0 1 1 0 0 1 1 1 1
1 0 0 0 1 0 1 0 0
1 0 1 0 1 0 1 1 1
1 1 0 0 0 0 0 0 0
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.
Input
Output Conditions
Variable
0 0 0 1 0 1
0 1 0 1 1 0
1 0 0 1 1 0
1 1 1 0 1 0
The following table gives a list of the common logic functions and
their equivalent Boolean notation where a “ .” (a dot) means
an AND (product) operation, a “+” (plus sign) means an OR (sum)
operation, and the complement or inverse of a variable is indicated
by a bar over the variable.
AND A.B
OR A+B
NOT A
NAND A .B
NOR A+B
DeMorgan’s Theory
DeMorgan’s Theorems are basically two sets of rules or laws
developed from the Boolean expressions for AND, OR and NOT using
two input variables, A and B. These two rules or theorems allow the
input variables to be negated and converted from one form of a
Boolean function into an opposite form.
DeMorgan’s first theorem states that two (or more) variables NOR
´ed together is the same as the two variables inverted
(Complement) and AND´ed, while the second theorem states that
two (or more) variables NAND´ed together is the same as the two
terms inverted (Complement) and OR´ed. That is replace all the OR
operators with AND operators, or all the AND operators with an OR
operators.
DeMorgan’s First Theorem
DeMorgan’s First theorem proves that when two (or more) input
variables are AND’ed and negated, they are equivalent to the OR of
the complements of the individual variables. Thus the equivalent of
the NAND function will be a negative-OR function, proving
that A.B = A+B. We can show this operation using the following
table.
0 0 0 1 1 1 1
0 1 0 1 0 1 1
1 0 0 1 1 0 1
1 1 1 0 0 0 0
We can also show that A.B = A+B using logic gates as shown.
0 0 0 1 1 1 1
0 1 1 0 0 1 0
1 0 1 0 1 0 0
1 1 1 0 0 0 0
We can also show that A+B = A.B using the following logic gates
example.
A.B.C = A+B+C
and also
A+B+C = A.B.C
For a 4-variable input
A.B.C.D = A+B+C+D
and also
A+B+C+D = A.B.C.D
and so on.