Larger K-maps. So far we have only discussed 2 and 3-variable K-maps. We can now create a 4-variable map in the

Similar documents
Quine-McCluskey Algorithm

ELCT201: DIGITAL LOGIC DESIGN

Slide Set 5. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Binary recursion. Unate functions. If a cover C(f) is unate in xj, x, then f is unate in xj. x

DKT 122/3 DIGITAL SYSTEM 1

Karnaugh Map (K-Map) Karnaugh Map. Karnaugh Map Examples. Ch. 2.4 Ch. 2.5 Simplification using K-map

4 KARNAUGH MAP MINIMIZATION

IT 201 Digital System Design Module II Notes

Switching Circuits & Logic Design

Specifying logic functions

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

Chapter 3 Simplification of Boolean functions

3.4 QUINE MCCLUSKEY METHOD 73. f(a, B, C, D, E)¼AC ĒþB CD þ BCDþĀBD.

Synthesis 1. 1 Figures in this chapter taken from S. H. Gerez, Algorithms for VLSI Design Automation, Wiley, Typeset by FoilTEX 1

ELCT201: DIGITAL LOGIC DESIGN

A B AB CD Objectives:

Module -7. Karnaugh Maps

SEE1223: Digital Electronics

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Introduction. The Quine-McCluskey Method Handout 5 January 24, CSEE E6861y Prof. Steven Nowick

Combinational Logic Circuits Part III -Theoretical Foundations

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

1. Fill in the entries in the truth table below to specify the logic function described by the expression, AB AC A B C Z

CMPE223/CMSE222 Digital Logic

Chapter 2 Combinational Logic Circuits

Combinational Logic & Circuits

UNIT II. Circuit minimization

Ch. 5 : Boolean Algebra &

Digital Logic Design (CEN-120) (3+1)

Switching Theory And Logic Design UNIT-II GATE LEVEL MINIMIZATION

Graduate Institute of Electronics Engineering, NTU. CH5 Karnaugh Maps. Lecturer: 吳安宇教授 Date:2006/10/20 ACCESS IC LAB

CSCI 220: Computer Architecture I Instructor: Pranava K. Jha. Simplification of Boolean Functions using a Karnaugh Map

Summary. Boolean Addition

Combinational Logic Circuits

Combinational Logic Circuits

Contents. Chapter 3 Combinational Circuits Page 1 of 34

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Simplification of Boolean Functions

Gate Level Minimization Map Method

Chapter 2 Combinational Logic Circuits

ECE380 Digital Logic

Literal Cost F = BD + A B C + A C D F = BD + A B C + A BD + AB C F = (A + B)(A + D)(B + C + D )( B + C + D) L = 10

(Refer Slide Time 5:19)

9.8 Graphing Rational Functions

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

Chapter 2 Combinational

2.6 BOOLEAN FUNCTIONS

DATA MINING II - 1DL460

The Rational Zero Theorem

MUX using Tri-State Buffers. Chapter 2 - Part 2 1

CS8803: Advanced Digital Design for Embedded Hardware


Gate Level Minimization

GATE Exercises on Boolean Logic

Unit-IV Boolean Algebra

R.M.D. ENGINEERING COLLEGE R.S.M. Nagar, Kavaraipettai

1. Observe Observe your image on each side of a spoon. Record your observations using words and a picture.

EEE130 Digital Electronics I Lecture #4_1

Code No: R Set No. 1

Building Roads. Page 2. I = {;, a, b, c, d, e, ab, ac, ad, ae, bc, bd, be, cd, ce, de, abd, abe, acd, ace, bcd, bce, bde}

Presented By :- Alok Kumar Lecturer in ECE C.R.Polytechnic, Rohtak

(Refer Slide Time 6:48)

An Interesting Way to Combine Numbers

Skill Sets Chapter 5 Functions

Code No: R Set No. 1

ECE 5745 Complex Digital ASIC Design Topic 12: Synthesis Algorithms

Math 2A Vector Calculus Chapter 11 Test Fall 07 Name Show your work. Don t use a calculator. Write responses on separate paper.

