Overview of Chapter 4

Similar documents
Sequential Circuits. Introduction to Digital Logic. Course Outline. Overview. Introduction to Digital Logic. Introduction to Sequential Circuits

Chapter 6 Sequential Circuits

Chapter 5 Sequential Circuits

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

Chapter 5 Sequential Circuits

Problems with D-Latch

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

6. Sequential Logic Flip-Flops

Chapter 3 Unit Combinational

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

! Two inverters form a static memory cell " Will hold value as long as it has power applied

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

Page 1. Some Definitions. Chapter 3: Sequential Logic. Sequential Logic. The Combinational Logic Unit. A NOR Gate with a Lumped Delay

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

Combinational vs Sequential

UNIT 11 LATCHES AND FLIP-FLOPS

Chapter 5: Synchronous Sequential Logic

Sequential Logic Circuits

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Chapter. Synchronous Sequential Circuits

UNIT IV. Sequential circuit

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

Basis of sequential circuits: the R-S latch

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Chapter 5 Sequential Systems. Introduction

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Unit 11. Latches and Flip-Flops

ECE 3401 Lecture 12. Sequential Circuits (II)

Switching Circuits & Logic Design

Chapter 5 Synchronous Sequential Logic

Synchronous Sequential Logic

Logic Design ( Part 3) Sequential Logic (Chapter 3)

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Week 4: Sequential Circuits

D Latch (Transparent Latch)

Sequential Circuits. Building Block: Flip-Flops

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Traversing Digital Design. EECS Components and Design Techniques for Digital Systems. Lec 22 Sequential Logic - Advanced

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

Advanced Digital Logic Design EECS 303

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Chapter 8 Sequential Circuits

CHAPTER 4: Logic Circuits

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Synchronous Sequential Logic. Chapter 5

Part II. Chapter2: Synchronous Sequential Logic

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

CHAPTER 4: Logic Circuits

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

CPS311 Lecture: Sequential Circuits

CHAPTER 1 LATCHES & FLIP-FLOPS

Introduction to Sequential Circuits

Switching Circuits & Logic Design

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

give sequence to events have memory (short-term) use feedback from output to input to store information

INTRODUCTION TO SEQUENTIAL CIRCUITS

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Synchronous Sequential Logic

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Digital Logic Design I

Synchronous Digital Logic Systems. Review of Digital Logic. Philosophy. Combinational Logic. A Full Adder. Combinational Logic

Engr354: Digital Logic Circuits

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Latches and Flip-Flops UNIT 11 LATCHES AND FLIP-FLOPS. How to Remember the Past? Recap: Two Types of Switching Circuits. Iris Hui-Ru Jiang Spring 2010

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Chapter 4. Logic Design

Combinational / Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

2 Sequential Circuits

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

MC9211 Computer Organization

Flip-Flops and Sequential Circuit Design

RS flip-flop using NOR gate

IT T35 Digital system desigm y - ii /s - iii

Module 3. Logic Circuits With Memory

Sequential Logic Circuit

Last time, we saw how latches can be used as memory in a circuit

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Lecture 8: Sequential Logic

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

CS8803: Advanced Digital Design for Embedded Hardware

Digital Fundamentals: A Systems Approach

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Chapter 5 Synchronous Sequential Logic

CHAPTER 11 LATCHES AND FLIP-FLOPS

ECE 3401 Lecture 11. Sequential Circuits

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Chapter 5. Introduction

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Transcription:

Overview of hapter 4 Types of equential ircuits torage Elements Latches Flip-Flops equential ircuit nalysis tate Tables tate iagrams equential ircuit esign pecification ssignment of tate odes Implementation HL epresentation equential ircuits equential circuit contains: ombinational Logic: torage Elements Implements a multiple-output switching function Inputs are signals from the outside. Outputs are signals to the outside. Other inputs, tate or Present tate, are signals from storage elements. The remaining outputs, Next tate are inputs to storage elements. torage elements: Latches or Flip- Flops Inputs Outputs ombinational Logic Next tate tate 2 equential ircuits Types of equential ircuits ombinatorial Logic Next state function: Next tate = f(inputs, tate) ombinatorial Logic Outputs = g(inputs, tate) lternate output function (Moore): Outputs = h(tate) Type of output function heavily influences the design 3 epends on time at which inputs are observed by storage elements and state of storage elements change ynchronous ehavior defined from knowledge of its signals at discrete instances of time torage elements affected by inputs and can change state only in relation to a timing signal (clock pulses from a clock) synchronous ehavior defined from knowledge of inputs an any instant of time and the order in continuous time in which inputs change If clock just regarded as another input, all circuits are asynchronous! Nevertheless, the synchronous abstraction makes complex designs tractable! 4 iscrete Event imulation imulated NN Gate In order to understand the time behavior of a equential ircuit we use discrete event simulation ules: Gates modeled by an ideal (instantaneous) function and a fixed gate delay ny change in input values is evaluated to see if it causes a change in output value hanges in output values are scheduled for after the fixed gate delay t the time for a scheduled output change, the output value is changed along with any inputs connected to it 5 Example: 2-Input NN gate with a 5 ns. delay: F(Instantaneous) EL 5 ns. ssume and have been for a long time t time t=, changes to a at t=8 ns, back to. t(ns) F(I) F omment == for a long time F(I) changes to 5 F changes to after a 5 ns delay 8 F(Instantaneous) changes to 3 F changes to after a 5 ns delay 6 F

