Sequential Logic 1  Combinational logic:  Compute a function all at one time  Fast/expensive  e.g. combinational multiplier  Sequential logic:  Compute.

Slides:



Advertisements
Similar presentations
1 Lecture 16 Timing  Terminology  Timing issues  Asynchronous inputs.
Advertisements

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.
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.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Flip-Flops, Registers, Counters, and a Simple Processor
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:
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
1 Kuliah Rangkaian Digital Kuliah 8: Rangkaian Logika Sekuensial Teknik Komputer Universitas Gunadarma.
Announcements Assignment 7 posted, due Friday 18 th All project components ordered Dates –Thursday 12/1 review lecture –Tuesday 12/6 project demonstrations.
Introduction to Sequential Logic Design Bistable elements Latches.
K-Maps, Timing Sequential Circuits: Latches & Flip-Flops Lecture 4 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier,
Page 1 Sequential Logic Basic Binary Memory Elements.
Digital Logic Design Lecture 22. Announcements Homework 7 due today Homework 8 on course webpage, due 11/20. Recitation quiz on Monday on material from.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
Sequential Logic 1 clock data in may changestable data out (Q) stable Registers  Sample data using clock  Hold data between clock cycles  Computation.
1 Digital Design: State Machines Timing Behavior Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals.
Assume array size is 256 (mult: 4ns, add: 2ns)
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
ENGIN112 L28: Timing Analysis November 7, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 28 Timing Analysis.
CSE 140L Lecture 4 Flip-Flops, Shifters and Counters Professor CK Cheng CSE Dept. UC San Diego.
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.
Embedded Systems Hardware:
S. Reda EN160 SP’08 Design and Implementation of VLSI Systems (EN1600) Lecture 22: Sequential Circuit Design (1/2) Prof. Sherief Reda Division of Engineering,
Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n Memory elements. n Basics of sequential machines.
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:
Chapter #6: Sequential Logic Design 6.2 Timing Methodologies
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
CS 151 Digital Systems Design Lecture 28 Timing Analysis.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
1 CSE370, Lecture 16 Lecture 19 u Logistics n HW5 is due today (full credit today, 20% off Monday 10:29am, Solutions up Monday 10:30am) n HW6 is due Wednesday.
Sequential Networks Two major classes of Sequential Circuits 1.Fundamental Mode – A sequential circuit where: Only one input is allowed to change at any.
Lecture 5. Sequential Logic 3 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
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.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits II.
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)
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Designing Sequential Logic Circuits Ilam university.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
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.
1 COMP541 Sequential Logic Timing Montek Singh Sep 30, 2015.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS 61C: Great Ideas in Computer Architecture Sequential Elements, Synchronous Digital Systems 1 Instructors: Vladimir Stojanovic & Nicholas Weaver
Dept. of Electrical Engineering
Lecture 4. Sequential Logic #3 Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Logic Design.
TOPIC : Introduction to Sequential Circuits UNIT 1: Modeling and Simulation Module 4 : Modeling Sequential Circuits.
Memory Elements. Outline  Introduction  Memory elements.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Computer Architecture & Operations I
Chapter #6: Sequential Logic Design
Sequential Logic Combinational logic:
Timing issues.
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
CSE 370 – Winter Sequential Logic - 1
Presentation transcript:

Sequential Logic 1  Combinational logic:  Compute a function all at one time  Fast/expensive  e.g. combinational multiplier  Sequential logic:  Compute a function in a series of steps  Slower/more efficient  e.g. shift/add multiplier  Key to sequential logic: circuit has feedback  Use the result of one step as an input to the next

Sequential Logic 2 X1 X2 Xn Combinational circuit Z1 Z2 Zn Circuits with feedback  How to control feedback?  what stops values from cycling around endlessly?  this is an asynchronous sequential circuit

Sequential Logic 3 "remember" "load" "data" "stored value" "0" "1" "stored value" Simplest circuits with feedback: latch  Two inverters form a static memory cell  will hold value as long as it has power applied  How to get a new value into the memory cell?  selectively break feedback path  load new value into cell

Sequential Logic 4 Let’s Use This Latch  What happens? X1 X2 Xn Combinational circuit Z1 Z2

Sequential Logic 5 What We Need:  When inputs change...  Wait until combinational logic has finished and result it stable...  Then sample the output value and save...  Feed the saved output back to the input of the combinational logic  Make sure the saved output can’t change  Key idea: we sample the result at the right time, i.e. when it is ready  Only then do we update the stored value  How do we know when to sample?  How do we know when the inputs changed?  How do we know how long to wait?

Sequential Logic 6 What We Need:  A circuit that can sample a value  A signal that says when to sample  Edge-triggered D flip-flop (register)  Samples on positive edge of clock  Holds value until next positive edge  Most common storage element  Clock  Periodic signal, each rising edge signals D flip-flops to sample  All registers sample at the same time DQ

Sequential Logic 7 Let’s Use This D flip-flop  Does this work?  What do we need to say about the inputs X1, X2,...?  This is a synchronous sequential circuit X1 X2 Xn Combinational circuit Z1 Z2 DQ

Sequential Logic 8 clock data in may changestable data out (Q) stable Registers  Sample data using clock  Hold data between clock cycles  Computation (and delay) occurs between registers clock data in DQDQ data out

Sequential Logic 9 Example - Circuit with Feedback  Output is a function of arbitrarily many past inputs

Sequential Logic 10 BAout t out t+1 –0 0 0 – – 0 11 – 1 Examples (cont’d)  Output is a function of inputs and the previous state of the circuit

Sequential Logic 11 Example - Circuit without Feedback  Output is a function of the input sampled at three different points in time

Sequential Logic 12 there is a timing "window" around the clocking event during which the input must remain stable and unchanged in order to be recognized clock data changingstable input clock T su ThTh Timing Methodologies (cont’d)  Definition of terms  setup time: minimum time before the clocking event by which the input must be stable (T su )  hold time:minimum time after the clocking event until which the input must remain stable (T h ) clock data DQDQ

Sequential Logic 13 all measurements are made from the clocking event that is, the rising edge of the clock Typical timing specifications  Positive edge-triggered D flip-flop  setup and hold times  minimum clock width  propagation delays (low to high, high to low, max and typical) Th 1ns Tw 7ns T plh [2,4]ns T phl [1,3]ns Tsu 2ns D CLK Q Tsu 2ns Th 1ns

Sequential Logic 14 Synchronous System Model  Register-to-register operation  Perform operations during transfer  Many transfers/operations occur simultaneously

Sequential Logic 15 System Clock Frequency  Register transfer must fit into one clock cycle  reg t pd + C.L. t pd + reg t su < T clk  Use maximum delays  Find the “critical path”  Longest register-register delay