BCNF. Yufei Tao. Department of Computer Science and Engineering Chinese University of Hong Kong BCNF

(1) The perimeter of a trapezoid of 10 cm height is 35 cm. If the sum of non-parallel sides is 25 cm,

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

foldr CS 5010 Program Design Paradigms Lesson 5.4

ADAPTIVE MAP FOR SIMPLIFYING BOOLEAN EXPRESSIONS

2.1 Binary Logic and Gates

Concavity. Notice the location of the tangents to each type of curve.

VLSI System Design Part II : Logic Synthesis (1) Oct Feb.2007


DIGITAL CIRCUIT LOGIC UNIT 5: KARNAUGH MAPS (K-MAPS)

Experiment 4 Boolean Functions Implementation

Gate-Level Minimization

CS 161: Design and Analysis of Algorithms

Computer Data Analysis and Plotting

Dr. S. Shirani COE2DI4 Midterm Test #1 Oct. 14, 2010

Neighbourhood Operations

9/10/2016. ECE 120: Introduction to Computing. The Domain of a Boolean Function is a Hypercube. List All Implicants for One Variable A

Using a Projected Subgradient Method to Solve a Constrained Optimization Problem for Separating an Arbitrary Set of Points into Uniform Segments

Apriori Algorithm. 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4 Bread, Milk, Diaper, Beer 5 Bread, Milk, Diaper, Coke

Chapter 6. Logic Design Optimization Chapter 6

1. Mark the correct statement(s)

Boolean Function Simplification

CprE 281: Digital Logic

Global Constraints. Combinatorial Problem Solving (CPS) Enric Rodríguez-Carbonell (based on materials by Javier Larrosa) February 22, 2019

Rational Functions. Definition A rational function can be written in the form. where N(x) and D(x) are

Introduction to Microprocessors and Digital Logic (ME262) Boolean Algebra and Logic Equations. Spring 2011

To write Boolean functions in their standard Min and Max terms format. To simplify Boolean expressions using Karnaugh Map.

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

SWITCHING THEORY AND LOGIC CIRCUITS

Combinatorial Algorithms. Unate Covering Binate Covering Graph Coloring Maximum Clique

ENEL 353: Digital Circuits Midterm Examination

University of Technology

MAPI Computer Vision. Multiple View Geometry

Transcription:

EET 3 Chapter 3 7/3/2 PAGE - 23 Larger K-maps The -variable K-map So ar we have only discussed 2 and 3-variable K-maps. We can now create a -variable map in the same way that we created the 3-variable K-map. This time both the columns and rows are headed by two variables. Each side will be set up such that only one variable will change between adjacent cells. Examine the -variable k-map to the right. Note that the cells are labeled with their min-term numbers (table row numbers). As the min-term count counts up, the count jumps rom row 2 to row then back to row 3. This can be veriied by noting the binary equivalent o each cell number as read rom the row and column headings. Cell 2 is the intersection o row and column creating 2, which is a binary 2. Cell is the intersection o row and column creating 2 which is a binary. ab cd The user should note that nothing else has changed. We will still group into groups o powers o two (, 2,, 8, 6, etc.) with the largest possible group in this -variable map at 6. Note in the igure to the let that i we roll this map into a cylinder along the vertical axis, we see that the let and right edges ( abcd,,, ) bd are still adjacent, just as with the 3-variable k-map. We can also roll the K-map into a cylinder along the horizontal axis and we can then see that the top and bottom edges are adjacent as well. This adjacency brings up some interesting grouping potential as is demonstrated by the ollowing examples. ab cd ( abcd,,, ) b

EET 3 Chapter 3 7/3/2 PAGE - 2 -variable SOP K-map examples -Variable K-Map Example (SOP): Problem Statement: Minimize the ollowing expression into an SOP expression: a, b,c,d m,,3,8,9, Due to the adjacency o the top and bottom edges, the ollowing groups: Groups (,,8,9) and (,3,9,) can be created and orm the minimized algebraic expression: ( a, b, c, d ) b c bd bd ab cd bc 2 3 It should be noted how one group shared part o the other group. -Variable K-map Example 2 (SOP): Problem Statement: Minimize the ollowing expression into an SOP expression: a, b, c, d m,2,6,8, ab cd bd 2 3 acd This example demonstrates that the cells in the our corners make up a group o our. The second group is obvious. The minimal answer is: ( abcd,,, ) bdacd

