SlideShare une entreprise Scribd logo
1  sur  54
K-maps
BY UNSA SHAKIR
Example
• Minimize the following Boolean function using sum of
products (SOP):
• f(a,b,c,d) = m(3,7,11,12,13,14,15)
abcd
3 0011 a`b`cd
7 0111 a`bcd
11 1011 ab`cd
12 1100 abc`d`
13 1101 abc`d
14 1110 abcd`
15 1111 abcd
Example
f(a,b,c,d) = m(3,7,11,12,13,14,15)
=a`b`cd + a`bcd + ab`cd + abc`d`+ abc`d + abcd` + abcd
=cd(a`b` + a`b + ab`) + ab(c`d` + c`d + cd` + cd )
=cd(a`[b` + b] + ab`) + ab(c`[d` + d] + c[d` + d])
=cd(a`[1] + ab`) + ab(c`[1] + c[1])
=ab+ab`cd + a`cd
=ab+cd(ab` + a`)
=ab+ cd(a + a`)(a`+b`)
= ab + a`cd + b`cd
= ab +cd(a` + b`)
Example
Maximize the following Boolean
function using product of sum
(POS):
f(a,b,c,d)=M(0,1,2,4,5,6,8,9,10)
=m(3,7,11,12,13,14,15)
=[(a+b+c+d)(a+b+c+d`)(a+b`+c`+d`)
(a`+b+c`+d`)(a`+b`+c+d)(a`+b`+c+d`)
(a`+b`+c`+d)(a`+b`+c`+d`)]
Karnaugh Maps(K-maps)
• Karnaugh maps -- A tool for representing Boolean
functions of up to six variables.
• K-maps are tables of rows and columns with entries
represent 1`s or 0`s of SOP and POS representations
respectively.
Karnaugh Maps(K-maps)
• An n-variable K-map has 2n cells with each cell
corresponding to an n-variable truth table
value.
• K-map cells are labeled with the corresponding
truth-table row.
• K-map cells are arranged such that adjacent
cells correspond to truth rows that differ in
only one bit position (logical adjacency).
Karnaugh Maps(K-maps)
• If mi is a minterm of f, then place a 1 in cell i of the
K-map.
• If Mi is a maxterm of f, then place a 0 in cell i.
• If di is a don’t care of f, then place a d or x in cell i.
Examples
• Two variable K-map f(A,B)=m(0,1,3)=A`B`+A`B+AB
1 0
1 1
A 0 1
B01
Three variablemap
• f(A,B,C) = m(0,3,5)= A`B`C`+A`BC+AB`C
A`B`
0 0
A`B
0 1
A B
1 1
A B`
1 0
1
A`B`C’ ` `
1
A`BC
1
AB`CC 1
C’ 0
Maxtermexample
0 0 0
0 0
A`B` A`B AB AB`
C`
C
(A+B) (A+B`) (A`+B`) (A`+B)
C
C`
f(A,B,C) = M(1,2,4,6,7)
=(A+B+C`)(A+B`+C)(A`+B+C) )(A`+B`+C) (A`+B`+C`)
Fourvariableexample
(a) Minterm form.(b) Maxtermform.
f(a,b,Q,G) = m(0,3,5,7,10,11,12,13,14,15) = M(1,2,4,6,8,9)
SimplificationofBooleanFunctions UsingK-maps
• K-map cells that are physically adjacent are also logically
adjacent. Also, cells on an edge of a K-map are logically
adjacent to cells on the opposite edge of the map.
• If two logically adjacent cells both contain logical 1s, the two
cells can be combined to eliminate the variable that has value
1 in one cell’s label and value 0 in the other.
• Use the rules of simplification and ‘ringing of adjacent cells’ in order
to make as many variables redundant.
Karnaugh Mapping - Another Worked
Z f A,B,C A.B B.C B.C A.B.C
Example
Simplifyf=A`BC`+ABC`+ABCusing;
(a) Sum of minterms. (b)Maxterms.
• Each cell of an n-variable K-map has n logically adjacent
cells.
C
AB
10
0 2 6 4
1 3 7 5
1
B
0
0C
C
AB
00 11 10 00 01 11
0 2 6 4
1 3 7 5
0
1C
A A
B
AB
BC
01
1 1
1 0
0 0
0
a-
b-
f(A,B,C) = AB + BC
f(A,B,C) = B(A + C)
ExampleSimplify
CD
AB
00 01 11
00
01
11
10
D
C
AB
10 CD 00 01 11 10
00
01
11
10
D
A A
C
B
(a)
B
(b)
CD
AB
00 01 11 10
00
01
11
10
D
A
C
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
00
01
11
10
D
A
C
B
(c)
B
(d)
1 1
1 1 1
1
1 1
1
0 4
1
12 8
1
1 5
1
13
1
9
3
1
7
1
15
1
11
2
1
6 14 10
1
0 4
1
12 8
1
1 5
1
13
1
9
3
1
7
1
15
1
11
2
1
6 14 10
1
0 4
1
12 8
1
1 5
1
13
1
9
3
1
7
1
15
1
11
2
1
6 14 10
1
f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15)
ExampleRedundantselections
f(A,B,C,D) =m(0,5,7,8,10,12,14,15)
1 1
1
CD
AB
00 01 11 10
00
01
11
10
D
A
C
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
01
11
10
D
A
C
B
(a)
B
(b)
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
00
01
11
10
D
A
C
CD
AB
00 01 11 10
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
00
01
11
10
D
A
C
B
(c)
B
(d)
1
1 1
1
1
0
1
4 12
1
8
1
1 5
1
13 9
3 7
1
15
1
11
2 6 14
1
10
1
1
1 1
1
00 1 11
1
1
1 1
1
1 11
1
Example
Example
Example
Example
Condition A
Condition B
Condition C
The output of the circuit can be expressed as
f = AB + AC + BC
The output of the circuit can be expressed as
f = AB + AC + BC
The output of the circuit can be expressed as
f = AB + AC + BC
Finally, we get
•Minterms that may produce either 0 or 1 for the function.
• They are marked with an ´ in the K-map.
•This happens, for example, when we don’t input certain
minterms to the Boolean function.
• These don’t-care conditions can be used to provide further
simplification of the algebraic expression.
(Example) F = A`B`C`+A`BC` +ABC`
d=A`B`C +A`BC +AB`C
F = A` + BC`
Don’t-care condition
Example
Design the minimum-cost SOP and POS expression for the
function
f(x1, x2, x3, x4) = Σ m(4, 6, 8, 10, 11, 12, 15) + D(3, 5, 7, 9)
Let’s Use a K-Map
f(x1, x2, x3, x4) = Σ m(4, 6, 8, 10, 11, 12, 15) + D(3, 5, 7, 9)
x1
x2
x3
x4 00 01 11 10
00
01
11
10
x2
x4
x1
x3
m0
m1 m5
m4 m12
m13
m8
m9
m3
m2 m6
m7 m15
m14
m11
m10
f(x1, x2, x3, x4) = Σ m(4, 6, 8, 10, 11, 12, 15) + D(3, 5, 7, 9)
x1
x2
x3
x4 00 01 11 10
00
01
11
10
x2
x4
x1
x3
m0
m1 m5
m4 m12
m13
m8
m9
m3
m2 m6
m7 m15
m14
m11
m10
0
0
1
d
d
0
d
1
1
0
1
d
1
0
1
1
The SOP Expression
What about the POS Expression?
f(x1, x2, x3, x4) = Σ m(4, 6, 8, 10, 11, 12, 15) + D(3, 5, 7, 9)
x1
x2
x3
x4 00 01 11 10
00
01
11
10
x2
x4
x1
x3
m0
m1 m5
m4 m12
m13
m8
m9
m3
m2 m6
m7 m15
m14
m11
m10
0
0
1
d
d
0
d
1
1
0
1
d
1
0
1
1
The POS Expression
Example
Use K-maps to find the minimum-cost SOP and POS expression
for the function
Let’s map the expression to the K-Map
x1
x2
x3
x4 00 01 11 10
00
01
11
10
x2
x4
x1
x3
m0
m1 m5
m4 m12
m13
m8
m9
m3
m2 m6
m7 m15
m14
m11
m10
x1
x2
x3
x4 00 01 11 10
00
01
11
10
x2
x4
x1
x3
m0
m1 m5
m4 m12
m13
m8
m9
m3
m2 m6
m7 m15
m14
m11
m10
d
d
d
x1
x2
x3
x4 00 01 11 10
00
01
11
10
x2
x4
x1
x3
m0
m1 m5
m4 m12
m13
m8
m9
m3
m2 m6
m7 m15
m14
m11
m10
d
d
d
The SOP Expression
What about the POS Expression?
x1
x2
x3
x4 00 01 11 10
00
01
11
10
x2
x4
x1
x3
m0
m1 m5
m4 m12
m13
m8
m9
m3
m2 m6
m7 m15
m14
m11
m10
1
1
1
0
1
0
1
0
d
1
0
d
1
d
1
0
The POS Expression
Example
Derive the minimum-cost SOP expression for
First, expand the expression
Construct the K-Map for this expression
x1
x2
x3 00 01 11 10
0
1
(b) Karnaughmap
x2
x3
0 0
0 1
1 0
1 1
m0
m1
m3
m2
0
0
0
0
0 0
0 1
1 0
1 1
1
1
1
1
m4
m5
m7
m6
x1
(a) Truthtable
m0
m1 m3
m2 m6
m7
m4
m5
s1 s2 s3
s1 s2
s3
More Examples
f1(x, y, z) = ∑ m(2,3,5,7)
f2(x, y, z) = ∑ m (0,1,2,3,6)
 f1(x, y, z) = x’y + xz
