Converting to Minterms Form

Slides:



Advertisements
Similar presentations
K-Map Simplification COE 202 Digital Logic Design Dr. Aiman El-Maleh
Advertisements

Based on slides by: Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 8 – Systematic Simplification.
Chapter 3 Simplification of Switching Functions. Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
Gate-level Minimization
Chapter 3 Simplification of Switching Functions
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Simplification of SOP Expression Prime Implicant (PI) is a product which is obtained from the number of maximum.
CS 140 Lecture 4 Professor CK Cheng Tuesday 5/08/02.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Give qualifications of instructors: DAP
Computer Engineering (Logic Circuits) (Karnaugh Map)
Introduction Gate-level minimization refers to the design task of finding an optimal gate-level implementation of Boolean functions describing a digital.
ECE 331 – Digital System Design Karnaugh Maps and Determining a Minimal Cover (Lecture #7) The slides included herein were taken from the materials accompanying.
ECE 301 – Digital Electronics Karnaugh Maps and Determining a Minimal Cover (Lecture #8) The slides included herein were taken from the materials accompanying.
Simplifying Boolean Expressions Using K-Map Method
Overview of Chapter 3 °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions.
K-map Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
1 Simplification of Boolean Functions:  An implementation of a Boolean Function requires the use of logic gates.  A smaller number of gates, with each.
CT455: Computer Organization K-Map
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
Chapter 3 The Karnaugh Map. These K-maps are described by the location. Next, each square will be 1 or 0 depending on the value of the function. ABfm.
Department of Computer Engineering
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. K-Map (1)  Karnaugh Mapping is used to minimize the number of logic gates that are required in a digital circuit.
Optimization Algorithm
Two-Level Simplification Approaches Algebraic Simplification: - algorithm/systematic procedure is not always possible - No method for knowing when the.
CS2100 Computer Organisation
CS1104: Computer Organisation comp. nus. edu
Chapter 3 Gate-Level Minimization
Examples. Examples (1/11)  Example #1: f(A,B,C,D) =  m(2,3,4,5,7,8,10,13,15) Fill in the 1’s. 1 1 C A B CD AB D 1 1.
Karnaugh map minimization Basic Terms (1) minterm maxterm - a single 1 - a single 0 1. implicant
Combinational Logic Part 2: Karnaugh maps (quick).
Computer Engineering (Logic Circuits) (Karnaugh Map)
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
CS2100 Computer Organisation
07 KM Page 1 ECEn/CS 224 Karnaugh Maps. 07 KM Page 2 ECEn/CS 224 What are Karnaugh Maps? A simpler way to handle most (but not all) jobs of manipulating.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Conversion from one number base to another Binary arithmetic Equation simplification DeMorgan’s Laws Conversion to/from SOP/POS Reading equations from.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
1 Example: Groupings on 3-Variable K-Maps BC F(A,B,C) = A ’ B ’ A BC F(A,B,C) = B ’ A
 Seattle Pacific University EE Logic System DesignKMaps-1 Two-Level Simplification All Boolean expressions can be represented in two- level forms.
Digital Logic (Karnaugh Map). Karnaugh Maps Karnaugh maps (K-maps) are graphical representations of boolean functions. One map cell corresponds to a row.
Karnaugh Maps (K maps).
CEC 220 Digital Circuit Design More Karnaugh Maps Monday, February 02 CEC 220 Digital Circuit Design Slide 1 of 11.
CEC 220 Digital Circuit Design Implicants Wed, Sept. 23 CEC 220 Digital Circuit Design Slide 1 of 10.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
1 EENG 2710 Chapter 3 Simplification of Switching Functions.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC:K-Map. K-Map (1)  Karnaugh Map provides a systematic method for simplifying Boolean expressions and may produce.
Computer Organisation
Plotting functions not in canonical form
CSCE 211: Digital Logic Design
Optimized Implementation of Logic Function
ECE 331 – Digital System Design
CSCE 211: Digital Logic Design
Optimized Implementation of Logic Function
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
ECE 331 – Digital System Design
Digital Logic & Design Dr. Waseem Ikram Lecture 12.
Digital Logic & Design Dr. Waseem Ikram Lecture 13.
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
Karnaugh Maps Introduction Venn Diagrams 2-variable K-maps
Chapter 3 Gate-level Minimization.
Optimized Implementation of Logic Function
CSCE 211: Digital Logic Design
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
CSCE 211: Digital Logic Design
ECE 331 – Digital System Design
Presentation transcript:

Converting to Minterms Form Morgan Kaufmann Publishers 24 April, 2017 Converting to Minterms Form Chapter 4 — The Processor

Outline Converting to Minterms Form Simplest SOP Expressions Getting POS Expressions Don’t-care Conditions

Outline Converting to Minterms Form Simplest SOP Expressions Getting POS Expressions Don’t-care Conditions

Converting to Minterms Form (1/2) The K-map of a function is easily drawn when the function is given in canonical sum-of-products, or sum-of-minterms form. What if the function is not in sum-of-minterms? Convert it to sum-of-products (SOP) form. Expand the SOP expression into sum-of-minterms expression, or fill in the K-map directly based on the SOP expression.

Converting to Minterms Form (2/2) Example: f(A,B,C,D) = A.(C+D)'.(B'+D') + C.(B+C'+A'.D) = A.(C'.D').(B'+D') + B.C + C.C' + A'.C.D = A.B'.C'.D' + A.C'.D' + B.C + A'.C.D C A 00 01 11 10 00 01 11 10 B CD AB D A.B'.C'.D' + A.C'.D' + B.C + A'.C.D = A.B'.C'.D' + A.C'.D'.(B+B') + B.C + A'.C.D = A.B'.C'.D' + A.B.C'.D' + A.B'.C'.D' + B.C.(A+A') + A'.C.D = A.B'.C'.D' + A.B.C'.D' + A.B.C + A'.B.C + A'.C.D = A.B'.C'.D' + A.B.C'.D' + A.B.C.(D+D') + A'.B.C.(D+D') + A'.C.D.(B+B') = 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 1 1 1 1

Outline Converting to Minterms Form Simplest SOP Expressions Getting POS Expressions Don’t-care Conditions

Simplest SOP Expressions (1/8) To find the simplest possible sum of products (SOP) expression from a K-map, you need to obtain: minimum number of literals per product term; and minimum number of product terms This is achieved in K-map using bigger groupings of minterms (prime implicants) where possible; and no redundant groupings (look for essential prime implicants) Implicant: a product term that could be used to cover minterms of the function.

Simplest SOP Expressions (2/8) A prime implicant is a product term obtained by combining the maximum possible number of minterms from adjacent squares in the map. Use bigger groupings (prime implicants) where possible. 1 O P

Simplest SOP Expressions (3/8) No redundant groups: An essential prime implicant is a prime implicant that includes at least one minterm that is not covered by any other prime implicant. 1 P O Essential prime implicants

Simplest SOP Expressions (4/8) Algorithm 1 (non optimal): 1. Count the number of adjacencies for each minterm on the K-map. 2. Select an uncovered minterm with the fewest number of adjacencies. Make an arbitrary choice if more than one choice is possible. 3. Generate a prime implicant for this minterm and put it in the cover. If this minterm is covered by more than one prime implicant, select the one that covers the most uncovered minterms. 4. Repeat steps 2 and 3 until all the minterms have been covered.

Simplest SOP Expressions (5/8) Algorithm 2 (non optimal): 1. Circle all prime implicants on the K-map. 2. Identify and select all essential prime implicants for the cover. 3. Select a minimum subset of the remaining prime implicants to complete the cover, that is, to cover those minterms not covered by the essential prime implicants.

Simplest SOP Expressions (6/8) Example: f(A,B,C,D) =  m(2,3,4,5,7,8,10,13,15) 1 C A 00 01 11 10 00 01 11 10 B CD AB D All prime implicants

Simplest SOP Expressions (7/8) B 1 C A 00 01 11 10 00 01 11 10 CD AB D 1 C A 00 01 11 10 00 01 11 10 B CD AB D Essential prime implicants 1 C A 00 01 11 10 00 01 11 10 B CD AB D Minimum cover

Simplest SOP Expressions (8/8) 1 C A 00 01 11 10 00 01 11 10 B CD AB D A'BC' AB'D' B.D A'B'C f(A,B,C,D) = B.D + A'.B'.C + A.B'.D' + A'.B.C'

Outline Converting to Minterms Form Simplest SOP Expressions Getting POS Expressions Don’t-care Conditions

Getting POS Expressions (1/2) Simplified POS expression can be obtained by grouping the maxterms (i.e. 0s) of given function. Example: Given F = m(0,1,2,3,5,7,8,9,10,11), we first draw the K-map, then group the maxterms together: 1 C A 00 01 11 10 00 01 11 10 B CD AB D

Getting POS Expressions (2/2) 1 C A 00 01 11 10 00 01 11 10 B CD AB D C A 00 01 11 10 00 01 11 10 B CD AB 1 D K-map of F K-map of F' This gives the SOP of F' to be: F' = B.D' + A.B To get POS of F, we have: F = (B.D' + A.B)' = (B.D')'.(A.B)' DeMorgan = (B'+D).(A'+B') DeMorgan

Outline Converting to Minterms Form Simplest SOP Expressions Getting POS Expressions Don’t-care Conditions

Don’t-care Conditions (1/3) In certain problems, some outputs are not specified. These outputs can be either ‘1’ or ‘0’. They are called don’t-care conditions, denoted by X (or sometimes, d). Example: An odd parity generator for BCD code which has 6 unused combinations.

Don’t-care Conditions (2/3) Don’t-care conditions can be used to help simplify Boolean expression further in K-maps. They could be chosen to be either ‘1’ or ‘0’, depending on which gives the simpler expression. We usually use the notation Sd to denote the set of don’t-care minterms. For example, the function P in the odd-parity generator for BCD can be written as: P = Sm(0, 3, 5, 6, 9) + Sd(10, 11, 12, 13, 14, 15)

Don’t-care Conditions (3/3) For comparison: WITHOUT don’t-cares: P = A'.B'.C'.D’ + A'.B'.C.D + A'.B.C'.D + A'.B.C.D' + A.B'.C'.D WITH don’t-cares: P = A'.B'.C'.D' + B'.C.D + B.C'.D + B.C.D' + A.D 1 A C 00 01 11 10 00 01 11 10 D AB CD B 1 A C 00 01 11 10 00 01 11 10 D AB CD B X