SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Boolean Expressions and Truth
Tables
• Truth table – a way of presenting the
logical operation of a circuit.
• Presents the output for all possible input
variable combinations
• Example: develop the truth table for the
standard SOP expression
– A’B’C + AB’C’ + ABC

IS 151 Digital Circuitry

1
Boolean Expressions and Truth
Tables
Inputs

Output

A B

C

X

0

0

0

0

0

0

1

1

0

1

0

0

0

1

1

0

1

0

0

1

1

0

1

0

1

1

0

0

1

1

1

• In SOP, the SOP expression is 1 only if at least
one of the product terms is 1

1

• In POS, the POS expression is 0 only if at least
one of the product terms is 0

IS 151 Digital Circuitry

2
The Karnaugh Map (K-Map)
• Similar to a truth table, but consists of an array
of cells in which each cell represents a binary
value of the input variables
• Can be used with expressions with two, three,
four and five variables
– Will deal with 3 and 4 variables only

• The number of cells in a K-map is equal to the
total number of possible input variable
combinations as is the number of rows in a truth
table
IS 151 Digital Circuitry

3
The 3-variable K-map
• 8 cells
• Variables: A, B and C
• The value of a given cell
is the binary values of A
and B at the left in the
same row combined with
the value of C on the top
in the same column.

IS 151 Digital Circuitry

C

0

1

AB
00

01
11
10

4
The 4-variable K-map
• 16 cells
• Variables: A, B, C and D
• A and B on the left, C and
D on top

CD
AB

00

01

11

10

00
01
11
10

IS 151 Digital Circuitry

5
K-Maps - Examples
• Map the following expressions on a K-Map
– ABC + A’B’C’ + AB’C + A’BC
– A’BCD’ + ABC’D’ + ABCD + AB’CD’
– A’B’C + A’BC’ + ABC’ + AB’C
– ABCD’ + A’B’CD + AB’CD + ABC’D

IS 151 Digital Circuitry

6
Cell Adjacency
• Cells arranged so that there is only a single
variable change between adjacent cells
• Adjacency - defined by single-variable change
– E.g. in the 3-variable map, the 010 cell is adjacent to
the 000 cell, the 011 cell and the 110 cell.
– Cells with values that differ by more than one variable
are not adjacent.
• E.g. the 010 cell is not adjacent to the 001 cell, the 111 cell,
the 100 cell or the 101 cell

IS 151 Digital Circuitry

7
Cell Adjacency
• Each cell is adjacent to the cells that are
immediately next to it on any of its four sides
• A cell is not adjacent to the cells that diagonally
touch any of its corners
• The cells in the top row are adjacent to the
corresponding cells in the bottom row
• The cells in the outer left column are adjacent to
the corresponding cells in the outer right column
(wrap-around) adjacency – think of the map as
forming a cylinder top-bottom or right-left
IS 151 Digital Circuitry

8
K-map SOP Minimisation
• Mapping a standard SOP expression
– A 1 is placed on the K-map for each product term in
the expression
– Each 1 is placed in a cell corresponding to the value
of a product term
• E.g. a product term AB’C, a 1 goes in the 101 cell on a 3variable map

– The number of 1s in the K-map equals the number of
product terms in the standard SOP expression
– The cells that do not have a 1 are the cells for which
the expression is 0.
IS 151 Digital Circuitry

9
K-map SOP Minimisation
• Steps
– Determine the value of each product term in a standard SOP
expression
– Place a 1 on the K-map in the cell with the same value as the
product term
– E.g. A’B’C’ + A’B’C + ABC’ + AB’C’
C

0

1

1

1

AB
00
01
11

1

10

1

IS 151 Digital Circuitry

10
K-map SOP Minimisation
• Examples
– A’B’C + A’BC’ + AB’C + ABC
C

0

1

AB
00

1

01

1

11

1

1

10

IS 151 Digital Circuitry

11
K-map SOP Minimisation
• Examples
– A’B’CD + A’BC’D’ + ABC’D + ABCD + ABC’D’ +
A’B’C’D + AB’CD’
CD
AB

00

01

1

1

1

10

1

1

11

11

1

00

01

10

1

IS 151 Digital Circuitry

