COM111 Introduction to Computer Engineering (Fall ) NOTES 6 -- page 1 of 12

Similar documents
Lecture 7: Karnaugh Map, Don t Cares

Advanced Digital Design with the Verilog HDL, Second Edition Michael D. Ciletti Prentice Hall, Pearson Education, 2011

CHAPTER 5 KARNAUGH MAPS

UNIT 5 KARNAUGH MAPS Spring 2011

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

CSE 140: Components and Design Techniques for Digital Systems

Karnaugh Maps Objectives

Optimizations and Tradeoffs. Combinational Logic Optimization

Lecture 4: Four Input K-Maps

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

ELC224C. Karnaugh Maps

This form sometimes used in logic circuit, example:

Gate-Level Minimization

Midterm1 Review. Jan 24 Armita

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

14:332:231 DIGITAL LOGIC DESIGN

Karnaugh Map & Boolean Expression Simplification

Chapter 2 Combinational Logic Circuits

Digital Circuit And Logic Design I. Lecture 4

Logical Design of Digital Systems

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Unit 2 Session - 6 Combinational Logic Circuits

CHAPTER III BOOLEAN ALGEBRA

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Logic Design I (17.341) Fall Lecture Outline

14:332:231 DIGITAL LOGIC DESIGN. Combinational Circuit Synthesis

CHAPTER III BOOLEAN ALGEBRA

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

CHAPTER 3 BOOLEAN ALGEBRA

ENG2410 Digital Design Combinational Logic Circuits

Digital Logic Design. Combinational Logic

Simplifying Logic Circuits with Karnaugh Maps

Lecture (02) NAND and NOR Gates

The One-Quarter Fraction

UNIT 3 BOOLEAN ALGEBRA (CONT D)

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

K-map Definitions. abc

Multilevel Logic Synthesis Algebraic Methods

Karnaugh Maps ف ر آ ا د : ا ا ب ا م آ ه ا ن ر ا

Boolean Algebra and Logic Design (Class 2.2 1/24/2013) CSE 2441 Introduction to Digital Logic Spring 2013 Instructor Bill Carroll, Professor of CSE

MC9211 Computer Organization

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Number System conversions

Chap 2. Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

Reduction of Logic Equations using Karnaugh Maps

Karnaugh Maps (K-Maps)

ECE 2300 Digital Logic & Computer Organization

Fractional Replications

DIGITAL ELECTRONICS & it0203 Semester 3

211: Computer Architecture Summer 2016

Advanced Boolean Logic and Applications to Control Systems

Introduction to Karnaugh Maps

Week-I. Combinational Logic & Circuits

Chapter 7 Logic Circuits

23. Fractional factorials - introduction

PI = { a.b.c, ac d, b cd, ab d, bd} cd

for Digital Systems Simplification of logic functions Tajana Simunic Rosing Sources: TSR, Katz, Boriello & Vahid

Unit 6. Quine-McClusky Method. Unit 6 1

ST3232: Design and Analysis of Experiments

Chapter 3. Boolean Algebra. (continued)

CHAPTER 7. Solutions for Exercises

Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MINI TERMS AND MAX TERMS

CPE100: Digital Logic Design I

CHAPTER 7. Exercises 17/ / /2 2 0

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

EEE130 Digital Electronics I Lecture #4

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

Construction of Mixed-Level Orthogonal Arrays for Testing in Digital Marketing

Design theory for relational databases

Lecture 5. Karnaugh-Map

T02 Tutorial Slides for Week 6

Fractional Factorial Designs

Geometry Problem Solving Drill 08: Congruent Triangles

Minimization techniques

Chapter 4 Optimized Implementation of Logic Functions

The hypergeometric distribution - theoretical basic for the deviation between replicates in one germination test?

T9: Covering. Prove true by: Method 1: Perfect induction Method 2: Using other theorems and axioms. Number Theorem. T9 B (B+C) = B Covering

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2 Boolean Algebra and Logic Gates

REPRESENTATION AND MINIMIZATION OF BOOLEAN FUNCTIONS. Part II Minimization of Boolean Functions.

Administrative Notes. Chapter 2 <9>

Slides for Lecture 16

Lecture 12: Feb 16, 2017

Chapter 2. Digital Logic Basics

19. Blocking & confounding

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

CPE100: Digital Logic Design I

WEEK 3.1 MORE ON KARNAUGH MAPS

Systems I: Computer Organization and Architecture

1. Expand each of the following functions into a canonical sum-of-products expression.

Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks.

Solutions to Assignment No 5 Digital Techniques Fall 2007

ECE 238L Boolean Algebra - Part I

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

Chapter 11: Factorial Designs

Unit 3 Session - 9 Data-Processing Circuits

