Lecture 1-2-3-And 4
Lecture 1-2-3-And 4
Text Book:
Stephen Brown and Zvonko Vranesic, Fundamentals of Digital
Logic with Verilog Design (3e), Tata McGraw Hill 2014.
The slides in this document are prepared using the above text book
Truth Tables
x x’
0 1
1 0
• AND gate gives high output if and only if all of its inputs
are high
• OR gate output is LOW if and only if all of its inputs are
LOW.
A B Q A B Q
0 0 1 0 0 1
0 1 1 0 1 0
1 0 1 1 0 0
1 1 0 1 1 0
NAND NOR
• NAND gate gives LOW output if and only if all of its
inputs are HIGH
• NOR gate output is HIGH if and only if all of its inputs
are LOW.
Exclusive OR (XOR)
Example:
f
A logic expression consisting of product (AND) terms
that are summed (ORed) is said to be in the sum-of
products (SOP) form. If each product term is a minterm,
then the expression is called a canonical sum-of-
products for the function f
Maxterms
• A function f can also be synthesized by considering
the rows for which f = 0.
• This alternative approach uses the complements of
minterms, which are called maxterms.
Product-of-Sums Form
• If a given function f is specified by a truth table,
then its complement f’ can be represented by a
sum of minterms for which f’ = 1, which are the
rows where f = 0.
Example:
If we complement this expression using
DeMorgan’s theorem, the result is
• A logic expression consisting of sum (OR) terms
that are the factors of a logical product
• (AND) is said to be of the product-of-sums (POS)
form.
• If each sum term is a maxterm, then the expression
is called a canonical product-of-sums for the given
function.
Karnaugh map
Literal
Each appearance of a variable, either
uncomplemented or complemented, in a logical term is
called a literal. For example, the product term x1x2x3
has three literals, and the sum term (x1’+x3+x4’+x6)
has four literals.
Implicant
A product term that indicates the input valuation(s) for
which a given function is equal to 1 is called an implicant of
the function. The most basic implicants are the minterms.
Example:
f (x1, x2, x3) = ∑m(0, 1, 2, 3, 7).
Two alternatives:
Minimization of Product-of-Sums Forms
Example1:
OR
Its cost is greater than the cost of the equivalent SOP
implementation
SOP COST: 6 (assuming input variables are
available in both true and complemented forms)
POS COST: 9
Example2:
OR
Assuming that both the complemented and uncomplemented
versions of the input variables x1 to x4 are available,
SOP COST: 18
POS COST: 15
Factoring
Fan-in Problem
No. of inputs that a gate can drive is called fan in
Factoring can be used to deal with the fan-in problem.
Functional Decomposition