SlideShare a Scribd company logo
1 of 42
Download to read offline
Karnaugh Map
2
What is K-map?
• A K-map is similar to a truth table
➢ All possible values of inputs + corresponding outputs
• A K-map is different from a truth table
➢Not rows and columns, but an array of cells
• Each cell within the K-map corresponds to a
particular combination of the input variables
➢Cells are arranged such that there is only a single-
variable change between adjacent cells, e.g. 010 cell
is adjacent to 011 cell
3
K-map Simplification for SOP
Expressions
• The process that results in an expression
containing the fewest possible terms with
fewest possible variables is called minimization
• After mapping an SOP expression, perform the
following 3 steps:
➢ Group the 1’s
➢ Determining product term for each group
✓ Each group creates one product term that composed of all
variables that occur in only one form within the group
➢ Summing the resulting product terms
✓ Sum all product terms together to form the Minimum SOP
Expression
Karnaugh Mapping or K-Mapping
This presentation will demonstrate how to
• Create and label two, three, & four variable K-Maps.
• Use the K-Mapping technique to simplify logic designs
with two, three, and four variables.
• Use the K-Mapping technique to simplify logic design
containing don’t care conditions.
Boolean Algebra Simplification K-Mapping Simplification
≡
4
K-Map Format
• Each minterm in a truth table
corresponds to a cell in the K-Map.
• K-Map cells are labeled such that both
horizontal and vertical movement differ
only by one variable.
• Since the adjacent cells differ by only
one variable, they can be grouped to
create simpler terms in the sum-of-
products expression.
• The sum-of-products expression for the
logic function can be obtained by OR-ing
together the cells or group of cells that
contain 1s. 5
Adjacent Cells = Simplification
VV
1 0
1 0
X
W
W
X
XW
XW
X
W
W
X
X
V
1 0
1 0
( ) XWWXXWXW =+=+
6
Truth Table to K-Map Mapping
V
W X FWX
Minterm – 0 0 0 1
Minterm – 1 0 1 0
Minterm – 2 1 0 1
Minterm – 3 1 1 0
V
0 1
2 3
X
W
W
X
1 0
1 0
Two Variable K-Map
7
V
0 0
0 0
B
A
A
Groups of One – 4
Two Variable K-Map Groupings
BA
1
BA
1 1
A B
BA
1
B
8
V
0 0
0 0
B
A
A
Groups of Two – 4
Two Variable K-Map Groupings
B
A
1 1
A
1 1
1
B
1
1
B
1
9
V
1 1
1 1
B
A
A
Group of Four – 1
Two Variable K-Map Groupings
1
B
10
K-Map Simplification Process
1. Construct a label for the K-Map. Place 1s in cells
corresponding to the 1s in the truth table. Place 0s in the
other cells.
2. Identify and group all isolated 1’s. Isolated 1’s are ones that
cannot be grouped with any other one, or can only be
grouped with one other adjacent one.
3. Group any hex.
4. Group any octet, even if it contains some 1s already grouped
but not enclosed in a hex.
5. Group any quad, even if it contains some 1s already grouped
but not enclosed in a hex or octet.
6. Group any pair, even if it contains some 1s already grouped
but not enclosed in a hex, octet, or quad.
7. OR together all terms to generate the SOP equation. 11
Example #1: 2 Variable K-Map
Example:
After labeling and transferring the truth table data into the K-Map,
write the simplified sum-of-products (SOP) logic expression for the
logic function F1.
V
J K F1
0 0 1
0 1 1
1 0 0
1 1 0
12
Example #1: 2 Variable K-Map
Example:
After labeling and transferring the truth table data into the K-Map,
write the simplified sum-of-products (SOP) logic expression for the
logic function F1.
V
1 1
0 0
K
J
J
K
Solution:
J
JF =1
J K F1
0 0 1
0 1 1
1 0 0
1 1 0
13
Truth Table to K-Map Mapping
W X Y FWXY
Minterm – 0 0 0 0 1
Minterm – 1 0 0 1 0
Minterm – 2 0 1 0 0
Minterm – 3 0 1 1 0
Minterm – 4 1 0 0 0
Minterm – 5 1 0 1 1
Minterm – 6 1 1 0 1
Minterm – 7 1 1 1 0
V
0 1
2 3
6 7
4 5
Y
XW
Y
1
Three Variable K-Map
XW
XW
XW
0
0 0
0 1
1 0
Only one
variable changes
for every row
change
14
Three Variable K-Map Groupings
V
0 0
0 0
0 0
0 0
C C
BA
BA
BA
BA
BA
1 1
BA
1 1
BA
1 1
BA
1 1
1
CA
1
1
CA
1
1
CA
1
1
CB
1
1
CB
1
1
CA
11
CB
1
1
CB
1
Groups of One – 8 (not shown)
Groups of Two – 12
15
Groups of Four – 6
Three Variable K-Map Groupings
V
0 0
0 0
0 0
0 0
C C
BA
BA
BA
BA
1
C
1
1
1
1
C
1
1
1
A
1 1
1 1
B
1 1
1 1
A
1 1
1 1
B
1 1
1 1
16
Group of Eight - 1
Three Variable K-Map Groupings
V
1 1
1 1
1 1
1 1
C C
BA
BA
BA
BA
1
17
Example #2: 3 Variable K-Map
Example:
After labeling and transferring the truth table data into the K-Map,
write the simplified sum-of-products (SOP) logic expression for the
logic function F2.
E F G F2
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
18
Example #2: 3 Variable K-Map
Example:
After labeling and transferring the truth table data into the K-Map,
write the simplified sum-of-products (SOP) logic expression for the
logic function F2.
V
0 1
1 0
1 0
0 1
G G
FE
FE
FE
FE
Solution:
GFGFF +=2
GF
GF
E F G F2
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
19
Four Variable K-Map Groupings
V
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
BA
BA
BA
BA
DC DC DC DC
Groups of One – 16 (not shown)
Groups of Two – 32 (not shown)
Groups of Four – 24 (seven shown)
CB
1 1
1 1
DB
1 1
1 1
DA
1
1
1
1
CB
1 1
1 1
DB
1
1
1
1
DA
1
1
1
1 DB11
11
20
Four Variable K-Map Groupings
V
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
BA
BA
BA
BA
DC DC DC DC
Groups of Eight – 8 (two shown)
B
1 1 1 1
1 1 1 1
D
1
1
1
1
1
1
1
1
21
Four Variable K-Map Groupings
V
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
BA
BA
BA
BA
DC DC DC DC
Group of Sixteen – 1
1
22
Example #3: 4 Variable K-Map
Example:
After labeling and transferring the truth table data into the K-Map, write the
simplified sum-of-products (SOP) logic expression for the logic function
F3.
R S T U F3
0 0 0 0 0
0 0 0 1 1
0 0 1 0 0
0 0 1 1 1
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 0
1 1 0 0 1
1 1 0 1 0
1 1 1 0 1
1 1 1 1 1
V
23
Don’t Care Conditions
• A don’t care condition, marked by (X) in the truth
table, indicates a condition where the design
doesn’t care if the output is a (0) or a (1).
• A don’t care condition can be treated as a (0) or
a (1) in a K-Map.
• Treating a don’t care as a (0) means that you do
not need to group it.
• Treating a don’t care as a (1) allows you to make
a grouping larger, resulting in a simpler term in
the SOP equation.
24
Some You Group, Some You Don’t
V
X 0
1 0
0 0
X 0
C C
BA
BA
BA
BA
CA
This don’t care condition was treated as a (1).
This allowed the grouping of a single one to
become a grouping of two, resulting in a simpler
term.
There was no advantage in treating this
don’t care condition as a (1), thus it was
treated as a (0) and not grouped.
25
Example #4: Don’t Care Conditions
Example:
After labeling and transferring the truth table data into the K-Map, write the
simplified sum-of-products (SOP) logic expression for the logic function
F4. Be sure to take advantage of the don’t care conditions.
R S T U F4
0 0 0 0 X
0 0 0 1 0
0 0 1 0 1
0 0 1 1 X
0 1 0 0 0
0 1 0 1 X
0 1 1 0 X
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 X
1 1 0 0 X
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
V
26
Grouping 1s
• Goal:
➢ Maximize the size of groups
➢ Minimize the number of groups
• Rules:
➢ A group must contain 2n cells
➢ Each cell in a group must be
adjacent to one or more cells in
that same group
➢ Always include the largest
possible number of 1’s in a group
➢ Each 1 must be included in at
least one group
1 1
1 1 1
1 1 1
1 1 1
00
01
11
10
00 01 11 10
4-variable K-map
AB
CD
Grouping 1s
• Goal:
➢ Maximize the size of groups
➢ Minimize the number of groups
• Rules:
➢ A group must contain 2n cells
➢ Each cell in a group must be
adjacent to one or more cells in
that same group
➢ Always include the largest
possible number of 1’s in a group
➢ Each 1 must be included in at
least one group
1 1
1 1 1
1 1 1
1 1 1
00
01
11
10
00 01 11 10
4-variable K-map
AB
CD
Example - K-map Simplification for SOP
1 0 0 1
1 1 0 1
1 1 0 1
1 0 1 1
00
01
11
10
00 01 11 10AB
CD
Only variable D
remains ‘0’ in this
group of orange cells
=> Product term = D
Variable A, B and C
remains as ‘1’, ‘0’ and ‘1’
respectively in this group
of cells
=> Product term = ABC
Product term = BC
CBACBDX ++=
CBADCDCBDCX ...... +++=
1
1
11
Mapping a Standard SOP Expression
• A ‘1’ is placed on the K-map for each product
term in the expression.
• Fill ‘0’ into the blanks.
CBACBACBACBAX ........ +++=
Example:
Map
00
01
11
10
0 1
3-variable K-map
AB
C
00
0
0
1
1
11
Example- K-map Simplification for SOP
CBACBACBACBAX ........ +++=
00
01
11
10
0 1
3-variable K-map
AB
C
00
0
0
Only A, B variables are unchanged
A’.B’
Only A, C variables are unchanged
A.C’
X = A’.B’ + A.C’
K-map Simplification for POS
Expressions
• After mapping an POS expression, perform
the following 3 steps:
➢ Group the 0’s
➢ Determining sum term for each group
✓ Each group creates one sum term that composed of all
variables that occur in only one form within the group
➢ Multiplying the resulting sum terms
✓ Multiply all sum terms together to form the Minimum POS
Expression
Grouping 0’s
• Goal:
➢ Maximize the size of groups
➢ Minimize the number of groups
• Rules:
➢ A group must contain 2n cells
➢ Each cell in a group must be
adjacent to one or more cells in
that same group
➢ Always include the largest
possible number of 0’s in a
group
➢ Each 0 must be included in at
least one group
0 0
0 0 0
0 0 0
0 0 0
00
01
11
10
00 01 11 10
4-variable K-map
AB
CD
0 0
0 0 0
0 0 0
0 0 0
00
01
11
10
00 01 11 10AB
CD
Only variable D
remains ‘0’ in this
group of orange cells
=> Sum term = D
Sum term = CB +
Variable A, B and C
remains as ‘1’, ‘0’ and ‘1’
respectively in this group
of cells
=> Sum term = CBA ++
)).(.( CBACBDX +++=
)).().().(( DCCBADCBDCX ++++++=
Example- K-map Simplification for POS
0
0
Mapping a Standard POS Expression
• A ‘0’ is placed on the K-map for each sum
term in the expression.
• Fill ‘1’ into the blanks.
))()()(( CBACBACBACBAX ++++++++=
Example:
Map
00
01
11
10
0 1AB
C
0
0
1
1
1
1
0
0
Example- K-map Simplification for POS
)).().().(( CBACBACBACBAX ++++++++=
00
01
11
10
0 1AB
C
0
0
1
1
1
1
Only A, C variables are unchanged
A+C
Only B, C variables are unchanged
B’+C
X = (A+C).(B’+C).(A’+B+C’)
Only A, B, C variables are unchanged
 A’+B+C’
Make a Choice
• Given no restrictions on the structure of the designed
circuit, choose the optimized SOP structure or optimized
POS structure based on the hardware cost
0 1 1 0
0 0 1 0
0 0 1 0
0 1 0 0
00
01
11
10
00 01 11 10AB
CD
BCDDBADCBY ++=
Minimum SOP Expression
Minimum POS Expression
)).(.( CBACBDX +++=
- Six 2-input AND
- Two 2-input OR
- Three NOT
- Two 2-input AND
- Three 2-input OR
- Three NOT
In this case, POS structure would be
chosen!!
Example:
SOP Example: Segment b
Minimal SOP expression:
b = I2’ + I1’.I0’+ I1.I0
In this case, the X’s (highlighted) are chosen to be logic 1’s amd 0’s to
obtain the most simplified SOP hardware structure!!
1 1 1 1
1 0 1 0
1 0 1 0
1 1 1 1
I3
I2
I1I0
00
01
11
10
00 01 11 10
I0I1
b
• K-map basics
• http://www.ee.surrey.ac.uk/Projects/Labview/
minimisation/karnaugh.html
• http://www.allaboutcircuits.com/vol_4/chpt_8
/5.html
• K-map SOP/POS demonstration
• http://www.youtube.com/watch?v=5UUOTHq
bXpE
• http://www.youtube.com/watch?v=d8OxGyaq
QPM

More Related Content

What's hot

Registers and counters
Registers and counters Registers and counters
Registers and counters Deepak John
 
DIGITAL ELECTRONICS- Number System
DIGITAL ELECTRONICS- Number SystemDIGITAL ELECTRONICS- Number System
DIGITAL ELECTRONICS- Number SystemTrinity Dwarka
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adderSanjuktaBanik
 
quine mc cluskey method
 quine mc cluskey method quine mc cluskey method
quine mc cluskey methodUnsa Shakir
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexersUnsa Shakir
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)ISMT College
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to CountersISMT College
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebraSARITHA REDDY
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoderAbid Ali
 
Kmap..(karnaugh map)
Kmap..(karnaugh map)Kmap..(karnaugh map)
Kmap..(karnaugh map)Zain Jafri
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparatorSyed Saeed
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh MapKawsar Ahmed
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsSARITHA REDDY
 

What's hot (20)

Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Registers and counters
Registers and counters Registers and counters
Registers and counters
 
DIGITAL ELECTRONICS- Number System
DIGITAL ELECTRONICS- Number SystemDIGITAL ELECTRONICS- Number System
DIGITAL ELECTRONICS- Number System
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adder
 
quine mc cluskey method
 quine mc cluskey method quine mc cluskey method
quine mc cluskey method
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
K map
K mapK map
K map
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Kmap..(karnaugh map)
Kmap..(karnaugh map)Kmap..(karnaugh map)
Kmap..(karnaugh map)
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh Map
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
K - Map
  K - Map    K - Map
K - Map
 
Karnaugh Graph or K-Map
Karnaugh Graph or K-MapKarnaugh Graph or K-Map
Karnaugh Graph or K-Map
 

Similar to Karnaugh map

Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Frankie Jones
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh mapsAJAL A J
 
IS 151 Lecture 7
IS 151 Lecture 7IS 151 Lecture 7
IS 151 Lecture 7wajanga
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slidesharetech4us
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slidesharetech4us
 
Kmaps By Ms Nita Arora
Kmaps By Ms Nita AroraKmaps By Ms Nita Arora
Kmaps By Ms Nita Arorakulachihansraj
 
Principles of Combinational Logic-1
Principles of Combinational Logic-1Principles of Combinational Logic-1
Principles of Combinational Logic-1Supanna Shirguppe
 
Chapter 3 .pptx
Chapter 3 .pptxChapter 3 .pptx
Chapter 3 .pptxMemMem25
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptsonusreekumar
 
Module 1 ppt class.pptx
Module 1 ppt class.pptxModule 1 ppt class.pptx
Module 1 ppt class.pptxVivekNaik55
 
Module ppt class.pptx
Module ppt class.pptxModule ppt class.pptx
Module ppt class.pptxVivekNaik71
 

Similar to Karnaugh map (20)

pos and do not care ppt.pptx
pos and do not care ppt.pptxpos and do not care ppt.pptx
pos and do not care ppt.pptx
 
Minimization Technique .ppt
 Minimization Technique .ppt Minimization Technique .ppt
Minimization Technique .ppt
 
3,EEng k-map.pdf
3,EEng k-map.pdf3,EEng k-map.pdf
3,EEng k-map.pdf
 
Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)
 
