© 2003-2008 BYU 11b MSFF Page 1 ECEn 224 MSFF Master/Slave Flip Flops.

Slides:



Advertisements
Similar presentations
Lecture on Flip-Flops.
Advertisements

Review for Exam 2 Using MUXs to implement logic
EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Sequential Circuits.
Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Edge Triggered Flip Flops (extended slides). Level-Sensitive Flip-Flop Level-sensitive flip-flop (also called a latch) Q changes whenever clock is high.
BR 8/991 Sequential Systems A combinational system is a system whose outputs depends only upon its current inputs. A sequential system is a system whose.
1 Fundamentals of Computer Science Sequential Circuits.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
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.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
ECE 424 – Introduction to VLSI Design Emre Yengel Department of Electrical and Communication Engineering Fall 2014.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
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.
EE 4271 VLSI Design, Fall 2010 Sequential Circuits.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
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.
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.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip-flops. Outline  Edge-Triggered Flip-flops  S-R Flip-flop  D Flip-flop  J-K Flip-flop  T Flip-flop  Asynchronous Inputs.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
ENG241 Digital Design Week #6 Sequential Circuits (Part A)
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
JK Flip-Flop. JK Flip-flop The most versatile of the flip-flops Has two data inputs (J and K) Do not have an undefined state like SR flip-flops – When.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
© BYU 13 COUNTERS Page 1 ECEn 224 COUNTERS Counters Transition Tables Moore Outputs Counter Timing.
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)
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.
Sequential logic circuits
D Flip Flop. Also called: Delay FF Data FF D-type Latches ‘Delayed 1 Clock Pulse’
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Dept. of Electrical Engineering
LATCHES AND FLIP-FLOPS
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
LATCHED, FLIP-FLOPS,AND TIMERS
ECE 3130 – Digital Electronics and Design
Lecture 8 Dr. Nermi Hamza.
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
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
FLIP FLOPS.
Flip Flops.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Flip-FLops and Latches
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential logic circuits
Flip-FLops and Latches
Flip-FLops and Latches
1) Latched, initial state Q =1
FLIP-FLOPS.
Flip-Flops.
Flip-FLops and Latches
Sequential Digital Circuits
FLIPFLOPS.
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

© BYU 11b MSFF Page 1 ECEn 224 MSFF Master/Slave Flip Flops

© BYU 11b MSFF Page 2 ECEn 224 A Master/Slave Flip Flop (D Type) Gated D latch (master)Gated D latch (slave) D Q Gate D Q Gate D GATE Q Q1 Either: The master is loading (the master in on) or The slave is loading (the slave is on) But never both at the same time…

© BYU 11b MSFF Page 3 ECEn 224 DFF Timing Gate D Q1 Q Master Loads Slave Loads time D Q Gate D Q Gate D GATE Q Q1

© BYU 11b MSFF Page 4 ECEn 224 Output Changes in Response to Falling Clock Gate D Q1 Q Master Loads Slave Loads time D Q Gate D Q Gate D GATE Q Q1

© BYU 11b MSFF Page 5 ECEn 224 DFF Detailed Schematic D CLK Q Q’ Master latch (D)Slave latch (SR) Usually call the gate “clock”

© BYU 11b MSFF Page 6 ECEn 224 A Falling Edge Triggered DFF D CLK Q Q’ CLK D Q Edge-triggered Falling edge triggered

© BYU 11b MSFF Page 7 ECEn 224 Oscillator (Toggle Circuit) Operation Q CLK time QD D Q

© BYU 11b MSFF Page 8 ECEn 224 Rising Edge Triggered DFF Schematic D CLK Q Q’ D Q CLK Edge-triggered Rising edge triggered

© BYU 11b MSFF Page 9 ECEn 224 Oscillator (Toggle Circuit) Operation Q CLK time CLK QD D Q

© BYU 11b MSFF Page 10 ECEn 224 D Flip Flop Transition Table Q+ = D No clock shown since it is edge triggered (assumed)

© BYU 11b MSFF Page 11 ECEn 224 Falling vs. Rising Edge Triggered D Q D CLK Q fall CLK Q rise CLK D Q rise Q fall

© BYU 11b MSFF Page 12 ECEn 224 Alternative Flip Flops T JK

© BYU 11b MSFF Page 13 ECEn 224 Toggle Flip Flop T Q CLK QT Q+ = T’Q + TQ’ = T + Q Clock edge is assumed in this transition table…

© BYU 11b MSFF Page 14 ECEn 224 Toggle Flip Flop T Q CLK QT Q+ = T’Q + TQ’ = T + Q D Q T Q CLK An oscillator with an enable input (T)

