1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.

Slides:



Advertisements
Similar presentations
Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Advertisements

Give qualifications of instructors: DAP
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.
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
Circuits require memory to store intermediate data
ECE 3130 – Digital Electronics and Design Lab 5 Latches and Flip-Flops Fall 2012 Allan Guan.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
INTRODUCTION TO SEQUENCIAL CIRCUIT
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Latches Module M10.1 Section 7.1. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
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.
11/10/2004EE 42 fall 2004 lecture 301 Lecture #30 Finite State Machines Last lecture: –CMOS fabrication –Clocked and latched circuits This lecture: –Finite.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Latches Lecture L8.1 Section 7.1 – Book Sect. 8.1– Handout.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Latches and Flip-Flops Discussion D4.1 Appendix J.
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.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Lecture #23 Page 1 ECE 4110– Sequential Logic Design Lecture #23 Agenda 1.Latches and Flip-Flops Review Announcements 1.HW #11assigned.
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 FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
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.
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.
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.
1 Synchronous Sequential Logic Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered in practice.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential logic circuits

Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
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.
CSE 140: Components and Design Techniques for Digital Systems Lecture 7: Sequential Networks CK Cheng Dept. of Computer Science and Engineering University.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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.
CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered.
©2010 Cengage Learning SLIDES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
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.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Digital Design: Sequential Logic Principles
CSE 140 Lecture 8 Sequential Networks
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Flip Flops.
Digital Design Lecture 9
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Sequential logic circuits
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
CSE 370 – Winter Sequential Logic - 1
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
FLIPFLOPS.
Presentation transcript:

1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams

2 Example from last time Door combination lock  Inputs: Sequence of numbers, reset, new  Outputs: Door open/close  Memory: Must remember combination  Memory: Must remember current state

3 Feedback Example: Two inverters can hold a bit (as long as power is applied)  What is missing? How do we change the stored bit? How do we store information? "0" "1" "stored bit"

4 How do we store information? Storing a new memory  Temporarily break the feedback path "remember" "load" "data" "stored bit"

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

6 SR latch behavior R S Q Q' 100 Reset Hold SetResetSet Race R S Q Q' SRQ 00hold disallow

7 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' 0 0

8 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

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

10 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=10 SR=01 SR=00 SR=01

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

12 Making a D latch D CLK D R Q Q S

13 D flip-flop 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 Q ff DQ Q CLK Input

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

15 Latches versus flip-flops behavior is the same unless input changes while the clock is high CLK D Q ff Q latch DQ Q CLK DQ Q

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

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

18 How to make a D flip flop? 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. If Clk=1 then X=Y=0 and SR latch block holds previous values of Q,Q’, also Z=D’ and W=Z’=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. Falling edge-triggered flip-flop

19 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 TQ > Input Input(t) Q(t) Q(t +  t)