SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Matrix multiplication, inverse
Matrix multiplication, inverseMatrix multiplication, inverse
Matrix multiplication, inverse
Prasanth George
 
(Neamen)solution manual for semiconductor physics and devices 3ed
(Neamen)solution manual for semiconductor physics and devices 3ed(Neamen)solution manual for semiconductor physics and devices 3ed
(Neamen)solution manual for semiconductor physics and devices 3ed
Kadu Brito
 
Xilinx Cool Runner Architecture
Xilinx Cool Runner ArchitectureXilinx Cool Runner Architecture
Xilinx Cool Runner Architecture
dragonpradeep
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
tech4us
 

Was ist angesagt? (20)

Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh Map
 
SRAM
SRAMSRAM
SRAM
 
Matrix multiplication, inverse
Matrix multiplication, inverseMatrix multiplication, inverse
Matrix multiplication, inverse
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
(Neamen)solution manual for semiconductor physics and devices 3ed
(Neamen)solution manual for semiconductor physics and devices 3ed(Neamen)solution manual for semiconductor physics and devices 3ed
(Neamen)solution manual for semiconductor physics and devices 3ed
 
Xilinx Cool Runner Architecture
Xilinx Cool Runner ArchitectureXilinx Cool Runner Architecture
Xilinx Cool Runner Architecture
 
Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)
 
L20 Simplex Method
L20 Simplex MethodL20 Simplex Method
L20 Simplex Method
 
Design of two stage OPAMP
Design of two stage OPAMPDesign of two stage OPAMP
Design of two stage OPAMP
 
K map
K mapK map
K map
 
Graphic Notes on Introduction to Linear Algebra
Graphic Notes on Introduction to Linear AlgebraGraphic Notes on Introduction to Linear Algebra
Graphic Notes on Introduction to Linear Algebra
 
variable entered map digital electronics
variable entered map digital electronicsvariable entered map digital electronics
variable entered map digital electronics
 
Carry look ahead adder
Carry look ahead adderCarry look ahead adder
Carry look ahead adder
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
 
Vhdl lab manual
Vhdl lab manualVhdl lab manual
Vhdl lab manual
 
Lec 04 - Gate-level Minimization
Lec 04 - Gate-level MinimizationLec 04 - Gate-level Minimization
Lec 04 - Gate-level Minimization
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
Big M method
Big M methodBig M method
Big M method
 
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
 

Ähnlich wie kmaps

LAC2013 UNIT preTESTs!
LAC2013 UNIT preTESTs!LAC2013 UNIT preTESTs!
LAC2013 UNIT preTESTs!
A Jorge Garcia
 

Ähnlich wie kmaps (20)

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
 
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
 
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptx
 
Form 5 Additional Maths Note
Form 5 Additional Maths NoteForm 5 Additional Maths Note
Form 5 Additional Maths Note
 

Mehr von Unsa Shakir

Mehr von 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
 

Kürzlich hochgeladen

Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 

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

Hinweis der Redaktion

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