Professional Documents
Culture Documents
ABC ABC ABC – f can be written as the sum of row numbers having TRUE minterms
– The product term in a canonical SOP expression
is called a 'minterm' f (3,6,7)
approach)
Simplifying Logic Circuits
• First obtain one expression for the circuit, then try to simplify.
• Example:
• a) Grouping
– Given • b) Multiplication by redundant variables
A AB BC – Multiplying by terms of the form A A does not
alter the logic
– write it as
– Such multiplications by a variable missing from a
A(1 B) term may enable minimization
– then apply BC eg:
– AB AC BC AB (C C ) AC BC
1 B 1 ABC ABC AC BC
– Minimized BC (1 A) AC (1 B )
form
A BC BC AC
– eg:
ABC ACD ( A B C ) ( A C D)
BC BC
( A B C D) BC each case where the 1 0 0 0
( A B C D) output
ABCD is a 1.
1 0 1 1 ABC
1 1 0 1 ABC
1 1 1 1 ABC
E1.2 Digital Electronics I
Cot 2007 E1.2 Digital Electronics I 5.12 Cot 2007
Step 5 Implement the circuit
Step 3 Write the SOP form the output
Step 4 Simplify the output expression
Minimization by Karnaugh
Maps – 4 Variable example
AB\CD 00 01 11 10
• What is a Karnaugh map?
– 3 Variable Example: 00
A\BC 00 01 11 10 01 ? ??
0 11
1
10
– A grid of squares
– Each square represents one minterm
• eg: top-left represents A.B.C , bottom-right represents A. B.C
– The minterms are ordered according to Gray code – The square marked ? represents A.B.C.D
• only one variable changes between adjacent squares
– Squares on edges are considered adjacent to squares on – The square marked ?? represents A.B.C.D
opposite edges
– Karnaugh maps become clumsier to use with more than 4 variables
– Note that they differ in only the C
variable.
E1.2 Digital Electronics I Cot 2007 E1.2 Digital Electronics I Cot 2007
A\BC 00 01 11 10
– this can be simplified (from before) to just P
0 0 0 1 0
1 0 1 1 1
• Adjacent Pairs
the adjacent squares AB C and A BC differ only in A – The same idea extends to pairs of pairs
– hence they can be combined into just BC
sums all the terms corresponding to each of the group:
More examples
More Examples of
grouping
AB\CD 00 01
1 11 10 AB\CD 00 01 11 10
00 0 0 0 00 0 0 0 0
01 0 1 0 0 01 1 0 0 1
11 1 1 1 1 11 1 0 1 1
10 0 1 0 0 10 0 0 0 0
ABCD BD ABC
– simplifies to B if X is assumed 1
XB
OPEN
M F1 MF3 MF2
Summary
K Map Method Summary
• SOP and POS –useful forms of Boolean equations
• Design of a comb. Logic circuit
•Compared to the algebraic method, the K-map process is (1) construct its truth table, (2) convert it to a SOP, (3)
a more orderly process requiring fewer steps and always simplify using Boolean algebra or K mapping, (4)
producing a minimum expression. implement
•The minimum expression in generally is NOT unique. • K map: a graphical method for representing a
circuit’s truth table and generating a simplified
•For the circuits with large numbers of inputs (larger than
expression
four), other more complex techniques are used.
• “Don’t cares” entries in K map can take on values of
1 or 0. Therefore can be exploited to help
simplification
E1.2 Digital Electronics I 5.31