Karnaugh maps z 88
Karnaugh maps   z  88Karnaugh maps   z  88
Karnaugh maps z 88
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
IS 151 Lecture 7
IS 151 Lecture 7IS 151 Lecture 7
IS 151 Lecture 7
 
1سلمي 2
1سلمي 21سلمي 2
1سلمي 2
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
 
Kmaps By Ms Nita Arora
Kmaps By Ms Nita AroraKmaps By Ms Nita Arora
Kmaps By Ms Nita Arora
 
Principles of Combinational Logic-1
Principles of Combinational Logic-1Principles of Combinational Logic-1
Principles of Combinational Logic-1
 
Learning Kmap
Learning KmapLearning Kmap
Learning Kmap
 
Chapter 3 .pptx
Chapter 3 .pptxChapter 3 .pptx
Chapter 3 .pptx
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
elec2200-6.pdf
elec2200-6.pdfelec2200-6.pdf
elec2200-6.pdf
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
 
Module 1 ppt class.pptx
Module 1 ppt class.pptxModule 1 ppt class.pptx
Module 1 ppt class.pptx
 
Module ppt class.pptx
Module ppt class.pptxModule ppt class.pptx
Module ppt class.pptx
 

More from chandkec

Class 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animalsClass 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animalschandkec
 
Industries
IndustriesIndustries
Industrieschandkec
 