f2(x, y, z) = x’+yz’
yz
X 00 01 11 10
0 1 1
1 1 1
1 1 1 1
1
x
yz
Example
Simplify the following Boolean function (A,B,C,D) =
∑m(0,1,2,4,5,7,8,9,10,12,13).
cd
ab
111
11
111
111
g(A,B,C,D) = c’+b’d’+a’bd
111
11
111
111
Example
Simplify the function f(a,b,c,d)
whose K-map is shown at the right.
f = a’c’d+ab’+cd’+a’bc’
or
f = a’c’d+ab’+cd’+a’bd’
xx11
xx00
1011
1010
xx11
xx00
1011
1010
0 1 0 1
1 1 0 1
0 0 x x
1 1 x x
ab
cd
00
01
11
10
00 01 11 10
Another Example
Simplify the function g(a,b,c,d) whose
K-map is shown at right.
g = a’c’+ ab
or
g = a’c’+b’d
x 1 0 0
1 x 0 x
1 x x 1
0 x x 0
x 1 0 0
1 x 0 x
1 x x 1
0 x x 0
x 1 0 0
1 x 0 x
1 x x 1
0 x x 0
ab
cd

Contenu connexe

Tendances

Fundamentals of digital electronics
 Fundamentals of digital electronics Fundamentals of digital electronics