EET 3 Chapter 3 7/3/2 PAGE - 2 -Variable K-Map Example 3 (SOP) Problem Statement: Minimize the ollowing expression into a SOP expression: a, b, c, d m,,2,3,, 8,, cd ab The minimal solution is: ( a, b, c, d ) b d a b a c ac 2 3 ab bd -variable POS K-map examples -Variable K-Map Example (POS) Problem Statement: Minimize the ollowing expression into a POS expression: a, b, c, d m, 6, 2, Note that the given switching unction was a min-term list and we need a max-term list or a POS expression. So, the st thing to do is to convert the list to a max-term list. ab cd b 2 3 a, b, c, d m,6,2, M,,2,3,,7, 8, 9,,, 3, This example plots the max-terms o an expression and results in the indicated expression below. Careully note d the logic level o the resulting terms and how they were obtained. ( abcd,,, ) b d

EET 3 Chapter 3 7/3/2 PAGE - 26 -Variable K-Map Example (POS) Problem Statement: Minimize the ollowing min-term list into a POS expression a,b,c,d,, m,2,, 7,9,,,3 Again, the provided unction was in min-term orm. It is necessary to convert it to a max-term list. : a,b,c,d M, 3,,6,8,2 m,2,, 7,9,,,3,, Remember that when you read o a Max- Term, you have to read it o like it was the inverse o a min-term. The minimum result is: d a c ( a, b, c, d ) a b a b d d a b d ab cd a c d 2 3 a b d

EET 3 Chapter 3 7/3/2 PAGE - 27 The Implicant, Prime Implicant (PI), and Essential Prime Implicant (EPI) Let s discuss a couple deinitions which will come in handy later. Implicant: Any product term (element) or group o terms. Prime Implicant (PI): Largest possible term, or group o product terms, that cannot be combined with any other product term to generate a term with ewer literals than the original term. Essential Prime Implicant (EPI): A Prime Implicant which must be in the inal minimal answer. It is ESSENTIAL to the answer Now that we have these deinitions, let s revisit the solution to a previous example: A,B,C BC BC A A B C This solution has two dierent answers. The st two terms are in both answers. They are Essential Prime Implicants (EPI) because they are ESSENTIAL TO THE ANSWER. The second two terms are Prime Implicants (PI). While one or the other is in a solution, they are NOT ESSENTIAL to any single answer. Thereore, each minimal solution will consist o two EPI s and one PI. This topic will end up being used in the Tabular Reduction Method discussed at the end o the chapter. While this is not a K-Map topic, these deinitions are best learned in a K-Map environment. So, let s look at a ew more K-maps and igure out what terms are PI s and what terms are EPI s.

EET 3 Chapter 3 7/3/2 PAGE - 28 Essential Prime Implicant Example Problem Statement: Determine which terms in the K-maps below are PI s and which are EPI s. abcd abcd epi 2 3 2 epi's 2 3 ( abcd,,, ) bd abcd 2-epi's (,7,3,) (,) -pi 2 (,) 3 ( abcd,,, )bdabc ( abcd,,, ) bdacd Implicants (not Prime or Essential) It can be made part o a larger group abcd 2 3 EPI's I a '' were added here, it would be a IMPLICANT, but not 'PRIME' because it can be made "larger." I we were to group this term with minterm 2, then it would be an EPI.

