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:

Slides:



Advertisements
Similar presentations
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
Advertisements

COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Chapter 6 -- Introduction to Sequential Devices
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
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 Kuliah Rangkaian Digital Kuliah 8: Rangkaian Logika Sekuensial Teknik Komputer Universitas Gunadarma.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
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.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
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.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Synchronous Sequential Logic Chapter 5. Digital Circuits Sequential Circuits Combinational circuits contains no memory elements the outputs depends.
Chap 4. Sequential Circuits
ENG241 Digital Design Week #6 Sequential Circuits (Part A)
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Flip-Flops and Registers
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
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.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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 © 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.
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
1 Synchronous Sequential Logic Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered in practice.
Sequential logic circuits
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
Synchronous Sequential Logic Part 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.
A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S-R (Set-Reset) latch is the most basic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Dept. of Electrical Engineering
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.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
Synchronous Sequential Circuits
EKT 121 / 4 DIGITAL ELECTRONICS I
LECTURE 15 – DIGITAL ELECTRONICS
Synchronous Sequential Circuits
Chapter 5 – Sequential Circuits
FLIP-FLOPS.
Presentation transcript:

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: Which has the time sequence behavior: S = 0, R = 0 is forbidden as input pattern Q S (set) R (reset) Q 1101Now Q “remembers” Both go high 11??Unstable! Time

2 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Basic (NOR) S – R Latch Cross-coupling two NOR gates gives the S – R Latch: Which has the time sequence behavior: S (set) R (reset) Q Q

3 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Clocked S - R Latch Adding two NAND gates to the basic S - R NAND latch gives the clocked S – R latch: Has a time sequence behavior similar to the basic S-R latch except that the S and R inputs are only observed when the line C is high. C means “control” or “clock”. S R Q C Q

4 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Clocked S - R Latch (continued) The Clocked S-R Latch can be described by a table: The table describes what happens after the clock [at time (t+1)] based on: – current inputs (S,R) and – current state Q(t). S R Q Q C

5 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 D Latch Adding an inverter to the S-R Latch, gives the D Latch: Note that there are no “indeterminate” states! Q D Q(t+1) Comment No change Set Q Clear Q No Change C D Q Q D Q C Q

6 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Flip-Flops 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

7 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 The Latch Timing Problem In a sequential circuit, paths may exist through combinational logic: –From one storage element to another –From a storage element back to the same storage element The combinational logic between a latch output and a latch input may be as simple as an interconnect For a clocked D-latch, the output Q depends on the input D whenever the clock input C has value 1

8 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 The Latch Timing Problem (continued) Consider the following circuit: Suppose that initially Y = 0. As long as C = 1, the value of Y continues to change! The changes are based on the delay present on the loop through the connection from Y back to Y. This behavior is clearly unacceptable. Desired behavior: Y changes only once per clock pulse Clock Y C D Q Q Y

9 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 The Latch Timing Problem (continued) A solution to the latch timing problem is to break the closed path from Y to Y within the storage element The commonly-used, path-breaking solutions replace the clocked D-latch with: –a master-slave flip-flop –an edge-triggered flip-flop

10 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 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 with C = 1 The output is changed by the second latch with C = 0 The path from input to output is broken by the difference in clocking values (C = 1 and C = 0). The behavior demonstrated by the example with D driven by Y given previously is prevented since the clock must change from 1 to 0 before a change in Y based on D can occur. C S R Q Q C R Q Q C S R Q S Q S-R Master-Slave Flip-Flop

11 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Master-Slave FF Operation

12 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Master-Slave FF Operation

13 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Master-Slave FF Operation

14 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Flip-Flop Problem The change in the flip-flop output is delayed by the pulse width which makes the circuit slower or S and/or R are permitted to change while C = 1 –Suppose Q = 0 and S goes to 1 and then back to 0 with R remaining at 0 The master latch sets to 1 A 1 is transferred to the slave –Suppose Q = 0 and S goes to 1 and back to 0 and R goes to 1 and back to 0 The master latch sets and then resets A 0 is transferred to the slave –This behavior is called 1s catching

15 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Flip-Flop Solution 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.

16 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 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

17 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 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

18 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Edge-Triggered FF Operation

19 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Edge-Triggered FF Operation

20 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Edge-Triggered FF Operation

21 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Edge-Triggered FF Operation

22 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Master-Slave: Postponed output indicators Edge-Triggered: Dynamic indicator Standard Symbols for Storage Elements

23 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 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

24 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 t s - setup time t h - hold time t w - clock pulse width t px - propagation 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

25 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 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 the triggering pulse t h – minimum hold time for the inputs - 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