Lecture On Boolean Algebra
Lecture On Boolean Algebra
Presented by,
Md. Zahirul Islam
Boolean Algebra
• In order to analyze and design digital combinational
logic circuits we need a mathematical system.
• Binary logic system called Boolean Algebra is used.
• George Boole (1815-1864): “An investigation of the
laws of thought” – a book published in 1854 introducing
the mathematical theory of logic.
• Boolean Algebra deals with binary variables that take 2
discrete values (0 and 1), and with logic operations.
• Binary/logic variables are typically represented as
letters: A,B,C,…,X,Y,Z or a,b,c,…,x,y,z.
• Three basic logic operations:
AND, OR, NOT (complementation).
Boolean Constants and Variables
• Boolean algebra allows only two values—0 and 1.
– Logic 0 can be: false, off, low, no, open switch.
– Logic 1 can be: true, on, high, yes, closed switch.
1 + 1 = 1 not 1 + 1 = 2
A' = A
Another indicator for
inversion is the
prime symbol (').
This circuit always has only a single input, and the out-put
logic level is always opposite to the logic level of this input.
NOT Operation
The INVERTER inverts (complements) the
input signal at all points on the waveform.
• Further examples…
Describing Logic Circuits Algebraically
• Further examples…
Evaluating Logic Circuit Outputs
• The best way to analyze a circuit made up of multiple logic
gates is to use a truth table.
– It allows you to analyze one gate or logic
combination at a time.
– It allows you to easily double-check your work.
– When you are done, you have a table of tremendous
benefit in troubleshooting the logic circuit.
Evaluating Logic Circuit Outputs
• The first step after listing all input combinations
is to create a column in the truth table for each
intermediate signal (node).
Associative laws
Distributive law
Boolean Theorems
Multivariable Theorems
Theorems (14) and (15) do not have counterparts
in ordinary algebra. Each can be proved by
trying all possible cases for x and y.
Analysis table & factoring
for Theorem (14)
DeMorgan’s Theorems
• DeMorgan’s theorems are extremely useful in
simplifying expressions in which a product or
sum of variables is inverted.
Theorem (16) says inverting the OR sum of two variables is the same as
inverting each variable individually, then ANDing the inverted variables.
Theorem (17) says inverting the AND product of two variables is the
same as inverting each variable individually and then ORing them.
Output expression: x = AB + AB
This circuit produces a HIGH output whenever
the two inputs are at opposite levels.
Exclusive OR and Exclusive NOR Circuits
Traditional XOR gate symbol.
Output expression: x = AB + AB
XNOR produces a HIGH output whenever
the two inputs are at the same levels.
Exclusive OR and Exclusive NOR Circuits
Traditional XNOR gate symbol.
Equivalent representation
where output Z is
active-HIGH.
Equivalent representation
where output Z is
active-LOW.
Which Gate Representation to Use
• When a logic signal is in the active state (HIGH or
LOW) it is said to be asserted.
• When a logic signal is in the inactive state (HIGH
or LOW) it is said to be unasserted.
A bar over a signal Absence of a bar
means asserted
(active) LOW.
RD means asserted
(active) HIGH
RD
Thank You