Lecture 02 - Gates - K-Map (Done)
Lecture 02 - Gates - K-Map (Done)
n n
A: 2 rows, since there are 2 possible
binary patterns/combinations for the n
variables
F = A•B G = A+B H = A’
1
F=A•B 0 Basic
Gate
1 Assumption:
Output G=A+B 0 Zero time for
Signals
1 signals to
H=A’ 0 propagate
Through gates
Oct 15, 2024 Boolean Algebra
Combinational Logic Circuit
from Logic Function
Consider function F = A’ + B•C’ + A’•B’
A combinational logic circuit can be constructed to implement F, by
appropriately connecting input signals and logic gates:
Circuit input signals from function variables (A, B, C)
Circuit output signal function output (F)
Logic gates from logic operations
A F
A F
C
B
A G
1. X + 0 = X -- Zero Axiom
2. X • 1 = X -- Unit Axiom
3. X+1 =1 -- Unit Property
4. X • 0 = 0 -- Zero Property
5. X+X=X -- Idepotence
6. X•X =X -- Idepotence
7. X + X’ = 1 -- Complement
8. X • X’ = 0 -- Complement
9. (X’)’ = X -- Involution
EQUAL
DeMorgan’s Theorem #2
(A + B)’ = A’ · B’
EQUAL
Algebraic Manipulation
Boolean algebra is a useful tool for
simplifying digital circuits.
Why do it? Simpler can mean cheaper,
smaller, faster.
Example: Simplify F = x’yz + x’yz’ + xz.
F = x’yz + x’yz’ + xz
= x’y(z+z’) + xz
= x’y•1 + xz
= x’y + xz
X Z X
X Z
0 1
Equivalent to Inverter
1 0
NAND Gate as an AND Gate
XY
X
Z X Y X Y
Y
X Y Z
0 0 0
0 1 0
Equivalent to AND Gate
1 0 0
1 1 1
NAND Gate as an OR Gate
X
X Y
Z X Y X Y X Y
Y
X Y Z
0 0 0
0 1 1
Equivalent to OR Gate
1 0 1
1 1 1
NOR Gate
Also a “universal” gate because ANY digital
circuit can be implemented with NOR gates
alone.
This can be similarly proven as with the
NAND gate.
X Z X
X Z
0 1
Equivalent to Inverter
1 0
NOR Gate as an OR Gate
XY
X
Z X Y X Y
Y
X Y Z
0 0 0
0 1 1
Equivalent to OR Gate
1 0 1
1 1 1
NOR Gate as an AND Gate
X
X Y
Z X Y X Y X Y
Y
X Y Z
0 0 0
0 1 0
Equivalent to AND Gate
1 0 0
1 1 1
XOR and XNOR
X Y F = XY
XOR: “not-equal” gate 0 0 0
0 1 1
X F 1 0 1
Y 1 1 0
X Y F = XY
XNOR: “equal” gate 0 0 1
0 1 0
X F
1 0 0
Y 1 1 1
Oct 15, 2024 Boolean Algebra
Exclusive-OR (XOR) Function
XOR (also ) : the “not-equal” function
XOR(X,Y) = X Y = X’Y + XY’
Identities:
X0=X
X 1 = X’
XX=0
X X’ = 1
Properties:
XY=YX
(X Y) W = X ( Y W)
corresponding cell.
Two-Variable Map (cont.)
Any two adjacent cells in the map differ by
ONLY one variable, which appears
complemented in one cell and
uncomplemented in the other.
Example:
1 m4 m5 m7 m6
group of 4 terms
Oct 15, 2024 Boolean Algebra
Simplification
Enterminterms of the Boolean function into
the map, then group terms
Example: f(a,b,c) = a’c + abc + bc’
Result: f(a,b,c) = a’c+ b
abc
1 1 1
1 1
1 1 1
1 1
Oct 15, 2024 Boolean Algebra
More Examples
yz
X 00 01 11 10
f (x, y, z) = ∑ m(2,3,5,7) 0 1 1
1
1 1 1
f1(x, y, z) = x’y + xz
f (x, y, z) = ∑ m (0,1,2,3,6)
2
1 1 1 1
f (x, y, z) = x’+yz’
2 1
00 m0 m1 m3 m2
01 m4 m5 m7 m6
10 m8 m9 m11 m10
term of 2 literals.
A rectangle of 8 squares represents a product
term of 1 literal.
A rectangle of 16 squares produces a function
1 1 1 1 1 1
1 1 1 1
1 1 1 1 1 1
g(A,B,C,D) = c’+b’d’+a’bd
Oct 15, 2024 Boolean Algebra
Don't Care Conditions
There may be a combination of input values which
will never occur
if they do occur, the output is of no concern.
The function value for such combinations is called a
don't care.
They are denoted with x or –. Each x may be
function
Oct 15, 2024 Boolean Algebra
Minimization using Don’t
Cares
Treat don't cares as if they are 1s to generate
PIs.
Delete PI's that cover only don't care
minterms.
Treat the covering of remaining don't care
0 1 0 1
1 1 0 1
0 0 x x
1 1 x x
Oct 15, 2024 Boolean Algebra
cd
ab
Another Example x 1 0 0
1 x 0 x
Simplify the function 1 x x 1
g(a,b,c,d) whose K-map 0 x x 0
is shown at right. x 1 0 0
g = a’c’+ ab 1 x 0 x
or 1 x x 1
g = a’c’+b’d 0 x x 0
x 1 0 0
1 x 0 x
1 x x 1
0 x x 0
Oct 15, 2024 Boolean Algebra