Professional Documents
Culture Documents
Module 3 - Boolean Algrebra
Module 3 - Boolean Algrebra
Boolean Algebra
Boolean algebra is a relatively simple mathematical tool that allows us to
describe the relationship between a logic circuit’s output/s and its inputs as
an algebraic equation (a Boolean expression).
Boolean Theorems
Rules that can be applied to Boolean algebra to simplify logic expressions.
• Double complementation
� = 𝑿𝑿 𝒐𝒐𝒐𝒐 (𝑋𝑋′)′ = 𝑿𝑿
𝟗𝟗)𝑿𝑿
𝑵𝑵𝑵𝑵𝑵𝑵𝑵𝑵: 𝑭𝑭𝑭𝑭𝑭𝑭 𝑵𝑵𝑵𝑵𝑵𝑵 𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐𝒐 𝒆𝒆𝒆𝒆𝒆𝒆𝒉𝒉𝒆𝒆𝒆𝒆 𝒘𝒘𝒘𝒘 𝒖𝒖𝒖𝒖𝒖𝒖 𝑿𝑿 𝒐𝒐𝒐𝒐 𝑿𝑿′
• Commutative Property
𝟏𝟏𝟏𝟏)𝑿𝑿𝑿𝑿 = 𝒀𝒀𝒀𝒀
𝟏𝟏𝟏𝟏)𝑿𝑿 + 𝒀𝒀 = 𝒀𝒀 + 𝑿𝑿
• Associative Property
𝟏𝟏𝟏𝟏)𝑿𝑿(𝒀𝒀𝒀𝒀) = (𝑿𝑿𝑿𝑿)𝒁𝒁
𝟏𝟏𝟏𝟏)𝑿𝑿 + (𝒀𝒀 + 𝒁𝒁) = (𝑿𝑿 + 𝒀𝒀) + 𝒁𝒁
• Distributive Property
𝟏𝟏𝟏𝟏)𝑿𝑿(𝒀𝒀 + 𝒁𝒁) = 𝑿𝑿𝑿𝑿 + 𝑿𝑿𝑿𝑿
𝟏𝟏𝟏𝟏)(𝑾𝑾 + 𝑿𝑿)(𝒀𝒀 + 𝒁𝒁) = 𝑾𝑾𝑾𝑾 + 𝑿𝑿𝑿𝑿 + 𝑾𝑾𝑾𝑾 + 𝑿𝑿𝑿𝑿
• Absorption theorem
𝟏𝟏𝟏𝟏)𝑿𝑿 + 𝑿𝑿𝑿𝑿 = 𝑿𝑿
Proof:
𝑿𝑿 + 𝑿𝑿𝑿𝑿 = 𝑿𝑿(1 + 𝒀𝒀)
= 𝑿𝑿 (𝟏𝟏)
= 𝑿𝑿
• Identity Property
𝟏𝟏𝟏𝟏)𝑿𝑿 + 𝑿𝑿𝒀𝒀 = 𝑿𝑿 + 𝒀𝒀
Proof:
𝑿𝑿 + 𝑿𝑿𝒀𝒀 = 𝑿𝑿 + 𝑿𝑿𝒀𝒀
= 𝑿𝑿(𝒀𝒀 + 𝟏𝟏) + 𝑿𝑿𝒀𝒀
= 𝑿𝑿𝑿𝑿 + 𝑿𝑿 + 𝑿𝑿𝒀𝒀
= 𝑿𝑿𝑿𝑿 + 𝑿𝑿𝒀𝒀 + 𝑿𝑿
= 𝒀𝒀(𝑿𝑿 + 𝑿𝑿) + 𝑿𝑿
= 𝒀𝒀(𝟏𝟏) + 𝑿𝑿
= 𝒀𝒀 + 𝑿𝑿
𝟏𝟏𝟏𝟏)𝑿𝑿 + 𝑿𝑿𝑿𝑿 = 𝑿𝑿 + 𝒀𝒀
Proof:
𝑿𝑿 + 𝑿𝑿𝑿𝑿 = 𝑿𝑿 + 𝑿𝑿𝑿𝑿
= 𝑿𝑿(𝒀𝒀 + 𝟏𝟏) + 𝑿𝑿𝑿𝑿
= 𝑿𝑿𝒀𝒀 + 𝑿𝑿 + 𝑿𝑿𝑿𝑿
= 𝑿𝑿𝒀𝒀 + 𝑿𝑿𝑿𝑿 + 𝑿𝑿
= 𝒀𝒀�𝑿𝑿 + 𝑿𝑿� + 𝑿𝑿
= 𝒀𝒀(𝟏𝟏) + 𝑿𝑿
= 𝒀𝒀 + 𝑿𝑿
= 𝑿𝑿 + 𝒀𝒀
De Morgan’s Theorems
The theorem explains that the complement of the sum (OR operation) of all
the terms is equal to the product (AND operation) of the complement of each
term.
𝟏𝟏𝟏𝟏)(𝑿𝑿 + 𝒀𝒀) = 𝑿𝑿 𝒀𝒀
Likewise, the complement of the product (AND operation) of all the terms is
equal to the sum (OR operation) of the complement of each term.
𝟐𝟐𝟐𝟐)(𝑿𝑿 𝒀𝒀) = 𝑿𝑿 + 𝒀𝒀
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.
X = A+ B
X = AB
X = A⊕ B X = A⊕ B
X = AB + A B X = AB + A B
INVERT
OUTPUTS
INVERT
INPUTS
INVERT
INPUTS
AND
OUTPUT
UNIVERSAL GATES
• NAND GATES
In looking through manufacturer’s literature you will find that NAND gate’s
wide use, we shall show it can be used to make other types of gates. We
shall be using the NAND gate as a sort of “UNIVERSAL GATE”. (NOR
gate is also a Universal Gate)
The chart below shows how you would wire NAND gates to create any of
the other basic logical functions. The logic function to be performed is
listed in the left column of the table; the symbol for the function is listed in
the center column. In the right column is a symbol diagram of how NAND
gates would be wired to perform the logic function.
LOGIC SYMBOL CIRCUIT USING GATES ONLY
FUNCTION
INVERTER A A
AND
OR
NOR
A+ B A+ B
XOR
A⊕ B A⊕ B
XNOR
A⊕ B
A⊕ B
• NOR GATES
In similar manner, it can be shown that NOR gates can be arranged to
implement any of the Boolean operations.
AND
OR
NAND
A• B
A• B
XOR
A⊕ B
A⊕ B
XNOR
A⊕ B
A⊕ B
Example:
Assignment No.1