Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.

Slides:



Advertisements
Similar presentations
Sequential Logic ENEL 111. Sequential Logic Circuits So far we have only considered circuits where the output is purely a function of the inputs 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.
Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Sequential Logic Building Blocks – Flip-flops
Flip-Flops Computer Organization I 1 June 2010 © McQuain, Feng & Ribbens A clock is a free-running signal with a cycle time. A clock may be.
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,
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
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:
1 Kuliah Rangkaian Digital Kuliah 8: Rangkaian Logika Sekuensial Teknik Komputer Universitas Gunadarma.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Introduction to Sequential Logic Design Bistable elements Latches.
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 Logic Flip Flops Lecture 4.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Chapter 10 Flip-Flops and Registers Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. William Kleitz.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Digital Logic Design Lecture 23. Announcements Homework 8 due Thursday, 11/20 Exam 3 coming up on Tuesday, 11/25.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
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.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
COE 202: Digital Logic Design Sequential Circuits Part 1
Introduction to Sequential Logic Design Flip-flops.
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Chap 4. Sequential Circuits
Flip-Flops and Registers
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Introduction to Sequential Logic Design Flip-flops.
Sequential Logic Circuits. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
Introduction to Sequential Logic Design Bistable elements.
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.
Sequential Logic Circuits
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
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
Synchronous Sequential Logic Part 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.
Chapter5: Synchronous Sequential Logic – Part 1
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.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
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
Lecture #16: D Latch ; Flip-Flops
Flip-Flop.
Sequential Logic and Flip Flops
ECE Digital logic Lecture 16: Synchronous Sequential Logic
LECTURE 15 – DIGITAL ELECTRONICS
Sequential Logic and Flip Flops
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
FLIP-FLOPS.
Flip-Flops.
ECE 352 Digital System Fundamentals
Presentation transcript:

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on the current inputs, but also on the past sequence of inputs, possibly arbitrarily far back in time  The book gives the example of changing channels on a TV –A TV with a remote – the old manual dial doesn’t count –A computer would be a more complex example  Can not describe the behavior of a sequential circuit with a simple truth table – output as a function of input  Must know the “state” of the circuit –Collection of state variables whose values at any one time contain all the information necessary to determine the future behavior –In the TV example, the current channel must be known in order to increment/decrement the channel

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A state variable describes the value of a particular element of a sequential circuit –In the TV example, a state variable would be needed to store the current channel –Could be stored internally any number of ways 3-digit BCD Binary number  In digital circuits a state variable has two values  The total number of possible states is 2 n where n is the number of binary state variables –You can see that this number can grow large very quickly, but it is finite Sequential circuits often called finite-state machines –Often, it is impractical to test every possible state transitioning to every other possible state Say a 3-digit BCD is used for the TV, that’s 12 bits or 4096 states Would not test every channel change combination

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  State changed occur when the internal clock transitions  The clock is active high when the state change occurs on the rising edge or at a high value  The clock is active low when the state change occurs on the falling edge or when the clock is low –More on rising/falling edges later –Some circuits are designed so some elements are triggered by an active high clock while other elements are triggered by an active low  The clock period (T) is the time between successive changes  The clock frequency is the inverse of the period (f = 1/T) –Frequency of 44.1 KHz has a period of μs

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  The first edge in a clock pulse is called the clock tick –State changes occur in lock-step with the clock Some circuits, called asynchronous circuits, do not completely change state on the tick of the clock, but rather various elements “signal” other elements when they are ready –How do you suppose the TV example implements a clock?

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  The first edge in a clock pulse is called the clock tick –State changes occur in lock-step with the clock Some circuits, called asynchronous circuits, do not completely change state on the tick of the clock, but rather various elements “signal” other elements when they are ready –How do you suppose the TV example implements a clock? –It doesn’t! Not all sequential circuits require a clock!  The duty cycle is the percentage of time a clock signal is asserted –Does NOT have to be symmetrical

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  Clock Signal

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  Bistable elements have two stable states  The simplest bistable circuit element is shown below  Upon power up, what will be the outputs?

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  Bistable elements have two stable states  The simplest bistable circuit element is shown below  Upon power up, what will be the outputs?  It is analogous to flipping a coin, which could have 1 of 3 possible outcomes, not all equally likely –Heads, Tails, on its side

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  Graph shows behavior of the inverters  Two stable states, one metastable state  In the metastable state, a little noise or power spike could cause the outputs to transition to one of the stable states –Just like a little vibration could cause the coin that landed on its side to fall over

Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  Another metastable example  All sequential circuits are susceptible to metastable behavior  This situation manifests itself in situations when the triggering actions for latches and flip flops are marginal  For example, if the clock speed is too high for a particular circuit

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Latches and flip-flops are the basic building blocks of most sequential circuits  Flip-flops use a clocking signal to change state  Latches change output at any time, independent of a clocking signal –This is the distinction made by the text –Some texts have been known to use the terms incorrectly, calling a flip-flop a latch –The distinction is important for correct operation of some sequential circuits

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  S-R (Set-Reset) Latch implemented with NOR gates  S sets Q to one, R resets (clears) Q to zero  Function Table describes the behavior –Doesn’t tell the whole story –Metastable behavior not indicated –Use the functional behavior timing diagram  Note: QN is not always the complement of Q

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Functional behavior of an S-R latch  Note the (undesirable) metastable behavior –May enter that state if S and R are negated simultaneously –Since nothing is perfectly “simultaneous” the designers often specify how “close” is considered simultaneous Usually specified as within 20 ns, but may be different for faster/slower circuits

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  The S’-R’ Latch – called the S-bar R-bar latch –I don’t have an “overline” in MS Word  Similar to S-R latch, except it has active low sets/resets  May be built from NAND gates –Remembers its state when both inputs are one –When both inputs go to zero, outputs both go to one

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  The S-R Latch with enable  When the enable input “C” is asserted, behaves just like an S- R latch  When C is deasserted, it remembers its current values  May become metastable if both inputs are one and C goes to zero (deasserted)

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  The D (data) latch allows the storage of data  Avoids the metastable problem better than the S-R latch  It is essentially an S-R latch with enable and the S input tied to an inverter feeding the R input  The “C” enable input may also be a clock input  When enabled, the latch is transparent

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  The D latch does not eliminate the metastability problem  Four delay parameters are shown –t pLH(CQ) – time propagation from L to H of Q due to input C  When C is transitioning to zero, the data must be stable for t setup and t hold to avoid metastability problems

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Once you use the enable input with a clocking signal, you are working with a flip-flop instead of a latch  We can construct a positive-edge-triggered D flip-flop with a pair of D latches as shown below  It will only change output on the rising edge of the clock  If the input changes while the clock is high, the output will not change triangle indicates edge-triggered behavior

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  The edge-triggered D flip-flop also has a setup and hold time  If the setup/hold time is not met, the edge-triggered FF will usually become stable (though in an unpredictable state)  It can go metastable or oscillate  Can also have a negative edge-triggered FF  Some D flip-flops have separate set/reset inputs to force the output to a particular state

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Negative edge-triggered D-FF

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Edge-triggered D-FF with Preset and Clear

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Edge triggered D-FF with enable  This can be used to hold a value despite the clock signal

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  A scan flip-flop is used for testing  Use an alternate source of data during testing  When in testing mode, a pattern can be scanned into all the flip-flops  After loading the test pattern, the flip-flops are put into normal mode and clocked as usual  Two extra inputs are used –Test enable which is simply a pin used to choose between the normal input and the test input –Test input – the alternate D input  All the different flip-flops could be designed with a scan capability

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Scan flip-flops

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Master/Slave S-R Flip-Flops  Used when we want an S-R FF to change only in synchronization with a clock  Can use S-R latches in place of D latches of the negative edge-triggered flip-flop  Resulting device is not edge triggered because the output depends on the value during the entire time the clock is high  A short pulse can set or reset the master latch  The final output depends upon whether the master latch was set/reset while the clock was high  Changes output to final latched value – value at falling edge of clock  Called a pulse-triggered flip-flop

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Master/Slave S-R pulse triggered flip-flop  Metastable behavior occurs if pulsed when both S-R are high S-R Flip-FlopMaster Slave S-R Flip-Flop postponed output indicator

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Master/Slave J-K Flip-Flop  Solves the problem of when both S and R are asserted simultaneously  J & K inputs are analogous to S-R inputs  However, asserting J asserts the master’s S input only as long as the QN output is one (Q is zero)  Asserting K asserts the master’s R input only if Q is one  If both are asserted at the same time, the flip-flop goes to the opposite of its current state  problem: it is possible for the output to change to a one even though K and not J is asserted at the end of the triggering pulse –Called 1’s catching –Also may have a 0’s catching  J-K inputs MUST be held valid during entire period clock is 1

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Master/Slave J-K flip-flop

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  Edge-triggered J-K flip-flop  Solves the 1’s catching and 0’s catching problem (as well as the simultaneous input change problem)  Inputs sampled at the rising edge  Have obsoleted the pulse-triggered types  74x109 is a positive edge-triggered J-K’ flip-flop –K is active low

Fall 2004EE 3563 Digital Systems Design EE3563 Latches and Flip-Flops  A T (toggle) flip-flop changes state upon every tick of the clock  May be pos/neg edge-triggered and have an enable  Can be used as a frequency divider  Use one T-FF to divide by two, cascade them for larger divisions