Gate Models toring tate uppose we represent gates with delay n ns as follows: n n n onsider a simple 2-input multiplexer: With function: = for = = for =... 7 What would happen if we connect output signal to input signal? 8 toring tate (ontinued) toring tate (ontinued) The circuit becomes: With function: = for =, and (t) dependent on (t 2) for =. The simple combinational circuit has now become a sequential circuit because its output is a function of a time sequence of input signals!.. 9 imulation example as input signals change with time. hanges occur every ns, so that the.2 ns delays are negligible. omment = when = Now remembers for = No change in = when = remembers Even when changes represents the state of the circuit, not just an output. toring tate (ontinued) asic (NO) Latch uppose we place an inverter in the feedback path. The following behavior results: The circuit is said to be unstable. For = it is an oscillator!... omment = when = Now "remembers" at.2 ns later at.2 ns later at.2 ns later ross-coupling two NO gates gives the Latch: Which has the time sequence behavior: (reset) (set) ' omment?? We don't know "et" to Now "remembers" "eset" to Now "remembers" oth go low?? INTILIT ' 2 2

asic (NN) Latch ross-oupling two NN gates gives the - Latch: (set) (reset) Which has the time sequence behavior: ' omment?? We don't know "et" to Now "remembers" "eset" to Now "remembers" oth go high?? INTILIT ' 3 locked - Latch dding two NN gates to the basic - NN Latch, we arrive at the locked Latch: This has a time sequence behavior similar to the asic - Latch except that: and are now active high signals (i.e. -- a "" signal on sets to ) and The and inputs are only observed when the line is high. has the meaning "lock" or "lock Pulse". ' 4 locked - Latch (ontinued) The locked - Latch can be described by a table: (t) (t+) omment The table describes what happens after the clock [at time (t+)] based on: current inputs (,) and current state (t). ' No change lear et??? Indeterminate No change lear et??? Indeterminate 5 haracteristic Equation for - Latch We can describe the behavior of output at time (t+) (immediately after one clock pulse) using a -Map: We can see that: (t+) = + ' given that (both are not high at once): = The locked Latch has the symbol: X 3 2 X 4 5 7 6 ' 6 Latch Latch and Flip-Flop Triggering dding an inverter to the - Latch, gives the Latch: Note that there are no "Indeterminate" states! (t+) omment No change et lear et The graphic symbol for a Latch is: ' ' o far, the latches we have talked about are "clocked" with an input pulse. Here are some possible wave forms: Positive lock Pulse lock Period Positive edge lock Period Negative lock Puls e w Negative Edge w Positive lock Pulse Negative lock Pulse W = Pulse Width lock Period = Time between referenced edges. eference level is generally 5%. ise and Fall times may be important as well. 7 8 3

ystem Level locking Master-lave Flip-Flop onsider a system comprised of ranks of latches or flip-flops connected by logic: If the lock Period is TOO HOT, some data changes will not propagate through the network. If the lock Pulse Width is TOO LONG, some data will propagate through the second rank of latches! ' ' ' ' ' LO ' ' ' ' ' LO One way to solve the locking Problem is with a master-slave organization: The complement of the clock is used to change the outputs. Now outputs change on ' only. Problem: One's catching in Master. Problem: Instability in Master. nother solution: Use -FF's or Edge Triggering ' ' ' 9 2 Edge Triggered Flip-Flops Flip-Flop haracteristic Tables Edge triggered Flip-Flops are sensitive to a small window for data changes around the time of a clock edge. etup Time: The time required for input data to be stable before the clock edge. Hold Time: The time data must remain stable after the clock edge. T ' T ' ' ' Positive Edge Triggered FFs ' ' Negative Edge Triggered FFs The haracteristic Tables: how current inputs. locking conditions are: how current state implicitly. Positive level triggered. Predict flip-flop state Negative level triggered. FTE LOING. Positive edge triggered. Negative edge triggered. NOTE: Proper clocking or flip-flop operation may be subject to conditions such as: et-up and hold times are met. imultaneous changes disallowed. 2 22 haracteristic Tables - Master lave Flip Flop (t+) omment (t) No change lear et '(t) omplement (t+) omment (t) No change lear et??? Indeterminate Two Latches driven by inverted clocks form a master-slave configuration. Input logic forms the logic transition: et (master) = s' eset (master) = s P Mas te r lave m s T (t+) omment (t) No change '(t) omplement (t+) omment lear et Master et is possible if the slave s is currently "" any time the clock P is high! Master eset is possible if the slave s is currently "" any time the clock P is high! This is referred to as One's atching. 23 24 4