Fundamentals of digital electronicssandeep patil
 
Fixed-point arithmetic
Fixed-point arithmeticFixed-point arithmetic
Fixed-point arithmeticDavid Bařina
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.Omkar Rane
 
rf ic design previous question papers
rf ic design previous question papersrf ic design previous question papers
rf ic design previous question papersbalajirao mahendrakar
 
Sequential circuit design
Sequential circuit designSequential circuit design
Sequential circuit designSatya P. Joshi
 
Quine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) methodQuine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) methodSyed Saeed
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.Satya P. Joshi
 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.pptRavikumarR77
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction setVijay Kumar
 
state diagrams of flip flops
 state diagrams of flip flops state diagrams of flip flops
state diagrams of flip flopsUnsa Shakir
 
Decimation in time and frequency
Decimation in time and frequencyDecimation in time and frequency
Decimation in time and frequencySARITHA REDDY
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes Srikrishna Thota
 

Tendances (20)

Fundamentals of digital electronics
 Fundamentals of digital electronics Fundamentals of digital electronics
Fundamentals of digital electronics
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
Fixed-point arithmetic
Fixed-point arithmeticFixed-point arithmetic
Fixed-point arithmetic
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.
 
rf ic design previous question papers
rf ic design previous question papersrf ic design previous question papers
rf ic design previous question papers
 
