Sequential Circuits. 2 ياداوري  آموزش تکنيک هاي طراحي و پياده سازي سيستم هاي پيچيده: سيستم:  داراي ورودي ها، خروجي ها و رفتار مشخصي است −اين رفتار توسط.

Slides:



Advertisements
Similar presentations
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
Advertisements

EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Sequential Circuits.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Chapter 6 -- Introduction to Sequential Devices
EECS 465: Digital Systems Lecture Notes # 7
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
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,
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Computer Architecture CS 215
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
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:
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
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.
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.
Page 1 Sequential Logic Basic Binary Memory Elements.
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.
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.
EE 4271 VLSI Design, Fall 2010 Sequential Circuits.
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.
COE 202: Digital Logic Design Sequential Circuits Part 1
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Chap 4. Sequential Circuits
ENG241 Digital Design Week #6 Sequential Circuits (Part A)
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
© 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.
Synchronous Sequential Logic Part I
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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.
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.
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
Flip Flops.
Chapter #6: Sequential Logic Design
Flip Flops.
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Instructor: Alexander Stoytchev
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Instructor: Alexander Stoytchev
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Sequential Circuits UNIT- IV
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

Sequential Circuits

2 ياداوري  آموزش تکنيک هاي طراحي و پياده سازي سيستم هاي پيچيده: سيستم:  داراي ورودي ها، خروجي ها و رفتار مشخصي است −اين رفتار توسط فانکشن هايي تعيين مي شود که ورودي ها را به خروجي ها تبديل (نگاشت) مي کند. −مثال: گوشي تلفن: −ورودي ها: کليدها −خروجي ها: صفحة نمايش و سيگنال هاي ارسالي به مرکز تلفن −رفتار: شماره گيري و ايجاد ارتباط −مثال: خودرو: −ورودي ها: پدال ها، سوييچ، فرمان،... −خروجي ها: فرمان پيچش و چرخش چرخ ها، فرمان ترمز،... −رفتار:.... −مثال: تلويزيون:

3 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential Logic:  Output depends not only on current input but also on current state of the system (which depends on past input values) −TV channel selector (up-down)  Need some type of memory to remember the current state inputsoutputs system

4 Sequential Logic Sequential Logic circuits  Remembers past inputs and past circuit state.  Outputs from the system are “fed back” as new inputs.  The storage elements are circuits that are capable of storing binary information: memory.

5 Feedback Loop Feedback:  A signal s1 depends on another signal whose value depends on s1 −(perhaps with several intermediate signals). s1 R S Q Q’

6 Base of Memory  Consider the following circuit:  It can differentiate between two different states as it has only one feedback line that can keep one of two values, 0 or 1.  A circuit with n feedback lines has 2 n potential states, and that the memory of our circuit depends on the number of its feedback lines: 0 1 P1 = P2 = 0

7 SR latch (NOR version) R S R S Q Q’ Truth Table: Next State = F(S, R, Current State) S(t) R(t) Q(t) Q(t+) (hold) (Hold) (reset) (reset) (set) (set) Not allowed Not allowed

8 SR Latch 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 S(t) R(t) Q(t) Q(t+) (hold) (Hold) (reset) (reset) (set) (set) Not allowed Not allowed

9 R=S=1 ?? Illegal output, because  When S=R=1, both outputs go to zero.  If both inputs now go to 0, the state of the SR latch depends on delays.  Hence, “undefined” state. −MUST be avoided.

10 Timing Diagram 100 R S Q Q’ Reset Hold Set Forbidden State ResetSet Forbidden State Race

11 Timing Diagram of SR Latch

12 SR Latch State Diagram  Difficulty in observing R-S Latch in the 1-1 state  Ambiguously returns to state 0-1 or 1-0 Q Observed State Diagram

13 S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ Set X Y NAND S R R-S Latch Q Q’

14 S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ Hold X Y NAND 1 0 Set

15 S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ X Y NAND 1 0 Hold 1 0 Set 0 1 Reset

16 S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ X Y NAND 0 1 Hold 1 0 Set 0 1 Reset 1 0 Hold

17 S’R’ Latch (NAND version) S’ R’ Q Q’ S’ R’ Q Q’ X Y NAND 0 1 Hold 1 0 Set 0 1 Reset 1 0 Hold 1 1 Disallowed

18 SR Latch with Control (Enable) S’ R’ Q Q’ S R C S R C S’ R’ Q Q’ Q 0 Q 0 ’ Hold Reset Set Disallowed X X Q 0 Q 0 ’ Hold

19 D Latch  S-R latches are useful in control applications, −where we often think in terms of setting a flag in response to some condition, and resetting it when conditions change  We often need latches simply to store bits presented on a signal line  D latch  Can eliminate the undesirable indeterminate state in the RS flip flop: −ensure that inputs S and R are never 1 simultaneously. D C D Latch Q Q’

