B20ca1040 02
B20ca1040 02
UNIT - II
Logic Gates, Boolean Algebra and
Logic Simplification
School of CSA
Prof. Krishnamurthy R
TOPICS TO BE COVERED
• Inverter
• AND Gate,
• OR gate,
• NAND Gate,
• NOR Gate,
• Exclusive-OR
• Exclusive-NOR Gates,
• Basics of Digital Integrated Circuits.
TOPICS TO BE COVERED
Logic Gates
LOGIC GATES
LOGIC GATES
LOGIC GATES
• Gates are blocks of hardware that produce signals of binary 1 or 0 when input
logic requirements are satisfied.
• Each gate has a distinct graphic symbol and its operation can be described by
means of an algebraic expression.
• The input-output relationship of the binary variables for each gate can be
represented in tabular form by a truth table.
AND GATE
• AND gate : The AND gate produces the AND logic function: that is, the output is 1
if input A and input B are both equal to 1; otherwise, the output is 0.
• The Truth Table shows that output x is 1 only when both input A and input B are 1.
• The algebraic operation symbol of the AND function is the same as the
multiplication symbol of ordinary arithmetic.
OR GATE
• The OR gate produces the inclusive-OR function, that is, the output is 1
if input A or input B or both inputs are I; otherwise, the output is 0.
• OR gates may have more than two inputs, and by definition, the output is 1 if any
input is I.
INVERTER
• The algebraic symbol used for the logic complement is either a prime or a bar
over the variable symbol.
NAND GATE
The NAND function is the complement of the AND function, as indicated by the
graphic symbol, which consists of an AND graphic symbol followed by a small circle.
NOR GATE
• The NOR gate is the complement of the OR gate and uses an OR graphic symbol
followed by a small circle.
• Both NAND and NOR gates may have more than two inputs, and the output is
always the complement of the AND or OR function, respectively.
EXCLUSIVE-OR GATE
• The exclusive-OR gate has a graphic symbol similar to the OR gate except
for the additional curved line on the input side.
• The output of this gate is 1 if any input is 1 but excludes the combination when
both inputs are 1.
EXCLUSIVE-NOR
• The output of this gate is 1 only if both inputs are equal to 1 or both inputs are
equal to 0.
BOOLEAN ALGEBRA
• Boolean algebra is an algebra that deals with binary variables and logic
operations.
• The three basic logic operations are AND, OR, and complement.
• A Boolean function can be expressed algebraically with binary variables, the logic
operation symbols, parentheses, and equal sign.
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
• The relationship between a function and its binary variables can be represented in
a truth table.
BOOLEAN ALGEBRA
Truth table for F = x + y’z.
BOOLEAN ALGEBRA
Proofs of the theorems with one variable are presented below. At the right
is listed the number of the postulate which justifies that particular step of
the proof.
THEOREM 1(a): x + x = x.
Statement Justification
.
x + x = (x + x) 1 postulate 2(b)
= (x + x)(x + x) 5(a)
= x + xx 4(b)
=x+0 5(b)
=x 2(a)
THEOREMS OF BOOLEAN ALGEBRA
THEOREM 1(b): x . x = x.
Statement Justification
x . x = xx + 0 postulate 2(a)
= xx + xx 5(b)
= x(x + x) 4(a)
=x .1 5(a)
=x 2(b)
THEOREM 6(a): x + xy = x.
Statement Justification
.
x + xy = x 1 + xy postulate 2(b)
= x(1 + y) 4(a)
= x(y + 1) 3(a)
=x .1 2(a)
=x 2(b)
DEMORGAN’S THEOREM
DEMORGAN’S THEOREM
PROOF:
DEMORGAN’S THEOREM
PROOF:
DEMORGAN’S THEOREM
Simplify the following Boolean expression and note the Boolean or Demaorgan's
theorem used at each step
Example:
F = X’YZ + X’YZ’ + XZ
= X’Y(Z + Z’) + XZ
= X’Y . 1 + XZ
= X’Y + XZ
BOOLEAN ANALYSIS OF LOGIC CIRCUITS
A product term in which all the variables appear exactly once either
complemented or not complemented is called minterm.
SOP-SUM OF PRODUCTS
Sum-of-Products Implementation
POS-PRODUCT OF SUMS
Product-of-Sums Implementation
F(A,B) = ∑ m ( 0, 1, 2, 3 ) F(A,B,C) = ∑ m ( 0, 1, 2, 3, 4, 5, 6, 7 )
TWO-VARIABLE MAPS
F(A,B)=∑ m (0, 1, 3)
F = A’ + B
THREE-VARIABLE MAPS
F(A,B,C)=∑ m (0, 1, 2, 3, 4, 5)
FOUR-VARIABLE K-MAP
F(A,B,C,D)=∑ m(0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13)
F = C’ + A’D’ + B’D’
FOUR-VARIABLE K-MAP
F(A,B,C,D)=∑ m(0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13)
F = C’ + A’D’ + B’D’