12
K-map SOP Minimisation
• Examples
– A’BCD’ + ABCD’ + ABC’D’ +ABCD
CD
AB

00

01

11

10

00
01
11

1
1

1

1

10

IS 151 Digital Circuitry

13
• End of lecture

IS 151 Digital Circuitry

14

Weitere ähnliche Inhalte

Andere mochten auch (8)

Basics of digital ic
Basics of digital icBasics of digital ic
Basics of digital ic
 
Tree and Binary Search tree
Tree and Binary Search treeTree and Binary Search tree
Tree and Binary Search tree
 
Computer number systems
Computer number systemsComputer number systems
Computer number systems
 
simplification of boolean algebra
simplification of boolean algebrasimplification of boolean algebra
simplification of boolean algebra
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
CBSE XII Boolean Algebra
CBSE XII Boolean AlgebraCBSE XII Boolean Algebra
CBSE XII Boolean Algebra
 

Ähnlich wie IS 151 Lecture 6

Polygon Fill
Polygon FillPolygon Fill
Polygon Fill
wahab13
 

Ähnlich wie IS 151 Lecture 6 (20)

Digital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptxDigital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptx
 
IS 151 Lecture 7
IS 151 Lecture 7IS 151 Lecture 7
IS 151 Lecture 7
 
Kmap..(karnaugh map)
Kmap..(karnaugh map)Kmap..(karnaugh map)
Kmap..(karnaugh map)
 
K - Map
  K - Map    K - Map
K - Map
 
Minimizing boolean
Minimizing booleanMinimizing boolean
Minimizing boolean
 
Minimizing boolean
Minimizing booleanMinimizing boolean
Minimizing boolean
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
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
 
K map.
K map.K map.
K 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)
 
karnaugh map
karnaugh mapkarnaugh map
karnaugh map
 
UNIT V.pptx
UNIT V.pptxUNIT V.pptx
UNIT V.pptx
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
9402730.ppt
9402730.ppt9402730.ppt
9402730.ppt
 
Polygon Fill
Polygon FillPolygon Fill
Polygon Fill
 
UNIT1-part2.pptx
UNIT1-part2.pptxUNIT1-part2.pptx
UNIT1-part2.pptx
 
IS 151 Lecture 9
IS 151 Lecture 9IS 151 Lecture 9
IS 151 Lecture 9
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
NOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptxNOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptx
 

Mehr von wajanga (20)

IS 151 Lecture 3
IS 151 Lecture 3IS 151 Lecture 3
IS 151 Lecture 3
 
IS 151 Lecture 2
IS 151 Lecture 2IS 151 Lecture 2
IS 151 Lecture 2
 
IS 151 Lecture 1
IS 151 Lecture 1IS 151 Lecture 1
IS 151 Lecture 1
 
IS 151 Outline 2014
IS 151 Outline 2014IS 151 Outline 2014
IS 151 Outline 2014
 
IS 139 Assignment 3
IS 139 Assignment 3IS 139 Assignment 3
IS 139 Assignment 3
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7
 
IS 139 Lecture 6
IS 139 Lecture 6IS 139 Lecture 6
IS 139 Lecture 6
 
IS 139 Assignment 2
IS 139 Assignment 2IS 139 Assignment 2
IS 139 Assignment 2
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4
 
IS 139 Assignment 1
IS 139 Assignment 1IS 139 Assignment 1
IS 139 Assignment 1
 
IS 139 Lecture 3
IS 139 Lecture 3IS 139 Lecture 3
IS 139 Lecture 3
 
IS 139 Lecture 1
IS 139 Lecture 1IS 139 Lecture 1
IS 139 Lecture 1
 
IS 139 Lecture 2
IS 139 Lecture 2IS 139 Lecture 2
IS 139 Lecture 2
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
 
IS 151 Lecture 10
IS 151 Lecture 10IS 151 Lecture 10
IS 151 Lecture 10
 
IS 151 Lecture 8
IS 151 Lecture 8IS 151 Lecture 8
IS 151 Lecture 8
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
 
IS 151 - Lecture 3
IS 151 - Lecture 3IS 151 - Lecture 3
IS 151 - Lecture 3
 
IS 151 lecture 2
IS 151   lecture 2IS 151   lecture 2
IS 151 lecture 2
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 