© BYU 11b MSFF Page 15 ECEn 224 Toggle Flip Flop Q T CLK

© BYU 11b MSFF Page 16 ECEn 224 JK Flip Flop J Q K CLK QJ K Q+ = K’Q + JQ’ Kind of a cross between a SR FF and a T FF

© BYU 11b MSFF Page 17 ECEn 224 JK Flip Flop Q J CLK K

© BYU 11b MSFF Page 18 ECEn 224 Why Alternative FF’s? With discrete parts (TTL family) –JK or T FF’s could reduce gate count for the input forming logic –Extensively used With VLSI IC’s and FPGA’s –JK or T FF’s must be built from DFF+gates –Larger, slower than a DFF –Not used

© BYU 11b MSFF Page 19 ECEn 224 Flip Flops With Additional Control Inputs

© BYU 11b MSFF Page 20 ECEn 224 D CLK Q Q’ What is this? ???

© BYU 11b MSFF Page 21 ECEn 224 CLK What is this? Enable A falling edge triggered, D-type FF with enable Master only loads when CLK = Enable = 1 D Q Q’

© BYU 11b MSFF Page 22 ECEn 224 CLK What is this? ??? D Q Q’

© BYU 11b MSFF Page 23 ECEn 224 CLK What is this? Set A falling edge triggered, D-type FF with an asynchronous set If Set=1 then Q → 1, regardless of CLK or D D Q Q’

© BYU 11b MSFF Page 24 ECEn 224 CLK What is this? ??? D Q Q’

© BYU 11b MSFF Page 25 ECEn 224 CLK What is this? A falling edge triggered, D-type FF with a synchronous set If Set=1 then Q → 1 on the next falling edge of the clock, regardless of D Set D Q Q’

© BYU 11b MSFF Page 26 ECEn 224 Flip Flops With Additional Control Inputs A variety of FF’s have been made over the years They contain combinations of these inputs: –Enable/load –Set –Reset/clear The Set and Reset can be either: –Asynchronous (independent of CLK) –Synchronous (work only on CLK edge)

© BYU 11b MSFF Page 27 ECEn 224 Flip Flop Timing Characteristics

© BYU 11b MSFF Page 28 ECEn 224 Clock-to-Q Time ( t CLK  Q ) CLK t CLK  Q = t NOT + t AND + 2 x t NOR The output does not change instantaneously… D Q Q’

© BYU 11b MSFF Page 29 ECEn 224 t CLK  Q CLK D Q t CLK  Q time

© BYU 11b MSFF Page 30 ECEn 224 Setup Time ( t setup ) D CLK Q Q’ t setup = t NOT + t AND + 2 x t NOR The input has to get there early enough to set the master latch before the clock turns off…

© BYU 11b MSFF Page 31 ECEn 224 t setup CLK D Q t setup time

© BYU 11b MSFF Page 32 ECEn 224 Setup Time ( t setup ) D CLK Q Q’ Same setup time as before

© BYU 11b MSFF Page 33 ECEn 224 Setup Time ( t setup ) D CLK Q Q’ Clock is delayed through the NOT gate

© BYU 11b MSFF Page 34 ECEn 224 CLK Q Time CLK inv D t setup-old t not Rising Edge FF Setup Time (t SETUP ) Falling-edge setup time

© BYU 11b MSFF Page 35 ECEn 224 CLK Q Time CLK inv D t setup-old t not t setup Rising Edge FF Setup Time (t SETUP )

© BYU 11b MSFF Page 36 ECEn 224 Falling Edge Hold Time ( t hold ) D CLK Q Q’ t hold = 0ns (AND gates turn off immediately) You have to keep the old D value there until the AND gates are shut off… (but no longer)

© BYU 11b MSFF Page 37 ECEn 224 Rising Edge Hold Time ( t hold ) D CLK Q Q’ t hold = t NOT You have to keep the old D value there until the AND gates are shut off…

© BYU 11b MSFF Page 38 ECEn 224 Rising Edge Hold Time ( t hold ) CLK D Q t hold = t NOT time Clock edgeAND gate turns off, D can now change

© BYU 11b MSFF Page 39 ECEn 224 Flip Flop Timing CLK D Q t setup t hold t CLK  Q time

© BYU 11b MSFF Page 40 ECEn 224 Timing of a Synchronous System CLK D Q CLK D Q Input Forming Logic Input Forming Logic time QD CLK Q D t CLK  Q t IFL t SETUP t CYCLE >= t CLK  Q + t IFL + t SETUP

© BYU 11b MSFF Page 41 ECEn 224 D Q Example of a Synchronous System D Q +1 Circuit 4 CLK 44 CNT = … … One transition per clock edge…