FLIPFLOPS.

Slides:



Advertisements
Similar presentations
Lecture on Flip-Flops.
Advertisements

Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
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.
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
ECE 3130 – Digital Electronics and Design Lab 5 Latches and Flip-Flops Fall 2012 Allan Guan.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
1 CSE370, Lecture 14 Lecture 14 u Logistics n Midterm 1: Average 90/100. Well done! n Midterm solutions online n HW5 due date delayed until this Friday.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
Latch Flip flop.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
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.
1 CSE370, Lecture 15 Lecture 15 u Logistics n HW5 due this Friday n HW6 out today, due Friday Feb 20 n I will be away Friday, so no office hour n Bruce.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
© BYU 11b MSFF Page 1 ECEn 224 MSFF Master/Slave Flip Flops.

Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
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.
Lab 12 :JK Flip Flop Fundamentals: Slide 2 Slide 3 JK Flip-Flop. JK Flip-Flop and waveform diagrams.
ECE 301 – Digital Electronics Brief introduction to Sequential Circuits and Latches (Lecture #14)
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
7. Latches and Flip-Flops Digital Computer Logic.
Digital Design: Sequential Logic Principles
CSE 140 Lecture 8 Sequential Networks
LATCHES AND FLIP-FLOPS
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Lab 08: SR Flip Flop Fundamentals:
LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
Summary Latch & Flip-Flop
ECE 3130 – Digital Electronics and Design
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
ECE 4110–5110 Digital System Design
FLIP FLOPS.
Flip-Flops SHAH KEVAL EN. NO.: EC DEPARTMENT,
Flip-Flop.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Yee-Wing Hsieh Steve Jacobs
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential logic circuits
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
Excitation Vectors Input Combinational Logic Memory Output States.
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
CSE 370 – Winter Sequential Logic - 1
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Dr. Clincy Professor of CS
Excitation Vectors Input Combinational Logic Memory Output States.
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
CSE 370 – Winter Sequential Logic-2 - 1
1) Latched, initial state Q =1
FLIP-FLOPS.
Flip-Flops.
Flip Flops Unit-4.
Chapter 5 Sequential Circuits.
SEQUENTIAL CIRCUITS __________________________________________________
Sequential Digital Circuits
Presentation transcript:

FLIPFLOPS

SR latch Cross-coupled NOR gates Can set (S=1, R=0) or reset (R=1, S=0) the output R S Q Q' S R Q 0 0 hold 0 1 0 1 0 1 1 1 disallow R Q S Reset Set

SR latch behavior R S Q Q' S R Q 0 0 hold 0 1 0 1 0 1 1 1 disallow Reset Hold Set Reset Set Race R S Q Q' 100

SR latch is glitch sensitive Static 0 glitches can set/reset latch Glitch on S input sets latch Glitch on R input resets latch R S Q Q'

State diagrams How do we characterize logic circuits? Combinational circuits: Truth tables Sequential circuits: State diagrams First draw the states States  Unique circuit configurations Second draw the transitions between states Transitions  Changes in state caused by inputs

Example: SR latch SR=10 R S Q Q' SR=00 SR=01 SR=00 SR=10 Q Q' 0 1 S R Q 0 0 hold 0 1 0 1 0 1 1 1 disallow SR=00 SR=00 SR=11 possible oscillation between states 00 and 11 (when SR=00) Q Q' 1 1

Observed SR latch behavior The 1–1 state is transitory Either R or S “gets ahead” Latch settles to 0–1 or 1–0 state ambiguously Race condition  non-deterministic transition Disallow (R,S) = (1,1) SR=00 SR=10 Q Q' 0 1 Q Q' 1 0 SR=01

D ("data") latch Output depends on clock Q CLK Input Output depends on clock Clock high: Input passes to output Clock low: Latch holds its output CLK D Qlatch

Making a D latch D CLK R Q S

D flip-flop Input sampled at clock edge Q CLK Input Input sampled at clock edge Rising edge: Input passes to output Otherwise: Flip-flop holds its output Flip-flops can be rising-edge triggered or falling-edge triggered CLK D Qff

Master-slave D-type flip-flop How to make into negative edge-triggered D-type flip-flop? D Q CLK Input Master D latch Output Slave D latch X

Latches versus flip-flops D Q CLK CLK D Qff Qlatch D Q CLK behavior is the same unless input changes while the clock is high

Terminology and notation Q CLK Input Output Rising-edge triggered D flip-flop D Q CLK Input Output Positive D latch D Q CLK Input Output Falling-edge triggered D flip-flop D Q CLK Input Output Negative D latch

How to make a D flip-flop? Edge triggering is difficult Label the internal nodes Draw a timing diagram Start with Clk=1 Q D Clk W Y X Z Q’

How to make a D flip flop? Falling edge-triggered flip-flop If Clk=1 then X=Y=0 and SR latch block holds previous values of Q,Q’, also Z=D’ and W=Z’=D. Q D Clk W Y X Z Q’ When Clk 0 then Y (set for SR latch block) becomes Z’=D and X (reset for SR latch block) becomes W’=D’ so Q becomes D. While Clk=0, if D switches then Z becomes 0 (because inputs to Z are D and D') and X and W hold their previous values and Y=X’=D as before.

T ("toggle") flip-flop Output toggles when input is asserted If T=1, then Q  Q' when CLK  If T=0, then Q  Q when CLK  CLK Q T > Input Input(t) Q(t) Q(t + t) 1