Hazard-free Karnaugh Map Minimisation

Slides:



Advertisements
Similar presentations
CS370 – Spring 2003 Hazards/Glitches. Time Response in Combinational Networks Gate Delays and Timing Waveforms Hazards/Glitches and How To Avoid Them.
Advertisements

Glitches & Hazards.
ECE 3110: Introduction to Digital Systems
Chapter 9 Asynchronous Sequential Logic 9-1 Introduction Introduction 9-2 Analysis Procedure Analysis ProcedureAnalysis Procedure 9-3 Circuits With Latches.
Based on slides by: Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 8 – Systematic Simplification.
1 Combinational Logic Network design Chapter 4 (continued ….)
Chapter 3 Simplification of Switching Functions. Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
ECE 331 – Digital System Design
Contemporary Logic Design Multi-Level Logic © R.H. Katz Transparency No Chapter # 3: Multi-Level Combinational Logic 3.3 and Time Response.
EECC341 - Shaaban #1 Lec # 8 Winter Combinational Logic Circuit Transient Vs. Steady-state Output Gate propagation delay: The time between.
Give qualifications of instructors: DAP
Chapter 3 Simplification of Switching Functions
EE365 Adv. Digital Circuit Design Clarkson University Lecture #6
CHAPTER 3 Digital Logic Structures
1 Exact Two-Level Minimization of Hazard-Free Logic with Multiple Input Changes Montek Singh Tue, Oct 16, 2007.