Theoritical concept of operating system
Theoritical concept of operating systemTheoritical concept of operating system
Theoritical concept of operating systemchandkec
 
Operators and Conditional statements in C
Operators and Conditional statements in COperators and Conditional statements in C
Operators and Conditional statements in Cchandkec
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation pptchandkec
 
Do we need a parliament ?
Do we need a parliament ?Do we need a parliament ?
Do we need a parliament ?chandkec
 
Ch 6. combustion and flame
Ch 6. combustion and flameCh 6. combustion and flame
Ch 6. combustion and flamechandkec
 
8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculturechandkec
 
8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soilschandkec
 
Introduction to Turbo C data types
Introduction to Turbo  C data typesIntroduction to Turbo  C data types
Introduction to Turbo C data typeschandkec
 
Computer science introduction to C programming
Computer science introduction to C programmingComputer science introduction to C programming
Computer science introduction to C programmingchandkec
 
8th computer science ch 1
8th computer science ch 18th computer science ch 1
8th computer science ch 1chandkec
 
8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soilchandkec
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squarerootschandkec
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squarerootschandkec
 
Ch 18. pollution
Ch 18. pollutionCh 18. pollution
Ch 18. pollutionchandkec
 
NCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resourcesNCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resourceschandkec
 
Microorganism : uses
Microorganism : usesMicroorganism : uses
Microorganism : useschandkec
 
