SlideShare a Scribd company logo
1 of 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

More Related Content

Viewers also liked

Object Oriented Programming_Lecture 2
Object Oriented Programming_Lecture 2Object Oriented Programming_Lecture 2
Object Oriented Programming_Lecture 2Mahmoud Alfarra
 
Chapter2 array of objects
Chapter2 array of objectsChapter2 array of objects
Chapter2 array of objectsMahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - تعدد الأشكال
البرمجة الهدفية بلغة جافا - تعدد الأشكالالبرمجة الهدفية بلغة جافا - تعدد الأشكال
البرمجة الهدفية بلغة جافا - تعدد الأشكالMahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية  بلغة جافا - مصفوفة الكائناتالبرمجة الهدفية  بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية بلغة جافا - مصفوفة الكائناتMahmoud Alfarra
 
المحاضرة الثامنة: تراكيب البيانات الطابور
المحاضرة الثامنة: تراكيب البيانات الطابورالمحاضرة الثامنة: تراكيب البيانات الطابور
المحاضرة الثامنة: تراكيب البيانات الطابورMahmoud Alfarra
 
1 intro of data structure course
1  intro of data structure course1  intro of data structure course
1 intro of data structure courseMahmoud Alfarra
 
القوائم المترابطة Linked List باستخدام لغة جافا
القوائم المترابطة Linked List باستخدام لغة جافاالقوائم المترابطة Linked List باستخدام لغة جافا
القوائم المترابطة Linked List باستخدام لغة جافاMahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - الوراثة
البرمجة الهدفية بلغة جافا - الوراثةالبرمجة الهدفية بلغة جافا - الوراثة
البرمجة الهدفية بلغة جافا - الوراثةMahmoud Alfarra
 
IS 151 Lecture 1
IS 151 Lecture 1IS 151 Lecture 1
IS 151 Lecture 1wajanga
 
IS 151 lecture 2
IS 151   lecture 2IS 151   lecture 2
IS 151 lecture 2wajanga
 
IS 139 Lecture 6
IS 139 Lecture 6IS 139 Lecture 6
IS 139 Lecture 6wajanga
 
IS 151 Lecture 2
IS 151 Lecture 2IS 151 Lecture 2
IS 151 Lecture 2wajanga
 
IS 151 Lecture 3
IS 151 Lecture 3IS 151 Lecture 3
IS 151 Lecture 3wajanga
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4wajanga
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7wajanga
 
‫Object Oriented Programming_Lecture 3
‫Object Oriented Programming_Lecture 3‫Object Oriented Programming_Lecture 3
‫Object Oriented Programming_Lecture 3Mahmoud Alfarra
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11wajanga
 
IS 139 Lecture 1
IS 139 Lecture 1IS 139 Lecture 1
IS 139 Lecture 1wajanga
 
البرمجة الهدفية بلغة جافا - مقدمة
البرمجة الهدفية بلغة جافا - مقدمةالبرمجة الهدفية بلغة جافا - مقدمة
البرمجة الهدفية بلغة جافا - مقدمةMahmoud Alfarra
 

Viewers also liked (20)

Object Oriented Programming_Lecture 2
Object Oriented Programming_Lecture 2Object Oriented Programming_Lecture 2
Object Oriented Programming_Lecture 2
 
Chapter2 array of objects
Chapter2 array of objectsChapter2 array of objects
Chapter2 array of objects
 
البرمجة الهدفية بلغة جافا - تعدد الأشكال
البرمجة الهدفية بلغة جافا - تعدد الأشكالالبرمجة الهدفية بلغة جافا - تعدد الأشكال
البرمجة الهدفية بلغة جافا - تعدد الأشكال
 
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية  بلغة جافا - مصفوفة الكائناتالبرمجة الهدفية  بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
 
المحاضرة الثامنة: تراكيب البيانات الطابور
المحاضرة الثامنة: تراكيب البيانات الطابورالمحاضرة الثامنة: تراكيب البيانات الطابور
المحاضرة الثامنة: تراكيب البيانات الطابور
 
1 intro of data structure course
1  intro of data structure course1  intro of data structure course
1 intro of data structure course
 
القوائم المترابطة Linked List باستخدام لغة جافا
القوائم المترابطة Linked List باستخدام لغة جافاالقوائم المترابطة Linked List باستخدام لغة جافا
القوائم المترابطة Linked List باستخدام لغة جافا
 
البرمجة الهدفية بلغة جافا - الوراثة
البرمجة الهدفية بلغة جافا - الوراثةالبرمجة الهدفية بلغة جافا - الوراثة
البرمجة الهدفية بلغة جافا - الوراثة
 
IS 151 Lecture 1
IS 151 Lecture 1IS 151 Lecture 1
IS 151 Lecture 1
 
IS 151 lecture 2
IS 151   lecture 2IS 151   lecture 2
IS 151 lecture 2
 
IS 139 Lecture 6
IS 139 Lecture 6IS 139 Lecture 6
IS 139 Lecture 6
 
IS 151 Lecture 2
IS 151 Lecture 2IS 151 Lecture 2
IS 151 Lecture 2
 
IS 151 Lecture 3
IS 151 Lecture 3IS 151 Lecture 3
IS 151 Lecture 3
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7
 
‫Object Oriented Programming_Lecture 3
‫Object Oriented Programming_Lecture 3‫Object Oriented Programming_Lecture 3
‫Object Oriented Programming_Lecture 3
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
 
IS 139 Lecture 1
IS 139 Lecture 1IS 139 Lecture 1
IS 139 Lecture 1
 
البرمجة الهدفية بلغة جافا - مقدمة
البرمجة الهدفية بلغة جافا - مقدمةالبرمجة الهدفية بلغة جافا - مقدمة
البرمجة الهدفية بلغة جافا - مقدمة
 
Graphs data Structure
Graphs data StructureGraphs data Structure
Graphs data Structure
 

Similar to IS 151 Lecture 6

Similar to IS 151 Lecture 6 (20)

Digital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptxDigital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptx
 
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.
 
simplification of boolean algebra
simplification of boolean algebrasimplification of boolean algebra
simplification of boolean algebra
 
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
 
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
 
K-map method
K-map methodK-map method
K-map method
 

More from wajanga

IS 151 Outline 2014
IS 151 Outline 2014IS 151 Outline 2014
IS 151 Outline 2014wajanga
 
IS 139 Assignment 3
IS 139 Assignment 3IS 139 Assignment 3
IS 139 Assignment 3wajanga
 
IS 139 Assignment 2
IS 139 Assignment 2IS 139 Assignment 2
IS 139 Assignment 2wajanga
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5wajanga
 
IS 139 Assignment 1
IS 139 Assignment 1IS 139 Assignment 1
IS 139 Assignment 1wajanga
 
IS 139 Lecture 3
IS 139 Lecture 3IS 139 Lecture 3
IS 139 Lecture 3wajanga
 
IS 139 Lecture 2
IS 139 Lecture 2IS 139 Lecture 2
IS 139 Lecture 2wajanga
 

More from wajanga (7)

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 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 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 2
IS 139 Lecture 2IS 139 Lecture 2
IS 139 Lecture 2
 

Recently uploaded

APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 

Recently uploaded (20)

APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 

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