ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.

Slides:



Advertisements
Similar presentations
11/12/2004EE 42 fall 2004 lecture 311 Lecture #31 Flip-Flops, Clocks, Timing Last lecture: –Finite State Machines This lecture: –Digital circuits with.
Advertisements

Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
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.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
EECS 465: Digital Systems Lecture Notes # 7
1 Sequential Ckts, Latches and Timing Issues Today: Sequential Circuits, LatchesFirst Hour: Sequential Circuits, Latches –Section of Katz’s Textbook.
ELEC 256 / Saif Zahir UBC / 2000 Timing Methodology Overview Set of rules for interconnecting components and clocks When followed, guarantee proper operation.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
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:
Sequential Circuits. 2 ياداوري  آموزش تکنيک هاي طراحي و پياده سازي سيستم هاي پيچيده: سيستم:  داراي ورودي ها، خروجي ها و رفتار مشخصي است −اين رفتار توسط.
Announcements Assignment 7 posted, due Friday 18 th All project components ordered Dates –Thursday 12/1 review lecture –Tuesday 12/6 project demonstrations.
EE2420 – Digital Logic Summer II 2013
Chapter #6: Sequential Logic Design
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Page 1 Sequential Logic Basic Binary Memory Elements.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Lecture 9 Memory Elements and Clocking
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Sequential Logic 1  Combinational logic:  Compute a function all at one time  Fast/expensive  e.g. combinational multiplier  Sequential logic:  Compute.
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.
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.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Flip-Flop Types.
Chapter #6: Sequential Logic Design 6.2 Timing Methodologies
ECE C03 Lecture 91 Lecture 9 Registers, Counters and Shifters Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
ELEC 256 / Saif Zahir UBC / 2000 Sequential Logic Design Sequential Networks Simple Circuits with Feedback R-S Latch J-K Flipflop Edge -Triggered Flip-Flops.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
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.
1 Flip Flops, Registers Today: Latches, Flip FlipsFirst Hour: Types of Latches, Flip Flips –Section of Katz’s Textbook –In-class Activity #1.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
COE 202: Digital Logic Design Sequential Circuits Part 1
ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Licensed.
Digital System Design. Intro. VLSI: CMOS inverter.
Chap 4. Sequential Circuits
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
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.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Sp09 CMPEN 411 L18 S.1 CMPEN 411 VLSI Digital Circuits Spring 2009 Lecture 16: Static Sequential Circuits [Adapted from Rabaey’s Digital Integrated Circuits,
6-1 Programmable and Steering Logic Chapter #6: Sequential Logic Design.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential logic circuits
EKT 121 / 4 ELEKTRONIK DIGIT I
Flip Flops, Registers Today: First Hour: Types of Latches, Flip Flips
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.
Dept. of Electrical Engineering
Instructor: Alexander Stoytchev CprE 281: Digital 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.
Digital Design: Sequential Logic Principles
Lecture #16: D Latch ; Flip-Flops
Chapter #6: Sequential Logic Design
Flip Flops.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
LECTURE 15 – DIGITAL ELECTRONICS
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
CSE 370 – Winter Sequential Logic-2 - 1
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
FLIP-FLOPS.
SEQUENTIAL CIRCUITS __________________________________________________
Presentation transcript:

ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002

ECE C03 Lecture 82 Outline Sequential logic networks Latches (RS Latch) Flip-flops (D and JK) Timing issues (setup and hold times) READING: Katz 6.1, 6.2, 6.3, Dewey 8.1, 8.2

3 Sequential Switching Networks Circuits with Feedback: Outputs values (in the steady state) depend not only on the present input values but also on the history of previous inputs. => Needs storage elements (or mechanism) to memorize the history. Traffic Light Controller is a complex sequential logic network Sequential logic forms basis for building "memory" into circuits These memory elements are primitive sequential circuits

ECE C03 Lecture 84 Simple Circuits with Feedback Primitive memory elements created from cascaded gates Simplest gate component: inverter Basis for commercial static RAM designs Cross-coupled NOR gates and NAND gates also possible Cascaded Inverters: Static Memory Cell "0" "1" Selectively break feedback path to load new value into cell Z LD \LD LD \LD A

ECE C03 Lecture R S Q \Q RS Latch Just like cascaded inverters, with capability to force output to 0 (reset) or 1 (set) Timing Waveform Reset Hold Set Forbidden State ResetSet Forbidden State Race R R S S Q \Q

ECE C03 Lecture 86 State Behavior of RS Latch Truth Table Summary of R-S Latch Behavior Q Q 1

ECE C03 Lecture 87 Theoretical RS Latch State Diagram Q SR = 1 0 SR = 0 1 SR = 1 1 SR = 1 0 SR = 1 1 SR = 00, 01 SR = 00, 10 Q 1 SR = 0 0 SR = 0 0, 11 SR = 11 SR = 1 0SR = 0 1

ECE C03 Lecture 88 Observed RS Latch Behavior Q SR = 1 0 SR = 0 1 SR = 1 1 SR = 1 0 SR = 1 1 SR = 00, 01 SR = 00, 10 SR = 0 0 SR = 11 SR = 0 0 Very difficult to observe R-S Latch in the 1-1 state Ambiguously returns to state 0-1 or 1-0 A so-called "race condition"

ECE C03 Lecture 89 Input Clock T su T h Definition of Terms in Clocking Setup Time (Tsu) Clock: Periodic Event, causes state of memory element to change rising edge, falling edge, high level, low level There is a timing "window" around the clocking event during which the input must remain stable and unchanged in order to be recognized There is a timing "window" around the clocking event during which the input must remain stable and unchanged in order to be recognized Minimum time before the clocking event by which the input must be stable Hold Time (Th) Minimum time after the clocking event during which the input must remain stable

ECE C03 Lecture 810 Level Sensitive RS Latch Level-Sensitive Latch \S \R \Q Q \enb Schematic: Timing Diagram: aka Gated R-S Latch \S \R \enb Q \Q

Level-Sensitive D-Latch Make level-sensitive D-latch from level-sensitive RS-latch by connecting S = D and R = not D Compared to transistor version D Q Q CLK DQ 8 Transistors 18 Transistors

ECE C03 Lecture 812 Latches vs Flip-flops Input/Output Behavior of Latches and Flipflops Type When Inputs are Sampled When Outputs are Valid unclocked always propagation delay from latch input change level clock high propagation delay from sensitive (Tsu, Th around input change latch falling clock edge) positive edge clock lo-to-hi transition propagation delay from flipflop (Tsu, Th around rising edge of clock rising clock edge) negative edge clock hi-to-lo transition propagation delay from flipflop (Tsu, Th around falling edge of clock falling clock edge) master/slave clock hi-to-lo transition propagation delay from flipflop (Tsu, Th around falling edge of clock falling clock edge)

ECE C03 Lecture 813 Latches vs Flipflops Bubble here for negative edge triggered device Timing Diagram: Behavior the same unless input changes while the clock is high Edge triggered device sample inputs on the event edge Transparent latches sample inputs as long as the clock is asserted Positive edge-triggered flip-flop Level-sensitive latch DQ DQ C Clk D Q Q

ECE C03 Lecture 814 Timing Specifications of FFs 74LS74 Positive Edge Triggered D Flipflop Setup time Hold time Minimum clock width Propagation delays (low to high, high to low, max and typical) All measurements are made from the clocking event that is, the rising edge of the clock D Clk Q T su 20 ns T h 5 T w 25 ns T plh 25 ns 13 ns T su 20 ns T h 5 T phl 40 ns 25 ns

ECE C03 Lecture 815 Timing Specifications of Latches 74LS76 Transparent Latch Setup time Hold time Minimum Clock Width Propagation Delays: high to low, low to high, maximum, typical data to output clock to output Measurements from falling clock edge or rising or falling data edge T su 20 ns T h 5 T su 20 ns T h 5 T w 20 ns T plh C »Q 27 ns 15 ns T phl C »Q 25 ns 14 ns T plh D »Q 27 ns 15 ns T phl D »Q 16 ns 7 ns D Clk Q

ECE C03 Lecture 816 RS Latch Revisited Truth Table: Next State = F(S, R, Current State) S R Q R-S Latch Q+ Derived K-Map: Characteristic Equation: Q+ = S + R Q t R SR X1 10X1 0 1 Q(t) S S(t) R(t) Q(t) Q(t+d) HOLD RESET SET X NOT ALLOWED X

ECE C03 Lecture 817 JK Latch Design How to eliminate the forbidden state? Idea: use output feedback to guarantee that R and S are never both one J, K both one yields toggle Characteristic Equation: Q+ = Q K + Q J R-S latch K JS R Q \Q \Q Q J(t) K(t) Q(t) Q(t+d) HOLD RESET SET TOGGLE

ECE C03 Lecture 818 J K Q \Q 100 JK Latch Race Condition Set Reset Toggle Race Condition Toggle Correctness: Single State change per clocking event Solution: Master/Slave Flipflop

ECE C03 Lecture 819 Solution: Master Slave JK Flip Flop Master Stage Slave Stage Sample inputs while clock high Sample inputs while clock low Uses time to break feedback path from outputs to inputs! Correct Toggle Operation J R-S Latch R-S Latch K R S Clk \Q Q \P P R S \Q Q Q Master outputs Slave outputs SetResetToggle 1's Catch 100 J K Clk P \P Q \Q

by B. G. Kim 집적회로설계 (Digital Integrated Circuits) 20 Master-Slave-Based D Flip-Flop

Master-Slave configuration Master-Slave Edge-Triggered Flip-Flop 8 Transistors 36 Transistors GND QD CLK V DD CLK V DD Q D CLK MASTERSLAVE

ECE C03 Lecture 822 Positive vs Negative Edge Triggered Devices Positive Edge Triggered Inputs sampled on rising edge Outputs change after rising edge Negative Edge Triggered Inputs sampled on falling edge Outputs change after falling edge Toggle Flipflop Formed from J-K with both inputs wired together Positive edge- triggered FF Negative edge- triggered FF D Clk Qpos \Q Qneg \Q 100

ECE C03 Lecture 823 Realizing Circuits with Different Kinds of FFs R-S Clocked Latch: used as storage element in narrow width clocked systems its use is not recommended! however, fundamental building block of other flipflop types J-K Flipflop: versatile building block can be used to implement D and T FFs usually requires least amount of logic to implement ƒ(In,Q,Q+) but has two inputs with increased wiring complexity because of 1's catching, never use master/slave J-K FFs edge-triggered varieties exist D Flipflop: minimizes wires, much preferred in VLSI technologies simplest design technique best choice for storage registers T Flipflops: don't really exist, constructed from J-K FFs usually best choice for implementing counters Preset and Clear inputs highly desirable!!

ECE C03 Lecture 824 Timing Methodology Set of rules for interconnecting components and clocks When followed, guarantee proper operation of system Approach depends on building blocks used for memory elements For systems with latches: Narrow Width Clocking Multiphase Clocking (e.g., Two Phase Non-Overlapping) For systems with edge-triggered flipflops: Single Phase Clocking Correct Timing: (1) correct inputs, with respect to time, are provided to the FFs (2) no FF changes more than once per clocking event

ECE C03 Lecture 825 Cascaded Flipflops and Setup/Hold/Propagation Delays Shift Register S,R are preset, preclear New value to first stage while second stage obtains current value of first stage Correct Operation, assuming positive edge triggered FF IN CLK Q0 Q1 D C Q Q D C Q Q

ECE C03 Lecture 826 Why Cascaded Flip-Flops Work Propagation delays far exceed hold times; Clock width constraint exceeds setup time This guarantees following stage will latch current value before it is replaced by new value Assumes infinitely fast distribution of the clock Timing constraints guarantee proper operation of cascaded components Timing constraints guarantee proper operation of cascaded components T su 20 ns T plh 13 ns T h 5 ns T su 20 ns T plh 13 ns T h 5 ns In Clk Q 0 Q 1

ECE C03 Lecture 827 Timing Methodologies Design Strategies for Minimizing Clock Skew Typical propagation delays for LS FFs: 13 ns Need substantial clock delay (on the order of 13 ns) for skew to be a problem in this relatively slow technology Nevertheless, the following are good design practices: distribute clock signals in general direction of data flows wire carrying the clock between two communicating components should be as short as possible for multiphase clocked systems, distribute all clocks in similar wire paths; this minimizes the possibility of overlap for the non-overlap clock generate, use the phase feedback signals from the furthest point in the circuit to which the clock is distributed; this guarantees that the phase is seen as low everywhere before it allows the next phase to go high

ECE C03 Lecture 828 Summary Sequential logic networks Latches (RS Latch) Flip-flops (D and JK) Timing issues (setup and hold times) NEXT LECTURE: Registers and Counters READING: Katz 7.1, 7.2, 7.4, 7.5, Dewey 10.2, 10.3, 10.4