Laws of exponents and Power
Laws of exponents and PowerLaws of exponents and Power
Laws of exponents and Powerchandkec
 
Exponents and powers--Part1
Exponents and powers--Part1Exponents and powers--Part1
Exponents and powers--Part1chandkec
 

More from chandkec (20)

Class 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animalsClass 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animals
 
Industries
IndustriesIndustries
Industries
 
Theoritical concept of operating system
Theoritical concept of operating systemTheoritical concept of operating system
Theoritical concept of operating system
 
Operators and Conditional statements in C
Operators and Conditional statements in COperators and Conditional statements in C
Operators and Conditional statements in C
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation ppt
 
Do we need a parliament ?
Do we need a parliament ?Do we need a parliament ?
Do we need a parliament ?
 
Ch 6. combustion and flame
Ch 6. combustion and flameCh 6. combustion and flame
Ch 6. combustion and flame
 
8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture
 
8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils
 
Introduction to Turbo C data types
Introduction to Turbo  C data typesIntroduction to Turbo  C data types
Introduction to Turbo C data types
 
Computer science introduction to C programming
Computer science introduction to C programmingComputer science introduction to C programming
Computer science introduction to C programming
 
8th computer science ch 1
8th computer science ch 18th computer science ch 1
8th computer science ch 1
 