Master lave ymbols Flip-Flop onventions Master-lave Flip Flops are denoted by a line near the outputs. This highlights the fact that the slave changes FTE the master clocking condition is deasserted. ' ' ' ' ubble near a clock input denotes an active low assertion. Triangle near the clock input denotes edge sensitive. L-haped Line near the output denotes Master/lave. ' Positive Pulse Triggered Mas ter/lave FFs Negative Pulse Triggered Mas ter/lave FFs 25 26 Propagation elay Logic gate, Latch and Flip-Flop timing parameters: TPLH: Propagation time low-to-high -- the time required for an output to transition from a low logic level to a high logic level from an input event (usually clock). TPHL: Propagation time high-to-low -- the time required for an output to transition from a high logic level to a low logic level from an input event (usually clock). lock kew: ifference in clock arrival times at different flip-flops. Tsu et-up time: Time data must be stable at FFs before the clock. Minimum clock period is set by: MX(TPHL,TPLH) + Logicelay + Tsu Hold Time and lock kew constrain the minimum logic plus flipflop delay. 27 alculating lock Frequency Given the network below, assume signal is changing from "" to "": lock Period = t PHL(Flip-Flop) +3*t PHL(Logic) + t su (Flip-Flop) Frequency = /(lock Period) LO LO ' tphl (Logic) lock Period tphl (Flip-Flop) tphl (Log ic ) ts u (Flip-Flop) tphl (Logic) LO ' 28 alculating lock Frequency ontd equential ircuit nalysis Given the network below, assume signal is changing from "" to "": lock Period = t PLH(Flip-Flop) +3*t PLH(Logic) + t su (Flip-Flop Frequency = /(lock Period) We ususally pick MX(t PHL, T PLH). LO LO ' tplh (Log ic ) lock Period tplh (Flip-Flop) tplh (Logic) ts u (Flip-Flop) tpl H(Lo g ic ) LO ' General Model urrent tate at time (t) is stored in an array of flip-flops. Inputs torage Elements ombinati onal Logic Next tate tate Next tate at time (t+) is a L oolean function of current state and inputs. Outputs at time (t) are a oolean function of current state (t) and (sometimes) current inputs (t). Outputs 29 3 5

Example (from Fig. 4-8) Example (Fig. 4-8) (ontinued) Input: x(t) Output: y(t) x tate: (t), (t) What is the Output Function? What is the Next tate Function? P ' ' y oolean Equations for the functions: x (t+) = (t)x(t) + (t)x(t) (t+) = (t)x(t) y(t) = x(t)((t) + (t)) Next tate P ' ' ' y Output 3 32 Example (Fig. 4-8) (ontinued) Where in time are inputs, outputs and states defined? Functional imulation - Fig. 4-8 Mano & ime. 53ns 6ns 59ns 22ns 265ns 38ns 37ns 424ns l EET... l LO... l X... l N... l N... l... l... l... l t t+ t+2 t+3 tate Table haracteristics tate table a multiple variable function table with the following four sections: Present tate the values of the state variables for each allowed state. Input the input combinations allowed. Next-state the value of the state at time (t+) based on the present state and the input. Output the value of the output as a function of the present state and (sometimes) the input. From the viewpoint of a truth table: the inputs are Input, Present tate and the outputs are Output, Next tate 33 34 Example: tate Table (Fig. 4-8) lternate tate Table The TTE TLE can be filled in using the next state and output equations: (t+) = (t)x(t) + (t)x(t) (t+) = (t)x(t) y(t) = x (t)((t) + (t)) Present tate Input Next tate Output (t) (t) x(t) (t+) (t+) y(t) 35 2-dimensional table that matches well to a -map. Present state rows and input columns in Gray code order. (t+) = (t)x(t) + (t)x(t) (t+) = (t)x(t) y(t) = x (t)((t) + (t)) Present Next tate Output tate x(t)= x(t)= x(t)= x(t)= (t) (t) (t+)(t+) (t+)(t+) y(t) y(t) 36 6

