DMGT Module4 Boolean Algebra
DMGT Module4 Boolean Algebra
DMGT Module4 Boolean Algebra
X X (means complement of x)
0 1
1 0
NAND operator
Itperforms logical multiplication and
then negates the overall output. It
denoted by (-) bar over the (.)dot
product of the inputs.
NOR operator
It performs logical addition and
then negates the overall output. It
denoted by (-) bar over the
(+)addition of the inputs.
XOR operator
It performs logical operations and
gives an output when the inputs are
exclusively different from each
other. It is denoted by a special
sign as seen below.
XNOR operator
It performs logical operations and
negates the outputs of XOR gate.
Basically, it gives us the exact
opposite output as compared to
XOR gate.
Truth Table
Truth table is a table that contains all
possible values of logical
variables/statements in a Boolean
expression.
0 1 0
1 0 0
1 1 1
OR gate
The OR gate is an electronic circuit that
gives a high output (1) if one or more of its
inputs are high.
OR gate also takes two or more input
signals and produce only one output signal.
Input Input Output
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
NOT gate
The NOT gate is an electronic circuit that gives a
high output (1) if its input is low .
NOT gate takes only one input signal and produce
only one output signal.
The output of NOT gate is complement of its input.
It is also called inverter.
Input A Output A
0 1
1 0
NAND gate
• NAND gate is an electronic gate which gives an
output when both of the inputs are not high(1).
• This gate is the inverse of the AND gate studied
before.
NOR gate
• NOR gate is an electronic gate which gives an output
when neither of the inputs are high(1).
• This gate is the inverse of the OR gate studied before.
XOR gate
• XOR gate is an electronic gate which gives an output only when
either of the inputs is high(1), but not both.
• It stands for “Exclusively Or” which defines the function.
XNOR gate
• XNOR gate is an electronic gate which gives an output only
when both of the inputs are either high or low, but it should be
the same.
• It stands for “Exclusively Nor” which defines the function.
Question on Logic Diagram and Truth Table
Principal of Duality
In Boolean algebras the duality
Principle can be is obtained by
interchanging AND and OR operators
and replacing 0's by 1's and 1's by
0's. Compare the identities on the
left side with the identities on the
right.
Example
X.Y+Z' = (X'+Y').Z
Basic Theorems
T1 : Properties of 0
(a) 0 + A = A
(b) 0 A = 0
T2 : Properties of 1
(a) 1 + A = 1
(b) 1 A = A
Basic Theorem
T3 : Commutative Law
(a) A + B = B + A
(b) A B = B A
T4 : Associate Law
(a) (A + B) + C = A + (B + C)
(b) (A B) C = A (B C)
T5 : Distributive Law
(a) A (B + C) = A B + A C
(b) A + (B C) = (A + B) (A +C)
(c) A+A’B = A+B
Basic Theorem
T8 : Complementary Law
(a) X+X’=1
(b) X.X’=0
T9 : Involution
(a) x’’ = x
T10 : De Morgan's Theorem
(a) (X+Y)’=X’.Y’
(b) (X.Y)’=X’+Y’
Questions on Boolean Laws
Representation of
Boolean
expression
Boolean expression can be
represented by either
(i)Sum of Product( SOP) form or
(ii)Product of Sum (POS form)
e.g.
AB+AC SOP (A+B)
(A+C) POS
In above examples both are in SOP and POS respectively
but they are not in Standard SOP and POS.
Canonical form
(Standard form)
Sol. AB + AC
AB(C+C’) + AC(B+B’)
Distributive law
ABC+ABC’+ABC+AB’C
ABC+ABC’+AB’C
Canonical form of Boolean
Expression (Standard form) Contd..
Sol. (A+B).(A+C)
(A+B)+(C.C’) . (A+C)+(B.B’) (A+B+C).(A+B+C’).
(A+B+C)(A+B’+C) Distributive law
(A+B+C).(A+B+C’)(A+B’+C) Remove duplicates
Canonical form of Boolean
Expression (Standard form) Contd..
0 0 0 0 m0 = x y z M0 = x + y + z
0 0 1 1 m1 = x y z M1 = x + y + z
0 1 0 2 m2 = x y z M2 = x + y + z
0 1 1 3 m3 = x y z M3 = x + y + z
1 0 0 4 m4 = x y z M4 = x + y + z
1 0 1 5 m5 = x y z M5 = x + y + z
1 1 0 6 m6 = x y z M6 = x + y + z
1 1 1 7 m7 = x y z M7 = x + y + z
Maxterm Mi is the complement of minterm mi
M = m and m = M
Purpose of the
Index
Minterms and Maxterms are designated with an index
The index number corresponds to a binary pattern
The index for the minterm or maxterm, expressed as
a binary number, is used to determine whether the
variable is shown in the true or complemented form
For Minterms:
‘1’ means the variable is “Not Complemented” and
‘0’ means the variable is “Complemented”.
For Maxterms:
‘0’ means the variable is “Not Complemented” and
‘1’ means the variable is “Complemented”.
Questions on Canonical Form
Questions on SOP and POS