8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squareroots
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squareroots
 
Ch 18. pollution
Ch 18. pollutionCh 18. pollution
Ch 18. pollution
 
NCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resourcesNCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resources
 
Microorganism : uses
Microorganism : usesMicroorganism : uses
Microorganism : uses
 
Laws of exponents and Power
Laws of exponents and PowerLaws of exponents and Power
Laws of exponents and Power
 
Exponents and powers--Part1
Exponents and powers--Part1Exponents and powers--Part1
Exponents and powers--Part1
 

Recently uploaded

Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRReal Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRdollysharma2066
 
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree z zzz
 
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberCall Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberMs Riya
 
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /WhatsappsBeautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsappssapnasaifi408
 
Hifi Babe North Delhi Call Girl Service Fun Tonight
Hifi Babe North Delhi Call Girl Service Fun TonightHifi Babe North Delhi Call Girl Service Fun Tonight
Hifi Babe North Delhi Call Girl Service Fun TonightKomal Khan
 
威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证kbdhl05e
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单留信学历认证原版一比一
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单留信学历认证原版一比一如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单留信学历认证原版一比一
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单留信学历认证原版一比一ga6c6bdl
 
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...srsj9000
 
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一C SSS
 
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证gwhohjj
 
Call Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile serviceCall Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile servicerehmti665
 
如何办理伦敦大学伯贝克学院毕业证(BBK毕业证) 成绩单留信学历认证原版一比一
如何办理伦敦大学伯贝克学院毕业证(BBK毕业证) 成绩单留信学历认证原版一比一如何办理伦敦大学伯贝克学院毕业证(BBK毕业证) 成绩单留信学历认证原版一比一
如何办理伦敦大学伯贝克学院毕业证(BBK毕业证) 成绩单留信学历认证原版一比一ga6c6bdl
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一ss ss
 
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一ss ss
 
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...ttt fff
 
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...nagunakhan
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》o8wvnojp
 

Recently uploaded (20)

Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRReal Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
 
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberCall Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
 
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /WhatsappsBeautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
 
Hifi Babe North Delhi Call Girl Service Fun Tonight
Hifi Babe North Delhi Call Girl Service Fun TonightHifi Babe North Delhi Call Girl Service Fun Tonight
Hifi Babe North Delhi Call Girl Service Fun Tonight
 
威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证
 
young call girls in Gtb Nagar,🔝 9953056974 🔝 escort Service
young call girls in Gtb Nagar,🔝 9953056974 🔝 escort Serviceyoung call girls in Gtb Nagar,🔝 9953056974 🔝 escort Service
young call girls in Gtb Nagar,🔝 9953056974 🔝 escort Service
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单留信学历认证原版一比一
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单留信学历认证原版一比一如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单留信学历认证原版一比一
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单留信学历认证原版一比一
 
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
 
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
 
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
 
