Topic7: Timing Hazards José Nelson Amaral

Slides:



Advertisements
Similar presentations
Minimization of Circuits
Advertisements

CS370 – Spring 2003 Hazards/Glitches. Time Response in Combinational Networks Gate Delays and Timing Waveforms Hazards/Glitches and How To Avoid Them.
ECE C03 Lecture 71 Lecture 7 Delays and Timing in Multilevel Logic Synthesis Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Glitches & Hazards.
Prof. Sin-Min Lee Department of Computer Science
ECE 3110: Introduction to Digital Systems
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic A: Flip-Flops José Nelson Amaral.
1 Combinational Logic Network design Chapter 4 (continued ….)
Boolean Algebra and Combinational Logic
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
Asynchronous Machines
EE365 Adv. Digital Circuit Design Clarkson University Lecture #6
Section 10.3 Logic Gates.
ECE C03 Lecture 61 Lecture 6 Delays and Timing in Multilevel Logic Synthesis Prith Banerjee ECE C03 Advanced Digital Design Spring 1998.
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.
Unit 8 Combinational Circuit Design and Simulation Using Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science.
Digital Logic Design Lecture # 7 University of Tehran.
Sahar Mosleh PageCalifornia State University San Marcos 1 Multiplexer, Decoder and Circuit Designing.
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
The covering procedure. Remove rows with essential PI’s and any columns with x’s in those rows.
Discrete Mathematics CS 2610 February 19, Logic Gates: the basic elements of circuits Electronic circuits consist of so-called gates connected.
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,
Glitches/Hazards and ALUs
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 5: Quine-McCluskey Method José Nelson Amaral.
Nonlinear & Neural Networks LAB. CHAPTER 8 Combinational Circuit design and Simulation Using Gate 8.1Review of Combinational Circuit Design 8.2Design of.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2002 Topic2: DeMorgan Laws José Nelson Amaral.
Lecture 11 Timing diagrams Hazards.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 4: Cost of Logic Circuits and Karnaugh Maps José Nelson Amaral.
CMPUT Computer Organization and Architecture I1 CMPUT229 - Fall 2002 Topic 2: Digital Logic Structure José Nelson Amaral.
ECE 171 Digital Circuits Chapter 9 Hazards Herbert G. Mayer, PSU Status 2/21/2016 Copied with Permission from prof. Mark PSU ECE.
IAY 0600 Digital Systems Design Timing and Post-Synthesis Verifications Hazards in Combinational Circuits Alexander Sudnitson Tallinn University of Technology.
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
EECE 320 L8: Combinational Logic design Principles 1Chehab, AUB, 2003 EECE 320 Digital Systems Design Lecture 8: Combinational Logic Design Principles.
©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.
IAY 0600 Digital Systems Design
Lecture 9 Topics Glitches and Hazards Types of Functions and Delays
Copied with Permission from prof. Mark PSU ECE
Lecture 11 Logistics Last lecture Today HW4 due on Wednesday PLDs
Chapter 4. Combinational Logic Design Principles
ECE 3110: Introduction to Digital Systems
SLIDES FOR CHAPTER 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
K-map: Product-of-Sums Minimization
Lecture 8 Combinational Network Design and Issues
Verification: Testbenches in Combinational Design
Boolean Algebra and Combinational Logic
Give qualifications of instructors: DAP
COMP211 Computer Logic Design Lecture 3. Combinational Logic 2
Topic1: Boolean Algebra José Nelson Amaral
Computer Architecture CST 250
332:437 Lecture 12 Finite State Machine Design
Hazard.
Lecture 4 Sums of Product Circuits Simplification
IAY 0800 Digitaalsüsteemide disain
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.
Lecture 13 Logistics Last lecture Today HW4 up, due on Wednesday PLDs
Example Question: Consider the expressions: (a) F = XY + XY'
Introduction to Digital Systems
Verification: Testbenches in Combinational Design
Hazard-free Karnaugh Map Minimisation
Chapter 3 Overview • Multi-Level Logic
Hazard-free Karnaugh Map Minimisation
Boolean Algebra and Gate Networks
ECE 331 – Digital System Design
Presentation transcript:

Topic7: Timing Hazards José Nelson Amaral CMPUT329 - Fall 2003 Topic7: Timing Hazards José Nelson Amaral CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Reading Section 4.5 (Wakerly Textbook) CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Hazard haz-ard (noun) A chance of being injured or harmed; danger: Space travel is full of hazards. A possible chance of danger: fire hazard. (tr.v.) To expose to danger or harm. (Middle English hasard), dice game, from Old French, possibly from Old Spanish azar, possibly Arabic az-zahr, the gaming die : al-, the + zahr, gaming die.] CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Circuit’s Behavior The steady-state behavior of a circuit is the value of the output after the inputs have been stable for a long time. The transient behavior of a circuit is the value of the output while (or soon after) the inputs change. The glitch is a (often undesirable) short pulse produced in the output during a transient phase. If a circuit has the possibility of producing a glitch, the circuit has a hazard. CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Static-1 Hazard A static-1 hazard is a set of two input combinations Xa and Xb such that: (i) Xa and Xb differ in only one input variable; (ii) both Xa and Xb produce a 1 output; but it is possible for a momentary 0 to appear in the output when the input transits from Xa to Xb or from Xb to Xa i.e., a static-1 hazard is a possibility of a 0 glitch when we expect a steady 1 output. CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Static-0 Hazard A static-0 hazard is a set of two input combinations Xa and Xb such that: (i) Xa and Xb differ in only one input variable; (ii) both Xa and Xb produce a 0 output; but it is possible for a momentary 1 to appear in the output when the input transits from Xa to Xb or from Xb to Xa i.e., a static-0 is a possibility of a 1 glitch when we expect a steady 0 output. CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Example Does this circuit have a hazard? If so, of what kind? 1 X XZ’ 1 0 Z’ Z 1 F 1 0 1 YZ Y 1 0 The hazard occurs in the transition from X,Y,Z = 111 to X,Y,Z = 110 Z Z’ YZ XZ’ F CMPUT 329 - Computer Organization and Architecture II

Static Hazards in Karnaugh Maps X Z F Y F = X•Z’ + Y•Z X Z Y 1 How can we identify a static-1 hazard in this Karnaugh map? 1 Two adjacent 1’s that are not in the same term cause a static-1 hazard. CMPUT 329 - Computer Organization and Architecture II

Static Hazards in Karnaugh Maps X Z F Y F = X•Z’ + Y•Z X Z Y How can we eliminate the hazard? 1 We can add one extra term to F. F = X•Z’ + Y•Z + X•Y 1 X•Y Consensus Term CMPUT 329 - Computer Organization and Architecture II

Static Hazards in Karnaugh Maps X Z F Y X F = X•Z’ + Y•Z X Z Y How can we eliminate the hazard? 1 We can add one extra term to F. F = X•Z’ + Y•Z + X•Y 1 X•Y Consensus Term CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Another Example W W 1 X Y Z F = W’•Z + X•Z’ + X’•W F = W’•Z + X•Z’ + X’•W 1 1 1 1 1 1 1 1 1 Z Y 1 1 1 1 1 1 1 1 1 X 1. Write minimal form for F 2. Identify static-1 hazards 3. Eliminate static-1 hazards CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Another Example W W F = W’•Z + X•Z’ + X’•W 1 1 1 1 1 1 1 1 1 1 Z 1 1 1 Z Y 1 1 1 1 Y 1 1 1 1 1 1 1 1 1 X X F = W’•Z + X•Z’ + X’•W + X•W’ 1. Write minimal form for F 2. Identify static-1 hazards 3. Eliminate static-1 hazards CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Another Example W W F = W’•Z + X•Z’ + X’•W 1 1 1 1 1 1 1 1 1 1 Z 1 1 1 Z Y 1 1 1 Y 1 1 1 1 1 1 1 1 1 1 X X F = W’•Z + X•Z’ + X’•W + X•W’ + W•Z’ 1. Write minimal form for F 2. Identify static-1 hazards 3. Eliminate static-1 hazards CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Another Example W W F = W’•Z + X•Z’ + X’•W 1 1 1 1 1 1 1 1 1 1 Z 1 1 1 Z Y 1 1 1 1 Y 1 1 1 1 1 1 1 1 1 X X F = W’•Z + X•Z’ + X’•W + X•W’ + W•Z’ + X’•Z 1. Write minimal form for F 2. Identify static-1 hazards 3. Eliminate static-1 hazards CMPUT 329 - Computer Organization and Architecture II

CMPUT 329 - Computer Organization and Architecture II Dynamic Hazards A dynamic hazard is the possibility of an output changing more than once as the result of a single transition. Dynamic hazards exist when there are multiple paths with different delays from the changing input to the changing output. Dynamic hazards do not occur in properly designed two level AND-OR or OR-AND circuits. PS: A two level AND-OR or OR-AND circuit is properly design if a variable and its complement are never input to the same first level gate. CMPUT 329 - Computer Organization and Architecture II

Dynamic Hazard Example W slow slower X Y 1 1 1 1 1 1 1 Z CMPUT 329 - Computer Organization and Architecture II

Dynamic Hazard Example W 1 1 slow slower X 1 0 Y 1 0 1 0 1 1 0 1 0 0 1 1 1 Z A dynamic hazard occurs when oscilation may occur when a single transition is expected. CMPUT 329 - Computer Organization and Architecture II