Sequential circuit design
Sequential circuit designSequential circuit design
Sequential circuit design
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
Quine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) methodQuine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) method
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.
 
Theorems in DE
Theorems in DETheorems in DE
Theorems in DE
 
Basics of digital electronics
Basics of digital electronicsBasics of digital electronics
Basics of digital electronics
 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
BCD Counter
BCD CounterBCD Counter
BCD Counter
 
state diagrams of flip flops
 state diagrams of flip flops state diagrams of flip flops
state diagrams of flip flops
 
Binary Number System and Codes
Binary Number System and CodesBinary Number System and Codes
Binary Number System and Codes
 
Decimation in time and frequency
Decimation in time and frequencyDecimation in time and frequency
Decimation in time and frequency
 
Data communication lecture 01
Data communication lecture 01Data communication lecture 01
Data communication lecture 01
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 

Similaire à kmaps (20)

KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
K map
K mapK map
K map
 
Chapter-3.ppt
Chapter-3.pptChapter-3.ppt
Chapter-3.ppt
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their function
 
LAC2013 UNIT preTESTs!
LAC2013 UNIT preTESTs!LAC2013 UNIT preTESTs!
LAC2013 UNIT preTESTs!
 
Ai4 heuristic2
Ai4 heuristic2Ai4 heuristic2
Ai4 heuristic2
 
04 comb ex
04 comb ex04 comb ex
04 comb ex
 
3,EEng k-map.pdf
3,EEng k-map.pdf3,EEng k-map.pdf
3,EEng k-map.pdf
 
Sop and pos
Sop and posSop and pos
Sop and pos
 
Digital Notes
Digital NotesDigital Notes
Digital Notes
 
Minimizing boolean
Minimizing booleanMinimizing boolean
Minimizing boolean
 
Minimizing boolean
Minimizing booleanMinimizing boolean
Minimizing boolean
 
9402730.ppt
9402730.ppt9402730.ppt
9402730.ppt
 
elec2200-6.pdf
elec2200-6.pdfelec2200-6.pdf
elec2200-6.pdf
 
digital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesdigital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gates
 
ECE 2103_L6 Boolean Algebra Canonical Forms.pptx
ECE 2103_L6 Boolean Algebra Canonical Forms.pptxECE 2103_L6 Boolean Algebra Canonical Forms.pptx
ECE 2103_L6 Boolean Algebra Canonical Forms.pptx
 

Plus de Unsa Shakir

Single diode circuits
Single diode circuitsSingle diode circuits
Single diode circuitsUnsa Shakir
 
Silicon control rectifier
Silicon control rectifierSilicon control rectifier
Silicon control rectifierUnsa Shakir
 
Operational amplifier
Operational amplifierOperational amplifier
Operational amplifierUnsa Shakir
 
Diode voltage multiplier
Diode voltage multiplierDiode voltage multiplier
Diode voltage multiplierUnsa Shakir
 
Types of transistors
Types of transistorsTypes of transistors
Types of transistorsUnsa Shakir
 
Clipper and clamper circuits
Clipper and clamper circuitsClipper and clamper circuits
Clipper and clamper circuitsUnsa Shakir
 
kinds of distribution
 kinds of distribution kinds of distribution
kinds of distributionUnsa Shakir
 
Probability of card
Probability of  cardProbability of  card
Probability of cardUnsa Shakir
 
hypothesis test
 hypothesis test hypothesis test
hypothesis testUnsa Shakir
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regressionUnsa Shakir
 
counting techniques
counting techniquescounting techniques
counting techniquesUnsa Shakir
 
analytical representation of data
 analytical representation of data analytical representation of data
analytical representation of dataUnsa Shakir
 
frequency distribution
 frequency distribution frequency distribution
frequency distributionUnsa Shakir
 
graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statisticsUnsa Shakir
 
introduction to statistical theory
introduction to statistical theoryintroduction to statistical theory
introduction to statistical theoryUnsa Shakir
 

Plus de Unsa Shakir (20)