Call Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile serviceCall Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile service
 
如何办理伦敦大学伯贝克学院毕业证(BBK毕业证) 成绩单留信学历认证原版一比一
如何办理伦敦大学伯贝克学院毕业证(BBK毕业证) 成绩单留信学历认证原版一比一如何办理伦敦大学伯贝克学院毕业证(BBK毕业证) 成绩单留信学历认证原版一比一
如何办理伦敦大学伯贝克学院毕业证(BBK毕业证) 成绩单留信学历认证原版一比一
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
 
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
定制(Salford学位证)索尔福德大学毕业证成绩单原版一比一
 
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
 
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
 
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
 

Karnaugh map

  • 2. 2 What is K-map? • A K-map is similar to a truth table ➢ All possible values of inputs + corresponding outputs • A K-map is different from a truth table ➢Not rows and columns, but an array of cells • Each cell within the K-map corresponds to a particular combination of the input variables ➢Cells are arranged such that there is only a single- variable change between adjacent cells, e.g. 010 cell is adjacent to 011 cell
  • 3. 3 K-map Simplification for SOP Expressions • The process that results in an expression containing the fewest possible terms with fewest possible variables is called minimization • After mapping an SOP expression, perform the following 3 steps: ➢ Group the 1’s ➢ Determining product term for each group ✓ Each group creates one product term that composed of all variables that occur in only one form within the group ➢ Summing the resulting product terms ✓ Sum all product terms together to form the Minimum SOP Expression
  • 4. Karnaugh Mapping or K-Mapping This presentation will demonstrate how to • Create and label two, three, & four variable K-Maps. • Use the K-Mapping technique to simplify logic designs with two, three, and four variables. • Use the K-Mapping technique to simplify logic design containing don’t care conditions. Boolean Algebra Simplification K-Mapping Simplification ≡ 4
  • 5. K-Map Format • Each minterm in a truth table corresponds to a cell in the K-Map. • K-Map cells are labeled such that both horizontal and vertical movement differ only by one variable. • Since the adjacent cells differ by only one variable, they can be grouped to create simpler terms in the sum-of- products expression. • The sum-of-products expression for the logic function can be obtained by OR-ing together the cells or group of cells that contain 1s. 5
  • 6. Adjacent Cells = Simplification VV 1 0 1 0 X W W X XW XW X W W X X V 1 0 1 0 ( ) XWWXXWXW =+=+ 6
  • 7. Truth Table to K-Map Mapping V W X FWX Minterm – 0 0 0 1 Minterm – 1 0 1 0 Minterm – 2 1 0 1 Minterm – 3 1 1 0 V 0 1 2 3 X W W X 1 0 1 0 Two Variable K-Map 7
  • 8. V 0 0 0 0 B A A Groups of One – 4 Two Variable K-Map Groupings BA 1 BA 1 1 A B BA 1 B 8
  • 9. V 0 0 0 0 B A A Groups of Two – 4 Two Variable K-Map Groupings B A 1 1 A 1 1 1 B 1 1 B 1 9
  • 10. V 1 1 1 1 B A A Group of Four – 1 Two Variable K-Map Groupings 1 B 10
  • 11. K-Map Simplification Process 1. Construct a label for the K-Map. Place 1s in cells corresponding to the 1s in the truth table. Place 0s in the other cells. 2. Identify and group all isolated 1’s. Isolated 1’s are ones that cannot be grouped with any other one, or can only be grouped with one other adjacent one. 3. Group any hex. 4. Group any octet, even if it contains some 1s already grouped but not enclosed in a hex. 5. Group any quad, even if it contains some 1s already grouped but not enclosed in a hex or octet. 6. Group any pair, even if it contains some 1s already grouped but not enclosed in a hex, octet, or quad. 7. OR together all terms to generate the SOP equation. 11
  • 12. Example #1: 2 Variable K-Map Example: After labeling and transferring the truth table data into the K-Map, write the simplified sum-of-products (SOP) logic expression for the logic function F1. V J K F1 0 0 1 0 1 1 1 0 0 1 1 0 12
  • 13. Example #1: 2 Variable K-Map Example: After labeling and transferring the truth table data into the K-Map, write the simplified sum-of-products (SOP) logic expression for the logic function F1. V 1 1 0 0 K J J K Solution: J JF =1 J K F1 0 0 1 0 1 1 1 0 0 1 1 0 13
  • 14. Truth Table to K-Map Mapping W X Y FWXY Minterm – 0 0 0 0 1 Minterm – 1 0 0 1 0 Minterm – 2 0 1 0 0 Minterm – 3 0 1 1 0 Minterm – 4 1 0 0 0 Minterm – 5 1 0 1 1 Minterm – 6 1 1 0 1 Minterm – 7 1 1 1 0 V 0 1 2 3 6 7 4 5 Y XW Y 1 Three Variable K-Map XW XW XW 0 0 0 0 1 1 0 Only one variable changes for every row change 14
  • 15. Three Variable K-Map Groupings V 0 0 0 0 0 0 0 0 C C BA BA BA BA BA 1 1 BA 1 1 BA 1 1 BA 1 1 1 CA 1 1 CA 1 1 CA 1 1 CB 1 1 CB 1 1 CA 11 CB 1 1 CB 1 Groups of One – 8 (not shown) Groups of Two – 12 15
  • 16. Groups of Four – 6 Three Variable K-Map Groupings V 0 0 0 0 0 0 0 0 C C BA BA BA BA 1 C 1 1 1 1 C 1 1 1 A 1 1 1 1 B 1 1 1 1 A 1 1 1 1 B 1 1 1 1 16
  • 17. Group of Eight - 1 Three Variable K-Map Groupings V 1 1 1 1 1 1 1 1 C C BA BA BA BA 1 17
  • 18. Example #2: 3 Variable K-Map Example: After labeling and transferring the truth table data into the K-Map, write the simplified sum-of-products (SOP) logic expression for the logic function F2. E F G F2 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 0 18
  • 19. Example #2: 3 Variable K-Map Example: After labeling and transferring the truth table data into the K-Map, write the simplified sum-of-products (SOP) logic expression for the logic function F2. V 0 1 1 0 1 0 0 1 G G FE FE FE FE Solution: GFGFF +=2 GF GF E F G F2 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 0 19
  • 20. Four Variable K-Map Groupings V 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BA BA BA BA DC DC DC DC Groups of One – 16 (not shown) Groups of Two – 32 (not shown) Groups of Four – 24 (seven shown) CB 1 1 1 1 DB 1 1 1 1 DA 1 1 1 1 CB 1 1 1 1 DB 1 1 1 1 DA 1 1 1 1 DB11 11 20
  • 21. Four Variable K-Map Groupings V 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BA BA BA BA DC DC DC DC Groups of Eight – 8 (two shown) B 1 1 1 1 1 1 1 1 D 1 1 1 1 1 1 1 1 21
  • 22. Four Variable K-Map Groupings V 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 BA BA BA BA DC DC DC DC Group of Sixteen – 1 1 22
  • 23. Example #3: 4 Variable K-Map Example: After labeling and transferring the truth table data into the K-Map, write the simplified sum-of-products (SOP) logic expression for the logic function F3. R S T U F3 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 0 0 0 0 1 0 0 1 1 1 0 1 0 0 1 0 1 1 0 1 1 0 0 1 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1 V 23
  • 24. Don’t Care Conditions • A don’t care condition, marked by (X) in the truth table, indicates a condition where the design doesn’t care if the output is a (0) or a (1). • A don’t care condition can be treated as a (0) or a (1) in a K-Map. • Treating a don’t care as a (0) means that you do not need to group it. • Treating a don’t care as a (1) allows you to make a grouping larger, resulting in a simpler term in the SOP equation. 24
  • 25. Some You Group, Some You Don’t V X 0 1 0 0 0 X 0 C C BA BA BA BA CA This don’t care condition was treated as a (1). This allowed the grouping of a single one to become a grouping of two, resulting in a simpler term. There was no advantage in treating this don’t care condition as a (1), thus it was treated as a (0) and not grouped. 25
  • 26. Example #4: Don’t Care Conditions Example: After labeling and transferring the truth table data into the K-Map, write the simplified sum-of-products (SOP) logic expression for the logic function F4. Be sure to take advantage of the don’t care conditions. R S T U F4 0 0 0 0 X 0 0 0 1 0 0 0 1 0 1 0 0 1 1 X 0 1 0 0 0 0 1 0 1 X 0 1 1 0 X 0 1 1 1 1 1 0 0 0 1 1 0 0 1 1 1 0 1 0 1 1 0 1 1 X 1 1 0 0 X 1 1 0 1 0 1 1 1 0 0 1 1 1 1 0 V 26
  • 27. Grouping 1s • Goal: ➢ Maximize the size of groups ➢ Minimize the number of groups • Rules: ➢ A group must contain 2n cells ➢ Each cell in a group must be adjacent to one or more cells in that same group ➢ Always include the largest possible number of 1’s in a group ➢ Each 1 must be included in at least one group 1 1 1 1 1 1 1 1 1 1 1 00 01 11 10 00 01 11 10 4-variable K-map AB CD
  • 28. Grouping 1s • Goal: ➢ Maximize the size of groups ➢ Minimize the number of groups • Rules: ➢ A group must contain 2n cells ➢ Each cell in a group must be adjacent to one or more cells in that same group ➢ Always include the largest possible number of 1’s in a group ➢ Each 1 must be included in at least one group 1 1 1 1 1 1 1 1 1 1 1 00 01 11 10 00 01 11 10 4-variable K-map AB CD
  • 29. Example - K-map Simplification for SOP 1 0 0 1 1 1 0 1 1 1 0 1 1 0 1 1 00 01 11 10 00 01 11 10AB CD Only variable D remains ‘0’ in this group of orange cells => Product term = D Variable A, B and C remains as ‘1’, ‘0’ and ‘1’ respectively in this group of cells => Product term = ABC Product term = BC CBACBDX ++= CBADCDCBDCX ...... +++=
  • 30. 1 1 11 Mapping a Standard SOP Expression • A ‘1’ is placed on the K-map for each product term in the expression. • Fill ‘0’ into the blanks. CBACBACBACBAX ........ +++= Example: Map 00 01 11 10 0 1 3-variable K-map AB C 00 0 0
  • 31. 1 1 11 Example- K-map Simplification for SOP CBACBACBACBAX ........ +++= 00 01 11 10 0 1 3-variable K-map AB C 00 0 0 Only A, B variables are unchanged A’.B’ Only A, C variables are unchanged A.C’ X = A’.B’ + A.C’
  • 32. K-map Simplification for POS Expressions • After mapping an POS expression, perform the following 3 steps: ➢ Group the 0’s ➢ Determining sum term for each group ✓ Each group creates one sum term that composed of all variables that occur in only one form within the group ➢ Multiplying the resulting sum terms ✓ Multiply all sum terms together to form the Minimum POS Expression
  • 33. Grouping 0’s • Goal: ➢ Maximize the size of groups ➢ Minimize the number of groups • Rules: ➢ A group must contain 2n cells ➢ Each cell in a group must be adjacent to one or more cells in that same group ➢ Always include the largest possible number of 0’s in a group ➢ Each 0 must be included in at least one group 0 0 0 0 0 0 0 0 0 0 0 00 01 11 10 00 01 11 10 4-variable K-map AB CD
  • 34. 0 0 0 0 0 0 0 0 0 0 0 00 01 11 10 00 01 11 10AB CD Only variable D remains ‘0’ in this group of orange cells => Sum term = D Sum term = CB + Variable A, B and C remains as ‘1’, ‘0’ and ‘1’ respectively in this group of cells => Sum term = CBA ++ )).(.( CBACBDX +++= )).().().(( DCCBADCBDCX ++++++= Example- K-map Simplification for POS
  • 35. 0 0 Mapping a Standard POS Expression • A ‘0’ is placed on the K-map for each sum term in the expression. • Fill ‘1’ into the blanks. ))()()(( CBACBACBACBAX ++++++++= Example: Map 00 01 11 10 0 1AB C 0 0 1 1 1 1
  • 36. 0 0 Example- K-map Simplification for POS )).().().(( CBACBACBACBAX ++++++++= 00 01 11 10 0 1AB C 0 0 1 1 1 1 Only A, C variables are unchanged A+C Only B, C variables are unchanged B’+C X = (A+C).(B’+C).(A’+B+C’) Only A, B, C variables are unchanged  A’+B+C’
  • 37. Make a Choice • Given no restrictions on the structure of the designed circuit, choose the optimized SOP structure or optimized POS structure based on the hardware cost 0 1 1 0 0 0 1 0 0 0 1 0 0 1 0 0 00 01 11 10 00 01 11 10AB CD BCDDBADCBY ++= Minimum SOP Expression Minimum POS Expression )).(.( CBACBDX +++= - Six 2-input AND - Two 2-input OR - Three NOT - Two 2-input AND - Three 2-input OR - Three NOT In this case, POS structure would be chosen!! Example:
  • 38. SOP Example: Segment b Minimal SOP expression: b = I2’ + I1’.I0’+ I1.I0 In this case, the X’s (highlighted) are chosen to be logic 1’s amd 0’s to obtain the most simplified SOP hardware structure!! 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 I3 I2 I1I0 00 01 11 10 00 01 11 10 I0I1 b
  • 39.
  • 40.
  • 41.
  • 42. • K-map basics • http://www.ee.surrey.ac.uk/Projects/Labview/ minimisation/karnaugh.html • http://www.allaboutcircuits.com/vol_4/chpt_8 /5.html • K-map SOP/POS demonstration • http://www.youtube.com/watch?v=5UUOTHq bXpE • http://www.youtube.com/watch?v=d8OxGyaq QPM