Unit 1 - Deld - Sycomp
Unit 1 - Deld - Sycomp
UNIT - 1
“Minimization techniques”
By
Prof. Dipali Gupta
Assistant Professor
Computer Department
Combinational Logic Circuits
Introduction
Standard representation of canonical forms (SOP &
POS), Maxterm and Minterm , Conversion between SOP
and POS forms
K-map reduction techniques upto 4 variables (SOP & POS form),
Design of Half Adder, Full Adder, Half Subtractor & Full Subtractor
using k-Map
Code Converter using K-map: Gray to Binary Binary to Gray Code
Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder & Subtractor, 1 Digit BCD Adder
Block Schematic of ALU IC 74181 IC 74381
Standard Representation
Sum
Y A.B B.C A.C
Product
POS Form
3 Standard POS
Y ( A B).( A B).( A B)
Procedure:
1. Write down all the terms.
2. If one or more variables are missing in any
product term, expand the term by
multiplying it with the sum of each one of
the missing variable and its complement .
3. Drop out the redundant terms
Example 1
Y AB AC BC
Y AB AC BC
Missing literal is A
Missing literal is B
Missing literal is C
Procedure:
1. Write down all the terms.
2. If one or more variables are missing in any
sum term, expand the term by adding the
products of each one of the missing variable
and its complement .
3. Drop out the redundant terms
Example 2
Convert given expression into its standard SOP form Y ( A B).( A C) (B C)
Y ( A B).( A C) (B C)
Missing literal is A
Missing literal is B
Missing literal is C
A B C mi Mi
0 0 0
ABC m0 A B C M 0
0 0 1
ABC m1 A B C M1
0 1 0
ABC m2 A B C M 2
0 1 1
ABC m3 A B C M3
1 0 0
ABC m4 A B C M 4
1 0 1
ABC m5 A B C M5
1 1 0
ABC m6 A B C M 6
1 1 1 ABC m7 A B C M 7
18
Minterms and maxterms
A B mi Mi
0 0
AB m0 A B M 0
0 1
AB m1 A B M1
1 0
AB m2 A B M 2
1 1 AB m3 A B M3
Representation of Logical expression using minterm
Logical Expression
m7 m3 m4 m5 Corresponding
minterms
Y m7 m3 m4 m5
Y m(3, 4, 5, 7) OR
Y f ( A, B, C) m(3, 4, 5, 7)
Y ( A B C).( A B C).( A B C)
Logical Expression
M2 M0 M6 Corresponding
maxterms
Y M 2.M 0.M 6
Y M (0, 2, 6) OR
Y f ( A, B, C) M (0, 2, 6)
form Y ( A B).( A C)
Combinational Logic Circuits
Introduction
Standard representation of canonical forms (SOP & POS),
Maxterm and Minterm , Conversion between SOP and POS forms
K-map reduction techniques upto 4 variables (SOP &
POS form), Design of Half Adder, Full Adder, Half Subtractor &
Full Subtractor using k-Map
Code Converter using K-map: Gray to Binary, Binary to Gray Code
Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder & Subtractor, 1 Digit BCD Adder
Block Schematic of ALU IC 74181 IC 74381
Karnaugh Map (K-map)
A
B 0 1
1
Karnaugh Map (K-map)
A A
A A
B 0 1 B 0 1
0 AB AB 0 m0 m1
B
B 1 AB AB 1 m2 m3
K-map & its associated minterms
Karnaugh Map (K-map)
Relationship between Truth Table & K-map
A
B 0 1
A B Y 0
0 0
0 0 0 1 1 1
0 1 1
1 0 0
B
1 1 1 A 0 1
0 0 1
1 0 1
Karnaugh Map (K-map)
K-map Structure - 3 Variable
A, B & C are variables or inputs
AB 3 variable k-map consists of 8 boxes i.e. 23=8
C A
BC 0 1
0
00
1
01
BC
00 01 11 10 11
A
10
0
1
Karnaugh Map (K-map)
3 Variable K-map & its associated product
terms
AB
C 00 01 11 10 A
BC 0 1
0 ABC ABC ABC ABC
00 ABC ABC
1 ABC ABC ABC ABC
01 ABC ABC
BC
01 11 10 11 ABC ABC
A 00
10
0 ABC ABC ABC ABC ABC ABC
AB
00 01 11 10
C A
BC 0 1
0 m0 m2 m6 m4
00 m0 m4
1 m1 m3 m7 m5
01 m1 m5
BC m3 m7
00 01 11 10 11
A
0
m0 m1 m3 m 2 10 m 2 m6
1 m 4 m5 m7 m6
Karnaugh Map (K-map)
K-map Structure - 4 Variable
A, B, C & D are variables or inputs
4 variable k-map consists of 16 boxes i.e. 24=16
AB CD
CD 00 01 11 10 AB 00 01 11 10
00 00
01 01
11 11
10 10
Karnaugh Map (K-map)
4 Variable K-map and its associated product
terms
AB CD
CD 00 01 11 10 AB 00 01 11 10
AB CD
CD 00 01 11 10 AB 00 01 11 10
m0 m4 m12 m8 m0 m1 m3 m2
00 00
01 m1 m5 m13 m9 01 m4 m5 m7 m6
A 1 1 0 1 1
ABC
ABC ABC 38
Simplification of K-map
BC BC BC BC BC
A 00 01 11 10
0 0 1 1
A 0 Y ABC ABC
0 0 0 0
A 1 Y AB(C C)
Y AB ( C C 1)
Grouping of Two Adjacent 1’s : Pair
BC BC BC BC BC BC BC BC BC BC
00 01 11 10 A 00 01 11 10
A
0 0 0 0 0 1 1 1
A 0 A 0
1 0 0 1 A 1 0 0 1 0
A 1
BC BC BC BC BC B
A 00 01 11 10 A 0 1
0 1 0 0 1 1
A 0 0
A 1 0 1 0 0 1 0
1
Grouping of Two Adjacent 1’s : Pair
CD CD CD CD CD
AB 00 01 11 10
0 1 0 0
AB 00
0 0 0 0
AB 01
AB 11 0 0 0 0
0 1 0 0
AB 10
Possible Grouping of Four Adjacent 1’s : Quad
AB 11 0 0 0 0 AB 11 0 1 0 0
AB 10 1 1 1 1 0 1 0 0
AB 10
Possible Grouping of Four Adjacent 1’s : Quad
01 1 1 0 0 01 0 0 0 0
11 1 1 0 0 11 0 0 0 0
0 0 0 0 0 1 1 0
10 10
Possible Grouping of Four Adjacent 1’s : Quad
CD CD
AB 00 01 11 10 AB 00 01 11 10
1 0 0 1 0 0 0 0
AB 00 00
0 0 0 0 1 0 0 1
01 01
0 0 0 0 1 0 0 1
11 11
1 0 0 1 0 0 0 0
AB 10 10
Possible Grouping of Four Adjacent 1’s : Quad
01 0 1 1 1 01 0 1 1 0
11 0 1 1 1 11 0 1 1 0
0 0 0 0 0 1 1 0
10 10
Possible Grouping of Eight Adjacent 1’s : Octet
01 0 0 0 0 01 0 1 1 0
11 1 1 1 1 11 0 1 1 0
1 1 1 1 0 1 1 0
10 10
Possible Grouping of Eight Adjacent 1’s : Octet
CD CD
AB 00 01 11 10 AB 00 01 11 10
1 1 1 1 1 0 0 1
AB 00 AB 00
0 0 0 0 1 0 0 1
01 01
0 0 0 0 1 0 0 1
11 11
1 1 1 1 1 0 0 1
AB 10 AB 10
Rules for K-map simplification
1. Groups may not include any cell containing a
zero.
A A A A
A A
0 1 0 1
B B
0 0
B 0 B 0
1 1 1
B 1 B 1
0 1 1 1 0 1 1 1
A 0 A 0
0 0 0 0 A 1 0 0 0 0
A 1
A
A A A
A A
B 0 1 B 0 1
1 1 1 1
B 0 B 0
0 1 0 1
B 1 B 1
53
Not Accepted Accepted
Rules for K-map simplification
4. Each group should be as large as possible
BC BC BC BC BC BC BC BC BC BC
00 01 11 10 A 00 01 11 10
A
1 1 1 1 1 1 1 1
A 0 A 0
0 0 1 1 A 1 0 0 1 1
A 1
BC BC BC BC BC
A 00 01 11 10
0 0 0 1
A 0
A 1 0 0 1 0
Rules for K-map simplification
BC BC BC BC BC
A 00 01 11 10
1 1 1 1
A 0
A 1 0 0 1 1
Rules for K-map simplification
CD
AB 00 01 11 10
BC BC BC BC
1 1 1 1 BC 00 01 11 10
AB 00 A
1 0 0 1
01 0 0 0 0 A 0
A 1 1 0 0 1
11 0 0 0 0
1 1 1 1
AB 10
Rules for K-map simplification
8. There should be as few groups as possible, as long as
this does not contradict any of the previous rules.
BC BC BC BC BC BC BC BC BC BC
00 01 11 10 A 00 01 11 10
A
1 1 1 1 1 1 1 1
A 0 A 0
0 0 1 1 A 1 0 0 1 1
A 1
AB AB AB AB AB
C 00 01 11 10
0 1 1 1
C 0
C 1 0 0 1 0
Example 1 continue…..
AB AB AB AB AB
C 00 01 11 10
0 1 1 1
0 AC
0 0 1 0
1
BC AB
AB AB AB AB AB
C 00 01 11 10
1 1 0 1
C 0
C 1 1 0 0 1
Example 2 continue…..
AB AB AB AB AB
C 00 01 11 10
1 1 0 1
0
1 0 0 1
1
AC B
BC BC BC BC BC AB
A 00 01 11 10
1 0 1 1
A 0
A 1 0 1 0 0
AC
ABC
Simplified Boolean
expression
8/29/2017 Y AC AB ABC 65
Example 4
Y m(0,1, 2, 5,13,15)
CD CD CD CD
AB 00 01 11 10 ABD
1 0 1 1 0 3 1 2
AB 00
0 4 1 5 0 7 0 6
AB 01
AB 11 0 12 1 13 1 15 0 14
Simplified Boolean
expression
AB 10 0 8 0 9 0 11 0 10
Y ABD ACD ABD
ACD ABD
Example 5
f ( A, B, C, D) m(1, 3, 5, 9,11,13)
Example 5 continue…..
f ( A, B, C, D) m(1, 3, 5, 9,11,13)
CD CD CD CD CD
AB 00 01 11 10
0 0 1 1 1 3 0 2
AB 00
0 4 1 5 0 7 0 6
AB 01
AB 11 0 12 1 13 0 15 0 14
Simplified Boolean
expression
AB 0 8 1 9 1 11 0 10
10
f BD CD
f D(B C)
BD CD
Example 6
CD CD CD CD CD
AB 00 01 11 10
BC
0 0 0 1 0 3 0 2
AB 00
1 4 1 5 0 7 0 6
AB 01
AB 11 1 12 1 13 1 15 0 14
Simplified Boolean
expression
AB 10 1 8 1 9 1 11 0 10
f BC AC AD
AC AD
Example 7
f 2( A, B, C, D) m(0,1, 2, 3,11,12,14,15)
Example 7 continue…..
CD
AB 00 01 11 10
AB
1 0 1 1 1 3 1 2
AB 00
0 4 0 5 0 7 0 6
AB 01
AB 11 1 12 0 13 1 15 1 14
Simplified Boolean
expression
AB 10 0 8 0 9 1 11 0 10
f 2 AB ABD ACD
ABD ACD
Example 8
1. f 1( A, B, C) m(0,1, 3, 4, 5)
2.
f 2( A, B, C) m(0,1, 2, 3, 6, 7)
Example 8 continue……
AC
BC BC BC BC BC BC BC BC BC BC
A 00 01 11 10 A 00 01 11 10
1 0 1 1 1 3 0 2 1 0 1 1 1 3 1 2
A 0 0
4 4 0 5 1 7 1 6
A 1 1 1 5 0 7 0 6 1 0
B A B
Simplify ;
AB 01 1 4 1 5 1 7 0 6
AB 11 1 12 1 13 1 15 0 14
Simplified Boolean
exprefssiCon BD
AB 10 1 8 1 9 0 11 0 10
C BD
Example 10
1. f 1( A, B, C, D) m(0,1, 3, 4, 5, 7)
2.
f 2( A, B, C) m(0,1, 3, 4, 5, 7)
Example 10 continue……
AB 10 0 8 0 9 0 11 0 10 B C
Simplified Boolean
AC AD expression
Simplified Boolean f 2 B C
expre ssion f AC AD
1
8/29/2017 79
K-map and don’t care conditions
Simplify ;
CD CD CD CD CD
AB 00 01 11 10
X 0 1 1 1 3 X 2
AB 00
0 4 X 5 1 7 0 6
AB 01
AB 11 0 12 0 13 1 15 0 14
Simplified Boolean
expression
AB 10 0 8 0 9 1 11 0 10 f CD AB AD
AB AD CD