Transcription:

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 1 of 12 Karnaugh Maps In this lecture, we will discuss Karnaugh maps (K-maps) more formally than last time and discuss a more orderly method for optaining the minimal sum. Literal A variable or the complement of a variable. Examples: A, B', C', D Normal Product Term A product term in which no variable appears more than once. Examples: ABC, AB'C', A'B'C' Counter Examples: AA'BC, AB'B'C', ABCC n-variable Minterm A normal product term with n literals. There are 2 n such terms. Example: A B 0 0 A'B' 0 1 A'B 1 0 AB' 1 1 AB Each of the product terms corresponding to a row in the truth table is a minterm. Minimal Sum Implicant A sum of products (SOP) expression such that no SOP expression for Y has fewer product terms and any SOP expression with the same number of product terms has at least as many literals. This is what we are trying to produce through the use of Karnaugh maps. A normal product term that implies Y. Example: For the function Y = AB + ABC + BC, the implicants are AB, ABC, and BC because if any one of those terms are true, then Y is true. Prime Implicant An implicant of Y such that if any variable is removed from the implicant, the resulting term does not imply Y. Example: Y = AB + ABC + BC Prime Implicants: AB, BC Not a prime implicant: ABC ABC is not a prime implicant because the literal A can be removed to give BC and BC still implies Y. Conversely AB is not a prime implicant because you can't remove either A or B and have the remaining term still imply Y. In truth tables the prime implicants are represented by the largest rectangular groups of ones that can be circled. If a smaller subgroup is circled, the smaller group is an implicant, but not a prime implicant. PI Theorem A minimal sum is a sum of prime implicants. Distinguished 1-Cell An input combination that is covered by 1 prime implicant. In terms of Karnaugh maps, distinguished 1-cells are 1's that are circled by only 1 prime implicant.

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 2 of 12 Essential Prime Implicant A prime implicant that that includes one or more distinguished one cells. Essential prime implicants are important because a minimal sum contains all essential prime implicants. Karnaugh Map Examples In the following examples the distinguished 1-cells are marked in the upper left corner of the cell with an asterisk (*). The essential prime implicants are circled in blue, the prime implicants are circled in black, and the non-essential prime implicants included in the minimal sum are shown in red. Example 1 Prime Implicants: 5 Distinguished 1-Cells: 2 Essential Prime Implicants: 2 Minimal Sums: 1

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 3 of 12 Y = A'CD' + AC'D + BCD Example 2 Prime Implicants: 7 Distinguished 1-Cells: 2 Essential Prime Implicants: 2 Minimal Sums: 1 Y = B'D' + AD' + A'C'D + BCD

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 4 of 12 Example 3 Prime Implicants: 6 Distinguished 1-Cells: 2 Essential Prime Implicants: 2 Minimal Sums: 3 Y = AB'C' + A'CD' + AC'D + BCD Y = AB'C' + A'CD' + ABD + A'BC

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 5 of 12 Y = AB'C' + A'CD' + ABD + BCD Example 4 Prime Implicants: 5 Distinguished 1-Cells: 3 Essential Prime Implicants: 3 Minimal Sums: 1 Y = A'B' + A'C' + ABC + A'D Example 5 Prime Implicants: 4 Distinguished 1-Cells: 4 Essential Prime Implicants: 4 Minimal Sums: 1

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 6 of 12 Y = A'C + A'B + BD + CD Example 6 Prime Implicants: 5 Distinguished 1-Cells: 3 Essential Prime Implicants: 3 Minimal Sums: 1 Y = B'D + BC' + AB Example 7 Prime Implicants: 8 Distinguished 1-Cells: 0 Essential Prime Implicants: 0 Minimal Sums: 2

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 7 of 12 Y = A'B'C + A'BD + ABC' + AB'D' Y = B'CD' + A'CD + BC'D + AC'D' Example 8 Prime Implicants: 3 Distinguished 1-Cells: 8 Essential Prime Implicants: 3 Minimal Sums: 1

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 8 of 12 Y = B'C + D + BC' 5-Variable Karnaugh Maps For these you must circle the prime implicants on each map individually and then the prime implicants on the joint map. The joint essential prime implicants are shown in green. Prime Implicants: 7 Distinguished 1-Cells: 7 Essential Prime Implicants: 4 Minimal Sums: 2 Y = A'B'C' + BE + ABC' + ACE + A'DE

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 9 of 12 Y = A'B'C' + BE + ABC' + ACE + CDE Note that the joint map can help you identify the joint prime implicants.

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 10 of 12 6-Variable Karnaugh Maps The prime implicants unique to each map are shown in black. The prime implicants shared between maps 0 and 1 (A=0) are shown in aqua. The prime implicants shared between maps 0 and 2 (B=0) are shown in violet. The prime implicants shared between maps 1 and 3 (B=1) are shown in olive. The prime implicants shared between maps 2 and 3 (A=1) are shown in brown. The prime implicants shared between all 4 maps are shown in orange. To find the prime implicants shared among maps it may help to draw out each of the 5 joint maps. Distinguished 1-Cells: 10 Essential Prime Implicants: 5 Minimal Sums: 2 Essential Prime Implicants

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 11 of 12 A'EF (Maps 0 & 1) BCD' (Maps 1 & 3) B'D'F' (Maps 0 & 2) ACE' (Maps 2 & 3) ABDE' (Map 3) Y = A'EF + BCD' + B'D'F' + ACE' + ABDE' + B'DE'F + A'B'C'F

COM111 Introduction to Computer Engineering (Fall 2006-2007) NOTES 6 -- page 12 of 12 Y = A'EF + BCD' + B'D'F' + ACE' + ABDE' + B'DE'F + A'B'C'D'