Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.

Slides:



Advertisements
Similar presentations
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
Advertisements

Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Computer Architecture CS 215
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Basic (NAND) S – R Latch “Cross-Coupling” two NAND gates gives the S -R Latch:
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
Overview Part 1 - Storage Elements and Analysis
Overview Part 1 - Storage Elements and Analysis
1 CS 151: Digital Design Chapter 5: Sequential Circuits 5-3: Flip-Flops I.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
CPEN Digital System Design Chapter 5 Sequential Circuits Storage Elements and Sequential Circuit Analysis C. Gerousis © Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Logic and Computer.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Chapter 10 Flip-Flops and Registers Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. William Kleitz.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Chapter 6 –Selected Design Topics Part 2 – Propagation Delay and Timing Logic and Computer Design Fundamentals.
Digital Logic Design Lecture 23. Announcements Homework 8 due Thursday, 11/20 Exam 3 coming up on Tuesday, 11/25.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 2 – Chapter.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 6 –Selected Design Topics Part 3 – Asynchronous.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 4 Technology.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
1 CSE370, Lecture 16 Lecture 19 u Logistics n HW5 is due today (full credit today, 20% off Monday 10:29am, Solutions up Monday 10:30am) n HW6 is due Wednesday.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
COE 202: Digital Logic Design Sequential Circuits Part 1
Overview Part 1 Part 2 Sequential Circuit Design
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
CS 151: Digital Design Chapter 5: Sequential Circuits 5-3: Flip-Flops II.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 3 – Chapter.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 6 – Selected Design Topics Part 1 – The.
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CENG 241 Digital Design 1 Lecture 7 Amirali Baniasadi
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Edge-Triggered FF Operation.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Lecture 3 – Binary Arithmetic
EE2174: Digital Logic and Lab
Lecture 26 – Hardwired and Microprogrammed Control
Overview Part 1 - Registers, Microoperations and Implementations
Lecture 4 – Binary Logic and Logic Gates
Presentation transcript:

Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems Fundamentals Lecture 19 – Flip-Flops

Chapter 6 - Part 1 2 Overview  The latch timing problem  Master-slave flip-flop  Edge-triggered flip-flop  Standard symbols for storage elements  Direct inputs to flip-flops  Flip-flop timing

Chapter 6 - Part 1 3 The Latch Timing Problem  In a sequential circuit, paths may exist through combinational logic: From one latch to another From a latch back to its input (feedback path)  What if the path is very fast? E.g. just a wire or a single gate  When clock is high, latch is transparent Feedback reaches input before clock goes low Can lead to oscillating behavior

Chapter 6 - Part 1 4 The Latch Timing Problem (continued)  Consider the following circuit:  Suppose that initially Y = 0.  When C = 1, Y continues to change!  Inverter in feedback path causes oscillation  This behavior is clearly unacceptable.  Desired behavior: Y changes only once per clock pulse Clock Y C D Q Q Y

Chapter 6 - Part 1 5 The Latch Timing Problem (continued)  A solution to the latch timing problem is to break the feedback path  The commonly-used, path-breaking solutions replace the clocked D-latch with: a master-slave flip-flop an edge-triggered flip-flop

Chapter 6 - Part 1 6  Consists of two clocked S-R latches in series with the clock on the second latch inverted  The input is observed by the first latch when C = 1  The output is changed by the second latch with C = 0  Only one latch is transparent at any time Feedback path is blocked C S R Q Q C R Q Q C S R Q S Q S-R Master-Slave Flip-Flop

Chapter 6 - Part 1 7 Flip-Flop Problem  If S and/or R are change while C = 1 Short pulse is “caught” by master S/R latch  1s Catching  Not what we want or expect

Chapter 6 - Part 1 8 Hazards in Combinational Logic  Not all delay paths are balanced Output takes on one value, then another Ultimately it settles to “right” answer  Hazards can cause 1s catching  Example: 3-bit carry-propagate adder, S S2S2 C1C1 C2C2 Unexpected Pulse in S2