CS 151 Digital Systems Design Lecture 32 Hazards
A hazard is said to exist when a circuit has the possibility of producing such a glitch. 4.4 Timing Hazards ReturnNext Because of circuit delays, the transient.
EECC341 - Shaaban #1 Lec # 7 Winter Combinational Circuit Minimization Canonical sum and product logic expressions do not provide a circuit.
Unit 8 Combinational Circuit Design and Simulation Using Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science.
Unit 8 Combinational Circuit Design and Simulation Using Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science.
Simplifying Boolean Expressions Using K-Map Method
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Digital Logic Design Lecture # 7 University of Tehran.
KU College of Engineering Elec 204: Digital Systems Design
1 Simplification of Boolean Functions:  An implementation of a Boolean Function requires the use of logic gates.  A smaller number of gates, with each.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
Department of Computer Engineering
1 Digital Design: Time Behavior of Combinational Networks Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth,
EE 261 – Introduction to Logic Circuits
Optimization Algorithm
UM EECS 270 Spring 2011 – Taken from Dr.Karem Sakallah Logic Synthesis: From Specs to Circuits Implementation Styles –Random –Regular Optimization Criteria.
Unit 1 Minimization Techniques and Logic Gates. Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
Lecture 11 Timing diagrams Hazards.
Lecture 3. Combinational Logic 2 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
EECS 270 Lecture 10. K-map “rules” – Only circle adjacent cells (remember edges are adjacent!) – Only circle groups that are powers of 2 (1, 2,
ECE 171 Digital Circuits Chapter 9 Hazards Herbert G. Mayer, PSU Status 2/21/2016 Copied with Permission from prof. Mark PSU ECE.
Lecture 5: K-Map minimization in larger input dimensions and K-map minimization using max terms CSE 140: Components and Design Techniques for Digital Systems.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
Lecture 3. Combinational Logic #2 Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Logic Design.
©2010 Cengage Learning SLIDES FOR CHAPTER 8 COMBINATIONAL CIRCUIT DESIGN AND SIMULATION USING GATES Click the mouse to move to the next page. Use the ESC.
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
Digital Systems Design 1 Signal Expressions Multiply out: F = ((X + Y)  Z) + (X  Y  Z) = (X  Z) + (Y  Z) + (X  Y  Z)
©2010 Cengage Learning SLIDES FOR CHAPTER 8 COMBINATIONAL CIRCUIT DESIGN AND SIMULATION USING GATES Click the mouse to move to the next page. Use the ESC.
Lecture 9 Topics Glitches and Hazards Types of Functions and Delays
Lecture 11 Logistics Last lecture Today HW4 due on Wednesday PLDs
Topic7: Timing Hazards José Nelson Amaral
Plotting functions not in canonical form
Lecture 8 Combinational Network Design and Issues
COMP211 Computer Logic Design Lecture 3. Combinational Logic 2
Introduction to Sequential Logic Design
Hazard.
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
IAY 0800 Digitaalsüsteemide disain
BASIC & COMBINATIONAL LOGIC CIRCUIT
Overview Last Lecture Conversion of two-level logic to NAND or NOR forms Multilevel logic AOI and OAI gates Today Timing and hazards Multiplexers and demultiplexers.
Digital Logic & Design Dr. Waseem Ikram Lecture 12.
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
Lecture 13 Logistics Last lecture Today HW4 up, due on Wednesday PLDs
CH7 Multilevel Gate Network
Optimization Algorithm
CSE 370 – Winter Combinational Implementation - 1
CSE 370 – Winter Sequential Logic - 1
Introduction to Digital Systems
COE 202: Digital Logic Design Combinational Logic Part 3
Overview Part 2 – Circuit Optimization
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Chapter 3 Overview • Multi-Level Logic
Hazard-free Karnaugh Map Minimisation
Presentation transcript:

Hazard-free Karnaugh Map Minimisation Combinational Logic Fundamentals - Hazard (Supplement note ) Hazard-free Karnaugh Map Minimisation Objective: Analyses logic design for glitch-free operation

Engineers must often take account of non-idealities in logic devices that cause problems in minimum cost logic circuit. One serious problem is caused by signal delays in the components used to implement the design. This is most critical for the inverters that may be used at the input of 2-level AND/OR or OR/AND topologies. Z B A A Z d IDEAL INVERTER REAL INVERTER A A 1 1 B 1 B 1 Z 1 d B  A’ B  A’; Z=B=A’ ONLY in steady state

Example: In an ideal circuit F should remain 1 for B=0, C=1, and A : 1,0,1. The nonideal inverters produce a glitch when the input changes from 1-0, however. BC A B C F Z 101 1 X Y 00 01 11 10 1 A F = AB’ + A’C A Z X Y F glitch d

Definitions: A logic hazard is a condition under which a combinational circuit is susceptible to transient output error as a result of a change in input. Definitions: A static 1 (0) hazard is a condition under which a combinational circuit outputs a temporary logic 0 (1) when its output should have remained at logic 1 (0) in response to a change in one input variable. Definitions: A dynamic hazard is a condition under which a combinational circuit output alternates between 0 and 1 at least once before settling to its final steady state in response to a change in one input variable. Static 1 Static 0 Dynamic Combinational circuit outputs are functions only of the present circuit inputs Sequential circuit outputs are functions of present as well as past circuit inputs i.e. the circuit has memory

Circuit with Logic Hazard Hazards may or may not deleterious to circuit operation: They are deleterious if the network to which the circuit with a hazard is connected is fast enough to perceive the output glitch as a valid input transition on which action is to be taken. An example is the clock input of a sequential logic device: Logic counter QDQCQBQAQDQCQBQA+1 On each positive transition of CLK “positive edge triggered” Circuit with Logic Hazard CLK 1 CLR LD 1 P T The glitch is of nanosecond duration and is therefore not observed by a human observer but does appear as a “clock tick” to the counter. 74LS163 D QD QC QB QA

For now we will only analyse situations where hazards are induced by a change in only one input. Rationale: Glitches are unavoidable when attempts are made to change >1 input simultaneously (a pathological situation). In the case of two inputs, for example, one signal will change before the other with probability 1. Engineering reliability is compromised by the fact that we may never know which one changes first. BC 00 01 11 10 1 BC 00 01 11 10 1 A A F = AB’ + A’C no glitch Consider transition: ABC:101011. Possible transition paths: ABC: 101011 ABC: 101001 011 (A “faster”) ABC: 101111 011 (B “faster”) BC 00 01 11 10 1 A glitch

In fact….. The two level AND/OR (or NAND/NAND) topology is susceptible to static-1 hazards but NOT to static 0 hazards The two level OR/AND (NOR/NOR) topology is susceptible to static-0 hazards but NOT to static 1 hazards The two level OR/AND (NOR/NOR) and OR/AND (NOR/NOR) topologies are NOT susceptible to dynamic hazards

Static 1 hazards can be eliminated by ensuring that all adjacent minterms are covered by a common product term. NOTE: This means that minimum logic may require the addition of extra product terms to eliminate hazards Rationale: A glitch can NEVER be experienced when moving between minterms covered by one product term. This is because the corresponding product term inputs are fixed over the minterms it covers; by definition only those variables not included in the product term (i.e. those eliminated) can be varied. A B C F Z 101 1 X Y BC 00 01 11 10 1 A F = AB’ + A’C For ABC: 100101 only C changes. The transition occurs over cells covered by the product term AB’ which maintains output 1, keeping F at 1

Minimum Hazard-free design (AND/OR) Design the minimum logic realisation as before, selecting the minimum number of prime implicants to cover the 1-cells Identify on the Kmap, all the adjacent minterms that are not covered by a common prime implicant. Add as few extra prime implicants as possible to cover these adjacent pairs PIs: EPIs: Minimum Cover: Hazard-free minimum: Example CD 00 01 11 10 1 AB