1 Digital Logic Design Week 5 Simplifying logic expressions.

Slides:



Advertisements
Similar presentations
BOOLEAN ALGEBRA. A Mathematical notation used to represent the function of the Digital circuit. A notation that allows variables & constants to have only.
Advertisements

Digital Circuits.
Prof. Sin-Min Lee Department of Computer Science
Boolean Algebra and Reduction Techniques
ECE 3110: Introduction to Digital Systems Simplifying Sum of Products using Karnaugh Maps.
ECE 301 – Digital Electronics Karnaugh Maps (Lecture #7) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
Digital Fundamentals Floyd Chapter 4 Tenth Edition

EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Computer Engineering (Logic Circuits) (Karnaugh Map)
Digital Fundamentals with PLD Programming Floyd Chapter 4
Computer Programming Skills Revision Prepared by: Ghader Kurdi.
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Boolean Algebra and Logic Simplification
Digital Logic and Design Vishal Jethva Lecture No. 10 svbitec.wordpress.com.
Digital Logic Chapter 4 Presented by Prof Tim Johnson
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
1 Simplification of Boolean Functions:  An implementation of a Boolean Function requires the use of logic gates.  A smaller number of gates, with each.
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
1 © 2015 B. Wilkinson Modification date: January 1, 2015 Designing combinational circuits Logic circuits whose outputs are dependent upon the values placed.
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
Circuit Minimization. It is often uneconomical to realize a logic directly from the first logic expression that pops into your head. Canonical sum and.
Computer Engineering (Logic Circuits) (Karnaugh Map)
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
LOGIC GATES & BOOLEAN ALGEBRA
CS1Q Computer Systems Lecture 7
Digital Logic Design Week 4 Boolean algebra. Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation.
CH41 Chapter 4 Boolean Algebra and Logic Simplification By Taweesak Reungpeerakul.
+ CS 325: CS Hardware and Software Organization and Architecture Gates and Boolean Algebra Part 3.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Boolean Algebra and Reduction Techniques
Karnaugh Mapping Digital Electronics. Karnaugh Mapping or K-Mapping This presentation will demonstrate how to Create and label two, three, & four variable.
Fundamentals of digital electronics Prepared by - Anuradha Tandon Assistant Professor, Instrumentation & Control Engineering Branch, IT, NU.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 4 © 2008 Pearson Education.
CS151 Introduction to Digital Design Chapter Map Simplification.
Sum-of-Products (SOP)
DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan mohd nor
Karnaugh Maps (K-Maps)
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
KARNAUGH MAP A Karnaugh map (K Map) is a pictorial method used to minimize boolean expressions without having to use boolean algebra theorems and equation.
C.S.Choy39 TERMINOLOGY Minterm –product term containing all input variables of a function in either true or complementary form Maxterm – sum term containing.
Logic Simplification-Using K-Maps
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.
Introduction to Digital Electronics Lecture 5: Function Minimisation.
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
K-maps and Decoders Prof. Sin-Min Lee Department of Computer Science.
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
CHAPTER 3 Simplification of Boolean Functions
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
Boolean Algebra & De Morgan's Theorems
Digital Logic and Design
Digital Circuits.
BASIC & COMBINATIONAL LOGIC CIRCUIT
Karnaugh Maps Topics covered in this presentation: Karnaugh Maps
ECE 331 – Digital System Design
Digital Fundamentals Floyd Chapter 4 Tenth Edition
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Analysis of Logic Circuits Example 1
Laws & Rules of Boolean Algebra
Digital Circuits.
Circuit Simplification and
Digital Circuits.
Presentation transcript:

1 Digital Logic Design Week 5 Simplifying logic expressions

2 Algebraic method – Standard forms (Algebraic way to represent any logic function) – Simplification using Boolean algebra K-Map method (Karnaugh maps) – 2, 3, 4 variable expressions – 5, 6 variable expressions (NOT) VEM (Variable entered mapping) (NOT) Simplifying logic expressions

3 Standard forms All Boolean expressions can be converted into either of two forms:  Sum-of-products (SOP) form  Product-of-sums (POS) form

4 Sum-of-products (SOP) Sum-of-products (SOP) expressions formed by summing (Boolean addition-ORing) product terms (ANDed terms). Example: AND gates form products OR gate forms the sum

5 Standard sum-of-products form Standard SOP expression All variables in the domain appear in each product term in the expression Example: A minterm is a product term involving all variables in the domain  Standard SOP expressions often called sum of minterms

6 Truth tables from standard SOP form Complete the truth table for X =  Place a 1 in output column for each input combination that makes X = 1  Place a 0 in remaining rows ABCX ABCX

7 Product-of-sums (POS) Product-of-sums (POS) expressions are sum terms “multiplied” together Examples: The following expressions are not in POS form: Remember: “multiplication” here means ANDed together

8 Product-of-sums (POS) Example: AND gate forms the product OR gates form sums

9 Standard product-of-sums form Standard POS expression All variables in the domain appear in each sum term in the expression Example: A maxterm is a sum term involving all variables in the domain  Standard POS expressions often called product of maxterms

10 Truth tables from standard POS form ABCX Complete the truth table for X =  Place a 0 in output column for each input combination that makes X = 0  Place a 1 in remaining rows ABCX

11 Standard expressions from a truth table  Four 1’s in output column, corresponding to minterms  Four 0’s in output column, corresponding to maxterms Find standard SOP and standard POS expressions for X ABCX

12 Algebraic method – Standard forms (Algebraic way to represent any logic function) – Simplification using Boolean algebra K-Map method (Karnaugh maps) – 2, 3, 4 variable expressions Simplifying logic expressions

13 Simplified Boolean expressions results in efficient hardware implementations  Simpler expressions → fewer gates → faster & uses less power Simplification using Boolean algebra applies  laws: commutative, associative, distributive  rules  A+1=1, A+0=A, A·A’=0, A+A=A, A+BC=(A+B)·(A+C), A’’=A, …  De Morgan’s theorem  (A·B)’=A’+B’(A+B)’=A’·B’ Also needs skill, persistence and often luck! Simplification using Boolean algebra

14 Sensors:  Oil pressureHIGH/NORMALA=1 : pressure HIGH  TemperatureHIGH/NORMALB=1 : temp. HIGH  Flow rateHIGH/NORMALC=1 : flow HIGH Output  AlarmON/OFFF=1 : alarm ON Alarm ON only when:  oil pressure is NORMAL, temperature is HIGH and flow is NORMAL, or  oil pressure is HIGH and flow or temperature is NORMAL, or  flow is HIGH and temperature is HIGH Example: alarm system

15 Alarm system: our first solution Logisim file Week05_1.circ in the course site

16 Alarm system: our simplified solution Week05_2.circ Alarm circuit doesn’t even need flow rate measurement!

17 Simplifying the solution RESULT: Boolean algebra simplification relies on: Laws, rules, theorems, skill and patience

18  Karnaugh-map (K-map) is organised as a matrix of squares, where  each square represents a minterm (ANDed variables, ex: AB’C)  adjacent squares always differ by just one literal (so that the unifying theorem may apply: a + a' = 1)  It is another way of representing truth table of a logic circuit  For 2-variable case (e.g.: variables a,b), the map can be drawn as: K-maps a b equivalent to: a b

19 You will have noticed that the order of binary bits above the box is not in the standard binary sequence (00, 01,10,11). It is arranged so that the values for adjacent columns vary by only a single bit (00, 01, 11, 10). This sequence is known as grey code and it is a key factor in the way Karnaugh maps work. K-maps

20 Using K-maps The Boolean expression can then be entered into the Karnaugh map Like a truth table, a 1 is entered into the grid to show when the Boolean expression is true.

21 Simplification using Karnaugh maps After Karnaugh map has been filled in for a given expression, simplification is a 2-step process: 1.Group the 1’s  Groups to enclose adjacent cells  Groups must be square or rectangular, and contain 1,2,4,8 or 16 cells  Goal is to:  Cover all 1’s at least once  Maximise size of groups  Minimise number of groups 2.Determine simplified SOP expression

22 22 of 13 Using a Karnaugh Map The next stage is to group 1s together. Loops should be drawn starting with the largest possible loop, and additional loops should then be drawn until all the 1s are included in a loop. Loops should always be made as large as possible, and adjacent 1s can be included into more than one loop. Adjacent 1s can be looped together in horizontal and vertical groups of 2, 4 or 8, but never diagonally. Single 1s should be looped by themselves. Since each loop results in a separate term, the smallest number of loops created will result in the simplest expression.

23 of 13 Using a Karnaugh Map Each group of 1s is a separate term in the final simplified expression that can be determined by inspection. The first loop in the example groups together 1s for both A and C irrespective of the state of B. The expression is therefore A.C The last loop in the example is for a single term, and so cannot be simplified. A.B.C The second loop groups together 1s for both A and B irrespective of the state of C. The expression is therefore A.B

24 From truth table to Karnaugh map A B C F

25 From truth table to Karnaugh map Draw the Karnaugh map for the expression defined by the following truth table ABCXminterms A’B’C 0101A’BC’ ABC’ 1111ABC

26 26 of 13 Groups of 1s can be grouped together as shown to get the following simplified equation. Here is a four-input problem and its associated Truth Table and Karnaugh map. Karnaugh Maps With More Variables