20 D Latch (cont.) D S R C Q Q’ Q 0 Q 0 ’ Store Reset Set Disallowed X X 0 Q 0 Q 0 ’ Store X 0 Q 0 Q 0 ’ D C Q Q’ S’ R’ Q Q’ S R C

21 D Latch Timing Diagram D C D Latch Q Q’ C

22 D-Latch Circuit C D QQ D C D Latch Q Q’ C D Q+ = C’.Q + C.D

23 D Latch with Transmission Gates C=1  TG1 closes and TG2 opens  Q’=D’ and Q=D C=1  TG1 closes and TG2 opens  Q’=D’ and Q=D C=0  TG1 opens and TG2 closes  Hold Q and Q’ C=0  TG1 opens and TG2 closes  Hold Q and Q’ 2 1

24 JK Latch J, K both one yields toggle Characteristic Equation: Q+ = Q K’ + Q’ J K JQ Q’ J-K Latch J(t) K(t) Q(t) Q(t+) (hold) (hold) (reset) (reset) (set) (set) (toggle) (toggle) Derived K-Map: K JK Q(t) J J K Q1 0 Q’

25 JK Latch Using SR Latch How to eliminate the forbidden state in SR? 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 J(t)K(t)Q(t) Q(t+  ) HOLD RESET SET TOGGLE 0 R-S latch J K R S Q’ Q Q

26 JK Latch Race Condition Set Reset Toggle Toggle Correctness: Single State changes Solution: Master/Slave Flipflop

27 Flip-Flops  Latches are “transparent” (= any change on the inputs is seen at the outputs immediately).  This causes synchronization problems!  Solution: use latches to create flip- flops that can respond (update) ONLY on SPECIFIC times (instead of ANY time).

28 Alternatives in FF choice Types of FF  RS  D  JK  T

29 D-FF Truth table Timing for D Flip-Flop (Falling-Edge Trigger)

30 Symbols

31 Compare 3 Types

32 Rising Edge D-FF What About Falling-Edge Circuit?

33 Setup & Hold Time and Propagation Delay Setup time:  D input must be stable for a certain amount of time before the active edge of clock cycle Hold time:  D input must be stable for a certain amount of time after the active edge of the clock Propagation Delay (Clock-to-Output):  from the time the clock changes to the time the output changes Propagation Delay (Data-to-Output):  from the time the data changes to the time the output changes

34 Setup & Hold Time and Propagation Delay Setup and Hold Times for an Edge-Triggered D Flip-Flop t pLH may be different from t pHL t p clock-to-output vs. t p D-to-output

35 Timing Parameters of a D-Latch

36 Edge-Triggered D Flip-Flop Determination of Minimum Clock Period Assume: t co = 5 ns t p,inv = 2 ns t su = 3 ns

37 Master-Slave FF configuration using SR latches – Enables edge-triggered behavior

38 S R CLK Q Q’ Q 0 Q 0 ’ Store Reset Set Disallowed X X 0 Q 0 Q 0 ’ Store Master-Slave FF configuration using SR latches (cont.) When C=1, master is enabled and stores new data, slave stores old data. When C=0, master’s state passes to enabled slave (Q=Y), master not sensitive to new data (disabled). Master Slave

39 Master-Slave J-K Flip-Flop

40 Master-Slave J-K Flip-Flop Sample inputs while clock high Sample inputs while clock low Correct Toggle Operation P P’ Master outputs Slave outputs SetResetToggle 1's Catch100 J K C P P‘‘ Q Q’

41 Edge-Triggered FF 1's Catching: a glitch on the J or K inputs leads to a state change! forces designer to use hazard-free logic Solution: edge-triggered logic Negative Edge-Triggered D flipflop 4-5 gate delays setup, hold times necessary to successfully latch the input Characteristic Equation: Q+ = D Negative edge-triggered FF

42 T Flip-Flop Timing Diagram for T Flip-Flop (Falling-Edge Trigger)

43 Implementation of T-FF Implementation of T Flip-Flop

44 FFs with Additional Inputs D Flip-Flop with Clock Enable The MUX output : The characteristic equation :

45 Asynchronous Preset/Clear  Many times it is desirable to asynchronously (i.e., independent of the clock) set or reset FFs.  Example: At power-up, we can start from a known state.  Asynchronous set == direct set == Preset  Asynchronous reset == direct reset == Clear  There may be “synchronous” preset and clear. D C S R Q Q’

46 Asynchronous Set/Reset S C1 1J 1K R IEEE standard graphical symbol for JK- FF with direct set & reset Cn indicates that Cn controls all other inputs whose label starts with n. In this case, C1 controls 1J and 1K. SRC11J1KQ(t+1) 01XXX1 – Preset 10XXX0 – Clear 00XXXUndefined 11  00Q(t) – Hold 11  010 – Reset 11  101 – Set 11  11Q(t)’ -- Complement Function Table

47 Asynchronous Inputs

48 Synchronous Reset