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.

Slides:



Advertisements
Similar presentations
CHAPTER 1 : INTRODUCTION
Advertisements

Based on slides by: Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 8 – Systematic Simplification.
ECE 301 – Digital Electronics Karnaugh Maps (Lecture #7) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
Chapter 3 Boolean Algebra and Logic Gate (Part 2).
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Boolean Algebra and Logic Simplification
Digital Logic and Design Vishal Jethva Lecture No. 10 svbitec.wordpress.com.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
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.
1 Chapter 5 Karnaugh Maps Mei Yang ECG Logic Design 1.
Optimization Algorithm
Chapter 3 Gate-Level Minimization
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
Computer Engineering (Logic Circuits) (Karnaugh Map)
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
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:
Figure 4–1 Application of commutative law of addition. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Conversion from one number base to another Binary arithmetic Equation simplification DeMorgan’s Laws Conversion to/from SOP/POS Reading equations from.
Karnaugh Maps (K maps). What are Karnaugh 1 maps?  Karnaugh maps provide an alternative way of simplifying logic circuits.  Instead of using Boolean.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
The 5-variables K-Map.
THE K-MAP.
C.S.Choy39 TERMINOLOGY Minterm –product term containing all input variables of a function in either true or complementary form Maxterm – sum term containing.
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.
1 3- De-Morgan’s Theorems 1.The complement of a product of variables is equal to the sum of the complements of the variables. 2. The complement of a sum.
Karnaugh Maps (K maps).
CEC 220 Digital Circuit Design More Karnaugh Maps Monday, February 02 CEC 220 Digital Circuit Design Slide 1 of 11.
Figure 5–5 Exclusive-OR logic diagram and symbols. Open file F05-05 to verify the operation. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by.
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
In some Boolean functions there are some input terms that will never occur, for example in BCD code there are sex invalid combinations 1010,1011,1100,
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.
CE1110: Digital Logic Design Gate Level Minimization Karnaugh Maps (K-Maps)
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
ECE 2110: Introduction to Digital Systems
Computer Organisation
CSCE 211: Digital Logic Design
Digital Logic and Design
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
BASIC & COMBINATIONAL LOGIC CIRCUIT
CSCE 211: Digital Logic Design
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
ECE 331 – Digital System Design
Chapter 3 Gate-level Minimization.
CSCE 211: Digital Logic Design
Overview Part 2 – Circuit Optimization
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Karnaugh Maps (K maps).
Analysis of Logic Circuits Example 1
CSCE 211: Digital Logic Design
Principles & Applications
Laws & Rules of Boolean Algebra
Chapter 2 Digital Design and Computer Architecture, 2nd Edition
Computer Architecture
Presentation transcript:

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.  This will replace Boolean reduction when the circuit is large.  Write the Boolean equation in a SOP form first and then place each term on a map.

K-Map (2)  A graphical tool for simplifying Boolean expression.  Divided into cells, each representing a specific combination of variable values.  Number of cells = total possible combinations of the variables in an expression  Eg: 3 variables = 2 3 = 8 cells 4 variables = 2 4 = 16 cells

 The map is made up of a table of every possible SOP using the number of variables that are being used.  If 2 variables are used then a 2X2 map is used  If 3 variables are used then a 4X2 map is used  If 4 variables are used then a 4X4 map is used  If 5 Variables are used then a 8X4 map is used K-Map (3)

K-Map SOP Minimization

Step 1 : Place a 1 in each cell corresponding to a minterm in the SOP expression. Step 2 : Group all 1s that are adjacent cells into groupings of the maximum number of cells. A group can only contain a number of 1s equal to a power of two or groups can overlap. Step 3 : For each group, determine the variables that are the same. A complemented and an uncomplemented variable are not the same and cancel each other. Step 4 : Write the resulting product terms for each group, using only the variables that are the same within the group. Step 5 : Combine the resulting product terms into an SOP expression which will be equivalent to the original SOP expression. Simplifying an SOP Expression

AAAA B Notice that the map is going false to true, left to right and top to bottom The upper right hand cell is A B if X= A B then put an X in that cell AAAA B 1 This show the expression true when A = 0 and B = Variables K-Map (1)

If X=AB + AB then put an X in both of these cells AAAA B 1 1 From Boolean reduction we know that A B + A B = B From the Karnaugh map we can circle adjacent cell and find that X = B AAAA B Variables K-Map (2)

3 Variables K-Map (1) Gray Code 00A B 01A B 11 A B 10A B 0 1 C C

X = A B C + A B C + A B C + A B C Gray Code 00A B 01A B 11 A B 10A B 0 1 C C Each 3 variable term is one cell on a 4 X 2 Karnaugh map Variables K-Map (2)

X = A B C + A B C + A B C + A B C Gray Code 00A B 01A B 11 A B 10A B 0 1 C C One simplification could be X = A B + A B Variables K-Map (3)

X = A B C + A B C + A B C + A B C Gray Code 00A B 01A B 11 A B 10A B 0 1 C C Another simplification could be X = B C + B C A Karnaugh Map does wrap around Variables K-Map (4)

X = A B C + A B C + A B C + A B C Gray Code 00A B 01A B 11 A B 10A B 0 1 C C The Best simplification would be X = B Variables K-Map (5)

3 Variables K-Map (6)  Use a K-Map to simplify the following 3- variable minterm SOP expression: X = A B C + A B C + A B C + A B C + A B C X = B + AC  Answer: X = B + AC

On a 3 Variables K-Map  One cell requires 3 Variables  Two adjacent cells require 2 variables  Four adjacent cells require 1 variable  Eight adjacent cells is a 1

4 Variables K-Map Gray Code 00A B 01A B 11A B 10A B C D C D

4 Variables K-Map Gray Code 00A B 01A B 11A B 10A B C D C D B B A A C C D D D

Gray Code 00A B 01A B 11A B 10A B C D C D X = ABD + ABC + CD Now try it with Boolean reductions Simplify: Simplify: X = A B C D + A B C D + A B C D + A B C D + A B C D + A B C D

On a 4 Variables K-Map  One Cell requires 4 variables  Two adjacent cells require 3 variables  Four adjacent cells require 2 variables  Eight adjacent cells require 1 variable  Sixteen adjacent cells give a 1 or true

Simplify Simplify : Z = B C D + B C D + C D + B C D + A B C Gray Code 00A B 01A B 11A B 10A B C D C D Z = C + A B + B D

Simplify using K-Map (1) Firstly, change the circuit to an SOP expression

Y= A + B + B C + ( A + B ) ( C + D) Y = A B + B C + A B ( C + D ) Y = A B + B C + A B C + A B D Y = A B + B C + A B C A B D Y = A B + B C + (A + B + C ) ( A + B + D) Y = A B + B C + A + A B + A D + B + B D + AC + C D Simplify using K-Map (2) SOP expression How about standard SOP expression???

Gray Code 00A B 01A B 11A B 10A B C D C D Y = Simplify using K-Map (3)

K-Map POS Minimization

3 Variables K-Map (1) Gray Code AB C

3 Variables K-Map (2)

A B C D Variables K-Map (1)

4 Variables K-Map (2)

4 Variables K-Map (3)

Mapping a Standard SOP expression  Example : Answer : Mapping a Standard POS expression  Example : Using K-Map, convert the following standard POS expression into a minimum SOP expression Answer: Y = AB + AC or standard SOP: K-Map - Examples

K-Map with “Don’t Care” Conditions (1) Input Output Example : 3 variables with output “don’t care (X)”

4 variables with output “don’t care (X)” K-Map with “Don’t Care” Conditions (2)

“Don’t Care” Conditions  “Don’t Care” Conditions  Example: Determine the minimal SOP using K-Map: Answer: K-Map with “Don’t Care” Conditions (3)

Solution : AB CD X 1 0 X X Minimum SOP expression is CD AD BC

Exercise  Minimize this expression with a K-Map ABCD + ACD + BCD + ABCD

K-map POS & SOP Simplification Example: Simplify the Boolean function F (ABCD) =  (0,1,2,5,8,9,10) in (a) S-of-P (b) P-of-S Using the minterms (1’s) F (ABCD) = B’D’+B’C’+A’C’D Using the maxterms (0’s) and complimenting F Grouping as if they were minterms, then using De- Morgen’s theorem to get F. F’ (ABCD) = BD’+CD+AB F (ABCD) = (B’+D)(C’+D’)(A’+B’)

5 variable K-map (1)  5 variables -> 32 minterms, hence 32 squares required

5 variable K-map (2) Adjacent squares. E.g. square 15 is adjacent to 7,14,13,31 and its mirror square 11. The centre line must be considered as the centre of a book, each half of the K-map being a page The centre line is like a mirror with each square being adjacent not only to its 4 immediate neighbouring squares, but also to its mirror image.

5 variable K-Map (3) Example: Simplify the Boolean function F (ABCDE) =  (0,2,4,6,11,13,15,17,21,25,27,29,31) Soln: F (ABCDE) = BE+AD’E+A’B’E’

6 variable K-map  6 variables -> 64 minterms, hence 64 squares required