Chapter 6 - Part 1 9 Flip-Flop Solution  Option 1: Guarantee latch inputs settled when clock high Can only use half of clock cycle to evaluate (!)  Option 2: Use edge-triggering instead of master-slave  An edge-triggered flip-flop ignores the pulse while it is at a constant level and triggers only during a transition of the clock signal  Edge-triggered flip-flops can be built directly at the electronic circuit level, or  A master-slave D flip-flop which also exhibits edge-triggered behavior can be used.

Chapter 6 - Part 1 10 Edge-Triggered D Flip-Flop  The edge-triggered D flip-flop is the same as the master- slave D flip-flop  It can be formed by: Replacing the first clocked S-R latch with a clocked D latch or Adding a D input and inverter to a master-slave S-R flip-flop  The delay of the S-R master-slave flip-flop can be avoided since the 1s-catching behavior is not present with D replacing S and R inputs  The change of the D flip-flop output is associated with the negative edge at the end of the pulse  It is called a negative-edge triggered flip-flop C S R Q Q C Q Q C D Q D Q

Chapter 6 - Part 1 11 Positive-Edge Triggered D Flip-Flop  Formed by adding inverter to clock input  Q changes to the value on D applied at the positive clock edge within timing constraints to be specified  Our choice as the standard flip-flop for most sequential circuits C S R Q Q C Q Q C D Q D Q

Chapter 6 - Part 1 12  Master-Slave: Postponed output indicators  Edge-Triggered: Dynamic indicator Standard Symbols for Storage Elements

Chapter 6 - Part 1 13 Direct Inputs  At power up or at reset, all or part of a sequential circuit usually is initialized to a known state before it begins operation  This initialization is often done outside of the clocked behavior of the circuit, i.e., asynchronously.  Direct R and/or S inputs that control the state of the latches within the flip-flops are used for this initialization.  For the example flip-flop shown 0 applied to R resets the flip-flop to the 0 state 0 applied to S sets the flip-flop to the 1 state D C S R Q Q

Chapter 6 - Part 1 14  t s - setup time  t h - hold time  t w - clock pulse width  t px - propa- gation delay t PHL - High-to- Low t PLH - Low-to- High t pd - max (t PHL, t PLH ) t s t h t p-,min t p-,max t wH ≥ t wH,min t wL ≥ t wL,min C D Q (b) Edge-triggered (negative edge) t h t s t p-,min t p-,max t wH ≥ t wH,min t wL ≥ t wL,min C S / R Q (a) Pulse-triggered (positive pulse) Flip-Flop Timing Parameters

Chapter 6 - Part 1 15 Flip-Flop Timing Parameters (continued)  t s - setup time Master-slave - Equal to the width of the triggering pulse Edge-triggered - Equal to a time interval that is generally much less than the width of the triggering pulse  t h - hold time - Often equal to zero  t px - propagation delay Same parameters as for gates except Measured from clock edge that triggers the output change to the output change

Chapter 6 - Part 1 16 Summary  The latch timing problem  Master-slave flip-flop  Edge-triggered flip-flop  Standard symbols for storage elements  Direct inputs to flip-flops  Flip-flop timing

Chapter 6 - Part 1 17 Terms of Use  © 2004 by Pearson Education,Inc. All rights reserved.  The following terms of use apply in addition to the standard Pearson Education Legal Notice.Legal Notice  Permission is given to incorporate these materials into classroom presentations and handouts only to instructors adopting Logic and Computer Design Fundamentals as the course text.  Permission is granted to the instructors adopting the book to post these materials on a protected website or protected ftp site in original or modified form. All other website or ftp postings, including those offering the materials for a fee, are prohibited.  You may not remove or in any way alter this Terms of Use notice or any trademark, copyright, or other proprietary notice, including the copyright watermark on each slide.  Return to Title Page Return to Title Page