IS 151 Lecture 6

  • 1. Boolean Expressions and Truth Tables • Truth table – a way of presenting the logical operation of a circuit. • Presents the output for all possible input variable combinations • Example: develop the truth table for the standard SOP expression – A’B’C + AB’C’ + ABC IS 151 Digital Circuitry 1
  • 2. Boolean Expressions and Truth Tables Inputs Output A B C X 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 • In SOP, the SOP expression is 1 only if at least one of the product terms is 1 1 • In POS, the POS expression is 0 only if at least one of the product terms is 0 IS 151 Digital Circuitry 2
  • 3. The Karnaugh Map (K-Map) • Similar to a truth table, but consists of an array of cells in which each cell represents a binary value of the input variables • Can be used with expressions with two, three, four and five variables – Will deal with 3 and 4 variables only • The number of cells in a K-map is equal to the total number of possible input variable combinations as is the number of rows in a truth table IS 151 Digital Circuitry 3
  • 4. The 3-variable K-map • 8 cells • Variables: A, B and C • The value of a given cell is the binary values of A and B at the left in the same row combined with the value of C on the top in the same column. IS 151 Digital Circuitry C 0 1 AB 00 01 11 10 4
  • 5. The 4-variable K-map • 16 cells • Variables: A, B, C and D • A and B on the left, C and D on top CD AB 00 01 11 10 00 01 11 10 IS 151 Digital Circuitry 5
  • 6. K-Maps - Examples • Map the following expressions on a K-Map – ABC + A’B’C’ + AB’C + A’BC – A’BCD’ + ABC’D’ + ABCD + AB’CD’ – A’B’C + A’BC’ + ABC’ + AB’C – ABCD’ + A’B’CD + AB’CD + ABC’D IS 151 Digital Circuitry 6
  • 7. Cell Adjacency • Cells arranged so that there is only a single variable change between adjacent cells • Adjacency - defined by single-variable change – E.g. in the 3-variable map, the 010 cell is adjacent to the 000 cell, the 011 cell and the 110 cell. – Cells with values that differ by more than one variable are not adjacent. • E.g. the 010 cell is not adjacent to the 001 cell, the 111 cell, the 100 cell or the 101 cell IS 151 Digital Circuitry 7
  • 8. Cell Adjacency • Each cell is adjacent to the cells that are immediately next to it on any of its four sides • A cell is not adjacent to the cells that diagonally touch any of its corners • The cells in the top row are adjacent to the corresponding cells in the bottom row • The cells in the outer left column are adjacent to the corresponding cells in the outer right column (wrap-around) adjacency – think of the map as forming a cylinder top-bottom or right-left IS 151 Digital Circuitry 8
  • 9. K-map SOP Minimisation • Mapping a standard SOP expression – A 1 is placed on the K-map for each product term in the expression – Each 1 is placed in a cell corresponding to the value of a product term • E.g. a product term AB’C, a 1 goes in the 101 cell on a 3variable map – The number of 1s in the K-map equals the number of product terms in the standard SOP expression – The cells that do not have a 1 are the cells for which the expression is 0. IS 151 Digital Circuitry 9
  • 10. K-map SOP Minimisation • Steps – Determine the value of each product term in a standard SOP expression – Place a 1 on the K-map in the cell with the same value as the product term – E.g. A’B’C’ + A’B’C + ABC’ + AB’C’ C 0 1 1 1 AB 00 01 11 1 10 1 IS 151 Digital Circuitry 10
  • 11. K-map SOP Minimisation • Examples – A’B’C + A’BC’ + AB’C + ABC C 0 1 AB 00 1 01 1 11 1 1 10 IS 151 Digital Circuitry 11
  • 12. K-map SOP Minimisation • Examples – A’B’CD + A’BC’D’ + ABC’D + ABCD + ABC’D’ + A’B’C’D + AB’CD’ CD AB 00 01 1 1 1 10 1 1 11 11 1 00 01 10 1 IS 151 Digital Circuitry 12
  • 13. K-map SOP Minimisation • Examples – A’BCD’ + ABCD’ + ABC’D’ +ABCD CD AB 00 01 11 10 00 01 11 1 1 1 1 10 IS 151 Digital Circuitry 13
  • 14. • End of lecture IS 151 Digital Circuitry 14