EET 3 Chapter 3 7/3/2 PAGE - 29 Essential Prime Implicant Example 2 Problem Statement: Determine which terms in the solution below are EPI s and PI s: Two EPI s (2,6) and (8,9) Four PI s (9,3), (7,), (3,), and (6,7) Thus, this example has THREE dierent answers. PI acd EPI ab c abcd 2 3 Solution EPI ' s PI # ( a, b, c, d ) acd ab c acd bcd PI ' s EPI acd bcd cd ab PI abd EPI ab c 2 3 Solution #2 EPI ' s PI abc ( a, b, c, d ) acd ab c abd abc EPI acd PI ' s cd ab PI abd EPI ab c 2 3 Solution #3 EPI ' s ( a, b, c, d ) acd ab c abd bcd PI ' s EPI acd PI bcd a, b, c, d abc acd bcd acd abc abd bcd abd

EET 3 Chapter 3 7/3/2 PAGE - 3 Essential Prime Implicant Example 3 Problem Statement: Analyze the ollowing expression or PI s and EPI s. AB,C ABC, ABC ABC ABC A B C 3 A BC ( A, B, C ) AC AB BC A B C All our groups are Prime Implicant s because none o them can be combined with any other term to yield ewer literals. They are also all Essential because they each cover at least one " not covered by any other Prime Implicant. Since a term is always deined by its highest deinition, they are all designated as EPI s. They are ALL ESSENTIAL TO THE ANSWER.

EET 3 Chapter 3 7/3/2 PAGE - 3 The Circular unction and the Prime Implicant Let s look at a special unction known as a CIRCULAR Function. A circular unction is made up o only PI s. There are NO EPI s. Circular Function Example Problem Statement: Examine the ollowing K-maps to determine i the unction is CIRCULAR. AB CD 2 3 AB CD 2 3 This unction doesn t have any EPI s. Only 6 PI s: (,), (,), (,9),(,2), (9,3), (2,3)

EET 3 Chapter 3 7/3/2 PAGE - 32 The -variable K-map The -variable K-map is three dimensional! The irst 6 cells are in ront and the 2 nd 6 cells are in the back. Obviously we can t group things in the back hal because we can t see it. So we slide out the back hal and place it to the right o the ront hal. Note that the ront hal has the MSB o (A in this example) while the back hal has the MSB o ( A in this example). O course, i this was to be used or mapping zeros instead o ones, the A would be swapped with the A. This will be a lot clearer ater a ew examples. DE BC 2 3 A A

EET 3 Chapter 3 7/3/2 PAGE - 33 -Variable K-Map Example (SOP): Problem Statement: Find the minimal SOP equation o the ollowing expression using a -variable k-map. A,B,C,D,E 3,2,26, 29 m 2, 3, 7,8,2,3,8,9,2 DE BC 2 3 DE BC 6 7 9 8 2 2 22 28 29 3 3 2 2 27 26 /A /A The only thing which remains is to turn the result into Boolean variables. The process below is a method that I ind helpul in the larger problems. A,B, C,D,E 2,3,8,9 B C D 3, 7,9,23 BDE 8,2 A B D E 3,29 BCDE 2,26 A B C E B C D B D E A B D E B C D E A B C E Just to review, there are 3 EPI s and 2 PI s in this list. Question: Can you pick them out? PI s are (8, 2) and (2, 26)

EET 3 Chapter 3 7/3/2 PAGE - 3 -Variable K-Map Example 2 (POS): Problem Statement: Find the MINIMAL POS solution or the ollowing expression. A,B, C, D, E M,2,,8,,2,6,8,23 2,26,3, de bc 2 3 de bc 6 7 9 8 2 2 22 28 29 3 3 2 2 27 26 /a /a,2,8,,6,8,2,26 C E 8, 2 A B D E 26,3 A B D E A B C D E 23 A B C D E A,B, C,D,E C EA B D EA B D E A B C D EA B C D E

EET 3 Chapter 3 7/3/2 PAGE - 3 The 6 variable K-map Just as there are variable K-maps, there are also 6 variable K-maps. They are xx three dimensional boxes and when expanded in the same manner as the variable K-map create our boxes, two above the other two. However, I ind that it is very easy to make a mistake with 6 variable K-maps. Thereore, I recommend that you use tabular reduction solution methods like Quine-McCluskey (discussed later) to simpliy expressions which contain 6 or more variables.