Types of diode
Types of diodeTypes of diode
Types of diode
 
Transistor
TransistorTransistor
Transistor
 
Single diode circuits
Single diode circuitsSingle diode circuits
Single diode circuits
 
Silicon control rectifier
Silicon control rectifierSilicon control rectifier
Silicon control rectifier
 
Rectifiers
RectifiersRectifiers
Rectifiers
 
Operational amplifier
Operational amplifierOperational amplifier
Operational amplifier
 
Diode voltage multiplier
Diode voltage multiplierDiode voltage multiplier
Diode voltage multiplier
 
Types of transistors
Types of transistorsTypes of transistors
Types of transistors
 
Clipper and clamper circuits
Clipper and clamper circuitsClipper and clamper circuits
Clipper and clamper circuits
 
kinds of distribution
 kinds of distribution kinds of distribution
kinds of distribution
 
Probability of card
Probability of  cardProbability of  card
Probability of card
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
probability
probabilityprobability
probability
 
tree diagrams
 tree diagrams tree diagrams
tree diagrams
 
counting techniques
counting techniquescounting techniques
counting techniques
 
analytical representation of data
 analytical representation of data analytical representation of data
analytical representation of data
 
frequency distribution
 frequency distribution frequency distribution
frequency distribution
 
graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statistics
 
introduction to statistical theory
introduction to statistical theoryintroduction to statistical theory
introduction to statistical theory
 

Dernier

Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 

Dernier (20)

Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 

