SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Destacado

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
 

Destacado (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 a IS 151 Lecture 6

Similar a 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
 

Más de 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
 

Más de 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
 

Último

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
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
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
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
 

Último (20)

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
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
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
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
 

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