Lecture 13 ES 210 Latches and Flip-Flops Jack Ou, Ph.D.

Slides:



Advertisements
Similar presentations
Flip-Flops Basic concepts. A. Yaicharoen2 Flip-Flops A flip-flop is a bi-stable device: a circuit having 2 stable conditions (0 or 1) A flip-flop circuit.
Advertisements

1 Lecture 16 Timing  Terminology  Timing issues  Asynchronous inputs.
Changes in input values are reflected immediately (subject to the speed of light and electrical delays) on the outputs Each gate has an associated “electrical.
11/12/2004EE 42 fall 2004 lecture 311 Lecture #31 Flip-Flops, Clocks, Timing Last lecture: –Finite State Machines This lecture: –Digital circuits with.
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
Edge Triggered Flip Flops (extended slides). Level-Sensitive Flip-Flop Level-sensitive flip-flop (also called a latch) Q changes whenever clock is high.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Flip-Flops, Registers, Counters, and a Simple Processor
Digital Logic Design Lecture # 17 University of Tehran.
1 Sequential Systems A combinational system is a system whose outputs depend only upon its current inputs. A sequential system is a system whose outputs.
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
Nonlinear & Neural Networks LAB. CHAPTER 11 LATCHES AND FLIP-FLOPS 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered D Flip-Flop.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
Lecture 6 CES 522 Latches and Flip-Flops Jack Ou, Ph.D.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
CSE 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Timing in Sequential circuits – Stabilization time of a latch Assume that: t hl,1 = t lh,1 = t hl,2 = t lh,2 = 1 time unit 1 2.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
11/15/2004EE 42 fall 2004 lecture 321 Lecture #32 Registers, counters etc. Last lecture: –Digital circuits with feedback –Clocks –Flip-Flops This Lecture:
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Flip-Flops Section 4.3 Mano & Kime. D Latch Q !Q CLK D !S !R S R X 0 Q 0 !Q 0 D CLK Q !Q Note that Q follows D when the clock in high, and.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
Lecture 13 Flip-Flops Section 5.4. Schedule 3/10MondayLatches (1) /12WednesdayFlip-flops5.4 3/13ThursdayFlip-flops, D-latch 3/17MondaySpring break.
Test #2 Combinational Circuits – MUX Sequential Circuits – Latches – Flip-flops – Clocked Sequential Circuits – Registers/Shift Register – Counters – Memory.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Lecture 14 Flip-Flops Section Schedule 3/24MondayAnalysis of clocked sequential circuit (1),5.5 3/26WednesdayAnalysis of clocked sequential circuit.
COE 202: Digital Logic Design Sequential Circuits Part 1
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
BR 8/991 DFFs are most common Most programmable logic families only have DFFs DFF is fastest, simplest (fewest transistors) of FFs Other FF types (T, JK)
Basic Concepts of Sequential Circuits Section Lecture 01.
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
© BYU 11b MSFF Page 1 ECEn 224 MSFF Master/Slave Flip Flops.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
LECTURE X CH 5 CONTINUED JK and Master Slave Flip Flops.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EE 466/586 VLSI Design Partha Pande School of EECS Washington State University
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 8. D-type Flip-Flop Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
UNIT 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in the book includes: Objectives.
LATCHES AND FLIP-FLOPS
ECE 3130 – Digital Electronics and Design
Flip-FLops and Latches
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
Flip Flops.
Digital Design Lecture 9
FLIP FLOPS.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip-FLops and Latches
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Flip-FLops and Latches
Flip-FLops and Latches
Flip-FLops and Latches
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Flip Flops Unit-4.
Flip-FLops and Latches
Presentation transcript:

Lecture 13 ES 210 Latches and Flip-Flops Jack Ou, Ph.D.

Using a Latch as a Memory Element Caution for a D latch: once a clock enables a D latch, the output changes as soon as the input changes – this is not desirable if you do not want the output to change continuously and all the latches use a common clock.

Uses of Flip-flops

D Flip-Flop

Negative Edge triggered D Flip-Flop Clk=0 0 1 Q=Y hold

Negative Edge triggered D Flip-Flop Clk=1 1 0 Y=D hold

Negative Edge Triggered D Flip- Flop CK of latch 1 CK of latch 2 OUT=X Y=D 2: Hold 1: Track 1:hold 2:track 1 2 1:hold 2:track Q=Y Not enough time for D→Y →Q Q will hold steady The value that is produced at the output of the flip-flop is the value that was stored in master stage immediately before the negative edge Occurred.

Positive Edge D-Flop 1 2 CK of latch 2 CK of latch 1 X X=IN OUT=X 1: Hold 2: Track 2:hold 1:track 2:hold 1:track

Timing Diagram

Definition Setup time: the time that the incoming data must be stable before the clock arrives Hold time: the length of time that the data remains stable after the clock arrives for proper operation If the data is stable before the setup time and continues to be stable after the hold time, the flop will work properly. If the data arrives within the period designated by the setup and hold times, the flop may or may not capture the correct value.

CLK-Q The delay from the time that the clock arrives to the point that the output stabilizes. In reality the data must arrive at the setup time before the clock hits and the output is valid after the CLK-Q delay.

Question How would you change a negative edge triggered flip-flop to a positively edge triggered flip-flop?

D-Type Positive Edge Triggered Flip-Flop (CLK=0) CLK =0, maintain the present state

D-Type Positive Edge Triggered Flip-Flop 0 0→ → 0 Q changes D=0 as Clk=0→ 1

D-Type Positive Edge Triggered Flip-Flop 1 0→ 1 1 → 0 1 → 1 Q changes D=1 as Clk=0→ 1

D-Type Positive Edge Triggered Flip-Flop 0 → 1 1 S The flip-flop is unresponsive to changes in D 1 1 D=0→ 1 as Clk=1 S’ Please explore different possible value of S on your own. This will work even for S=R=1 and S=R=0.

Symbol of D Flip-Flops

reset and preset When power is first turned on, the state of the flip-flops is unknwon. – Reset is used to initialize the output to a 0. – Preset is used to initialize the output to a 1.

Reset Feature

D Flip-flop with reset Typo in the book. Should be 1 instead.

JK Flip-Flops D=JQ’+K’Q The next value of D is determined by JQ’+KQ. At the rising edge of D Flip-flop, Q is updated with the value of D. Positive edge D flip-flop

D=JQ’+K’Q J=1,K=1→D=Q’ J=0, K=0 →D=Q J=0, K=1 →D=0 J=1, K=0 →D=Q’+Q=1

Differences Between a D Flip- Flop and JK Flip-Flop

T Flip-Flop

T Flip-Flop from D Flip-Flop D=TQ’+T’Q If T=1, D=Q’ If T=0, D=Q. Q is updated with D at the next rising edge.

DFF with reset

Phase Frequency Detector

Delay B by 10 ns

Delay A by 10 ns

Clk_A=20 MHz, Clk_B=21 MHz

Clk_A=21 MHz, Clk_B=20 MHz

Clk_A=20 MHz and Clk_B=20 MHz