kmaps

  • 2. Example • Minimize the following Boolean function using sum of products (SOP): • f(a,b,c,d) = m(3,7,11,12,13,14,15) abcd 3 0011 a`b`cd 7 0111 a`bcd 11 1011 ab`cd 12 1100 abc`d` 13 1101 abc`d 14 1110 abcd` 15 1111 abcd
  • 3. Example f(a,b,c,d) = m(3,7,11,12,13,14,15) =a`b`cd + a`bcd + ab`cd + abc`d`+ abc`d + abcd` + abcd =cd(a`b` + a`b + ab`) + ab(c`d` + c`d + cd` + cd ) =cd(a`[b` + b] + ab`) + ab(c`[d` + d] + c[d` + d]) =cd(a`[1] + ab`) + ab(c`[1] + c[1]) =ab+ab`cd + a`cd =ab+cd(ab` + a`) =ab+ cd(a + a`)(a`+b`) = ab + a`cd + b`cd = ab +cd(a` + b`)
  • 4. Example Maximize the following Boolean function using product of sum (POS): f(a,b,c,d)=M(0,1,2,4,5,6,8,9,10) =m(3,7,11,12,13,14,15) =[(a+b+c+d)(a+b+c+d`)(a+b`+c`+d`) (a`+b+c`+d`)(a`+b`+c+d)(a`+b`+c+d`) (a`+b`+c`+d)(a`+b`+c`+d`)]
  • 5. Karnaugh Maps(K-maps) • Karnaugh maps -- A tool for representing Boolean functions of up to six variables. • K-maps are tables of rows and columns with entries represent 1`s or 0`s of SOP and POS representations respectively.
  • 6. Karnaugh Maps(K-maps) • An n-variable K-map has 2n cells with each cell corresponding to an n-variable truth table value. • K-map cells are labeled with the corresponding truth-table row. • K-map cells are arranged such that adjacent cells correspond to truth rows that differ in only one bit position (logical adjacency).
  • 7. Karnaugh Maps(K-maps) • If mi is a minterm of f, then place a 1 in cell i of the K-map. • If Mi is a maxterm of f, then place a 0 in cell i. • If di is a don’t care of f, then place a d or x in cell i.
  • 8. Examples • Two variable K-map f(A,B)=m(0,1,3)=A`B`+A`B+AB 1 0 1 1 A 0 1 B01
  • 9. Three variablemap • f(A,B,C) = m(0,3,5)= A`B`C`+A`BC+AB`C A`B` 0 0 A`B 0 1 A B 1 1 A B` 1 0 1 A`B`C’ ` ` 1 A`BC 1 AB`CC 1 C’ 0
  • 10. Maxtermexample 0 0 0 0 0 A`B` A`B AB AB` C` C (A+B) (A+B`) (A`+B`) (A`+B) C C` f(A,B,C) = M(1,2,4,6,7) =(A+B+C`)(A+B`+C)(A`+B+C) )(A`+B`+C) (A`+B`+C`)
  • 11. Fourvariableexample (a) Minterm form.(b) Maxtermform. f(a,b,Q,G) = m(0,3,5,7,10,11,12,13,14,15) = M(1,2,4,6,8,9)
  • 12.
  • 13. SimplificationofBooleanFunctions UsingK-maps • K-map cells that are physically adjacent are also logically adjacent. Also, cells on an edge of a K-map are logically adjacent to cells on the opposite edge of the map. • If two logically adjacent cells both contain logical 1s, the two cells can be combined to eliminate the variable that has value 1 in one cell’s label and value 0 in the other.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. • Use the rules of simplification and ‘ringing of adjacent cells’ in order to make as many variables redundant.
  • 19.
  • 20. Karnaugh Mapping - Another Worked Z f A,B,C A.B B.C B.C A.B.C
  • 21. Example Simplifyf=A`BC`+ABC`+ABCusing; (a) Sum of minterms. (b)Maxterms. • Each cell of an n-variable K-map has n logically adjacent cells. C AB 10 0 2 6 4 1 3 7 5 1 B 0 0C C AB 00 11 10 00 01 11 0 2 6 4 1 3 7 5 0 1C A A B AB BC 01 1 1 1 0 0 0 0 a- b- f(A,B,C) = AB + BC f(A,B,C) = B(A + C)
  • 22. ExampleSimplify CD AB 00 01 11 00 01 11 10 D C AB 10 CD 00 01 11 10 00 01 11 10 D A A C B (a) B (b) CD AB 00 01 11 10 00 01 11 10 D A C CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 00 01 11 10 D A C B (c) B (d) 1 1 1 1 1 1 1 1 1 0 4 1 12 8 1 1 5 1 13 1 9 3 1 7 1 15 1 11 2 1 6 14 10 1 0 4 1 12 8 1 1 5 1 13 1 9 3 1 7 1 15 1 11 2 1 6 14 10 1 0 4 1 12 8 1 1 5 1 13 1 9 3 1 7 1 15 1 11 2 1 6 14 10 1 f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15)
  • 23. ExampleRedundantselections f(A,B,C,D) =m(0,5,7,8,10,12,14,15) 1 1 1 CD AB 00 01 11 10 00 01 11 10 D A C CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 01 11 10 D A C B (a) B (b) CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 00 01 11 10 D A C CD AB 00 01 11 10 0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 00 01 11 10 D A C B (c) B (d) 1 1 1 1 1 0 1 4 12 1 8 1 1 5 1 13 9 3 7 1 15 1 11 2 6 14 1 10 1 1 1 1 1 00 1 11 1 1 1 1 1 1 11 1
  • 29. The output of the circuit can be expressed as f = AB + AC + BC
  • 30. The output of the circuit can be expressed as f = AB + AC + BC
  • 31. The output of the circuit can be expressed as f = AB + AC + BC
  • 33. •Minterms that may produce either 0 or 1 for the function. • They are marked with an ´ in the K-map. •This happens, for example, when we don’t input certain minterms to the Boolean function. • These don’t-care conditions can be used to provide further simplification of the algebraic expression. (Example) F = A`B`C`+A`BC` +ABC` d=A`B`C +A`BC +AB`C F = A` + BC` Don’t-care condition
  • 34. Example Design the minimum-cost SOP and POS expression for the function f(x1, x2, x3, x4) = Σ m(4, 6, 8, 10, 11, 12, 15) + D(3, 5, 7, 9)
  • 35. Let’s Use a K-Map f(x1, x2, x3, x4) = Σ m(4, 6, 8, 10, 11, 12, 15) + D(3, 5, 7, 9) x1 x2 x3 x4 00 01 11 10 00 01 11 10 x2 x4 x1 x3 m0 m1 m5 m4 m12 m13 m8 m9 m3 m2 m6 m7 m15 m14 m11 m10
  • 36. f(x1, x2, x3, x4) = Σ m(4, 6, 8, 10, 11, 12, 15) + D(3, 5, 7, 9) x1 x2 x3 x4 00 01 11 10 00 01 11 10 x2 x4 x1 x3 m0 m1 m5 m4 m12 m13 m8 m9 m3 m2 m6 m7 m15 m14 m11 m10 0 0 1 d d 0 d 1 1 0 1 d 1 0 1 1
  • 38. What about the POS Expression? f(x1, x2, x3, x4) = Σ m(4, 6, 8, 10, 11, 12, 15) + D(3, 5, 7, 9) x1 x2 x3 x4 00 01 11 10 00 01 11 10 x2 x4 x1 x3 m0 m1 m5 m4 m12 m13 m8 m9 m3 m2 m6 m7 m15 m14 m11 m10 0 0 1 d d 0 d 1 1 0 1 d 1 0 1 1
  • 40. Example Use K-maps to find the minimum-cost SOP and POS expression for the function
  • 41. Let’s map the expression to the K-Map x1 x2 x3 x4 00 01 11 10 00 01 11 10 x2 x4 x1 x3 m0 m1 m5 m4 m12 m13 m8 m9 m3 m2 m6 m7 m15 m14 m11 m10
  • 42. x1 x2 x3 x4 00 01 11 10 00 01 11 10 x2 x4 x1 x3 m0 m1 m5 m4 m12 m13 m8 m9 m3 m2 m6 m7 m15 m14 m11 m10 d d d
  • 43. x1 x2 x3 x4 00 01 11 10 00 01 11 10 x2 x4 x1 x3 m0 m1 m5 m4 m12 m13 m8 m9 m3 m2 m6 m7 m15 m14 m11 m10 d d d
  • 45. What about the POS Expression? x1 x2 x3 x4 00 01 11 10 00 01 11 10 x2 x4 x1 x3 m0 m1 m5 m4 m12 m13 m8 m9 m3 m2 m6 m7 m15 m14 m11 m10 1 1 1 0 1 0 1 0 d 1 0 d 1 d 1 0
  • 47. Example Derive the minimum-cost SOP expression for
  • 48. First, expand the expression
  • 49. Construct the K-Map for this expression x1 x2 x3 00 01 11 10 0 1 (b) Karnaughmap x2 x3 0 0 0 1 1 0 1 1 m0 m1 m3 m2 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 m4 m5 m7 m6 x1 (a) Truthtable m0 m1 m3 m2 m6 m7 m4 m5 s1 s2 s3 s1 s2 s3
  • 50.
  • 51. More Examples f1(x, y, z) = ∑ m(2,3,5,7) f2(x, y, z) = ∑ m (0,1,2,3,6)  f1(x, y, z) = x’y + xz f2(x, y, z) = x’+yz’ yz X 00 01 11 10 0 1 1 1 1 1 1 1 1 1 1 x yz
  • 52. Example Simplify the following Boolean function (A,B,C,D) = ∑m(0,1,2,4,5,7,8,9,10,12,13). cd ab 111 11 111 111 g(A,B,C,D) = c’+b’d’+a’bd 111 11 111 111
  • 53. Example Simplify the function f(a,b,c,d) whose K-map is shown at the right. f = a’c’d+ab’+cd’+a’bc’ or f = a’c’d+ab’+cd’+a’bd’ xx11 xx00 1011 1010 xx11 xx00 1011 1010 0 1 0 1 1 1 0 1 0 0 x x 1 1 x x ab cd 00 01 11 10 00 01 11 10
  • 54. Another Example Simplify the function g(a,b,c,d) whose K-map is shown at right. g = a’c’+ ab or g = a’c’+b’d x 1 0 0 1 x 0 x 1 x x 1 0 x x 0 x 1 0 0 1 x 0 x 1 x x 1 0 x x 0 x 1 0 0 1 x 0 x 1 x x 1 0 x x 0 ab cd

Notes de l'éditeur

  1. 2019/10/16
  2. 2019/10/16
  3. 2019/10/16
  4. 2019/10/16