tate iagram haracteristics The oolean state variables are a vector of n bits. Not all 2 n states are necessarily used! imilarly not all input and output combinations are used. The state variables may need to be initialize to a valid, appropriate initial state. Examples: system with states requires a minimum of 4 bits (3 bits gives only 8 symbols). coded inputs can have 6 combinations, only of which have meaning. tate iagrams The sequential circuit function can be represented in graphical form as a state diagram with the following components: circle with the state name in it for each state directed arc from the Present tate to the Next tate for each state transition label on each directed arc with the Input value which causes the state transition, and label: On each circle with the output value produced, or On each directed arc with the output value produced. 37 38 tate iagrams Label form: On circle with output included: state/output Moore type output depends only on state On directed arc with the output included: input/output Mealy type output depends on state and input tate iagram Example x=/y= Which type? Gets confusing as circuit grows in size. For small circuits, usually easier to understand than the state table. x=/y= x=/y= x=/y= x=/y= x=/y= Try drawing state diagram for mod 4 counter and toggle (T) flip-flop x=/y= x=/y= 39 4 Flip-Flop Input Functions The -Flip-Flop easy to analyze since it has only one input. Other FFs such as the and have two inputs. onvention used in text: First Letters designate the FF input function. econd Letters (or subscript) designate the state variable. Example with Two FFs: = = x = x = x + x Example 4-8 with Two FFs: = x + x = x y = ( + ) x nalysis with Other Flip-Flops With a Flip-Flop: Next state obtained directly from the flip-flop input equation for i With a, T or Flip-Flop: Obtain the values for each flip-flop input in terms of present state and input values Use the corresponding flip-flop characteristic table from Table 4- to determine the next state value of the flip-flop 4 42 7

haracteristic Tables (t+) omment (t) No change lear et (t) omplement T (t+) omment (t) No change (t) omplement (t+) omment (t) No change lear et? Indeterminate (t+) omment lear et Flip-Flop ircuit nalysis tep : Write the oolean expression for each flip-flop input. For flip-flop : = = For flip-flop : = = x P ' ' 43 44 x Flip-Flop nalysis (ont.) tep 2: Using the diagram or equations, fill in the flip-flop inputs. = x = = x = x P ' ' Present Input Next tate tate Flip-Flop Inputs x 45 Flip-Flop nalysis (ont.) tep 3: y using haracteristic Table, the and inputs and the present state from the table, fill in the next state in the table for each flip flop. (t) = ; =; = ; Implies (t+) = (No hange) (t) = ; =; = ; Implies (t+) = (et ) (t+) omment (t) No change lear et (t) omp. Present Input Next Flip-Flop tate tate Inputs x 46 Flip-Flop nalysis (ont.) Flip-Flop nalysis (ont.) The result of completion of tep 3: Present Input Next Flip-Flop tate tate Inputs x For convenience, discard the flip-flop input columns What is the output function? 47 tep 4: From the diagrams or equations, place the output values in the table: Present Input tate Next tate x Output 48 8

dditional oncepts haracteristic Equations Moore and Mealy Models iagram Examples Table Examples haracteristic Equations an be used instead of characteristic tables for transforming flip-flop inputs to next state information (t+) omment (t) No change lear et (t) omplement (t+) = (t) + (t) T (t+) omment (t) No change (t) omplement (t+) omment (t) No change lear et? Indeterminate (t+) = + (t) (t+) omment lear et 49 (t+) = T (t) (t+) = 5 Moore and Mealy Models equential ircuits or equential Machines are also called Finite tate Machines (FMs). Two formal models exist: Moore Model Named after E.F. Moore. Outputs are a function ONL of states Usually specified on the states. Mealy Model Named after G. Mealy Outputs are a function of inputs N states Usually specified on the state transition arcs. 5 Moore and Mealy Example iagrams Mealy Model tate iagram maps inputs and state to outputs x=/y= Moore Model tate iagram maps states to outputs x= x= x=/y= / x=/y= x= x= / 2/ x= x=/y= x= 52 Moore and Mealy Example Tables Mealy Model tate Table maps inputs and state to outputs Present Next tate Output tate x= x= x= x= Moore Model tate Table maps state to outputs Present Next tate Output tate x= x= 2 2 2 53 9