SEQUENTIAL CIRCUITS __________________________________________________

Slides:



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

A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
1 SEQUENTIAL CIRCUITS DEFINITION OF SEQUENTIAL CIRCUIT SYNCHRONOUS SEQUENTIAL CIRCUIT ASYNCHRONOUS SEQUENTIAL CIRCUIT MEMORY ELEMENTS CLASSIFICATION: LATCHES.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
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 Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
11/10/2004EE 42 fall 2004 lecture 301 Lecture #30 Finite State Machines Last lecture: –CMOS fabrication –Clocked and latched circuits This lecture: –Finite.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Digital Computer Design Fundamental
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
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
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
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.
Introduction to Sequential Logic Design Finite State-Machine Analysis.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Digital Design: Sequential Logic Principles
Digital Design - Sequential Logic Design
LATCHES AND FLIP-FLOPS
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
Lecture #16: D Latch ; Flip-Flops
LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
Introduction to Sequential Logic Design
ANALYSIS OF SEQUENTIAL CIRCUITS
6. Sequential circuits Rocky K. C. Chang 17 October 2017.
Lecture 8 Dr. Nermi Hamza.
Instructor: Alexander Stoytchev
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
Synchronous Sequential Circuits
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Instructor: Alexander Stoytchev
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Sequential Circuits: Flip-Flops
Yee-Wing Hsieh Steve Jacobs
DIGITAL ELECTRONICS ТHEME 4: SEQUENTIAL LOGIC CIRCUITS. FLIP- FLOPS – ASYNCHRONOUS AND SYNCHRONOUS, R - S, D, T, J - K FLIP- FLOPS. The value of the outputs.
Sequential logic circuits
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic - 1
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Instructor: Alexander Stoytchev
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
Sequential Circuit Analysis & Design
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
FLIP-FLOPS.
Instructor: Alexander Stoytchev
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Sequential Circuits UNIT- IV
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
Chapter 5 Sequential Circuits.
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

SEQUENTIAL CIRCUITS __________________________________________________ DEFINITION OF SEQUENTIAL CIRCUIT SYNCHRONOUS SEQUENTIAL CIRCUIT ASYNCHRONOUS SEQUENTIAL CIRCUIT MEMORY ELEMENTS CLASSIFICATION: LATCHES AND FLIP-FLOPS LATCHES BASIC LATCH GATED LATCH EFFECT OF PROPAGATION DELAYS FLIP-FLOPS ASYNCHRONOUS BEHAVIOR ANALYSIS OF ASYNCHROUNOUS CIRCUITS __________________________________________________ ECSE-323/Department of Electrical and Computer Engineering/McGill University/ Prof. Marin. Revised 2005-02-14. Figures taken from Fundamentals of Digital Logic with VHDL Design, S. Brown and Z. Vranesic, 2nd Edition, McGraw Hill.

DEFINITION OF SEQUENTIAL CIRCUIT CIRCUITS IN WHICH THE VALUES OF THE OUTPUTS DEPENT ON: THE PRESENT VALUES OF THE INPUTS THE PAST BEHAVIOR OF THE CIRCUIT ARE CALLED SEQUENTIAL CIRCUIT. IN SUCH CIRCUITS STORAGE ELEMENTS STORE THE VALUES OF THE SIGNALS. THE CONTENTS OF THE STORAGE ELEMENTS REPRESENT THE STATE OF THE CIRCUIT. THERE ARE TWO TYPES: SYNCHRONOUS, AND ASYNCHRONOUS

DEFINITION OF SEQUENTIAL CIRCUIT SYNCHRONOUS SEQUENTIAL CIRCUITS: ARE SEQUENTIAL CIRCUITS CONTROLLED BY A CLOCK SIGNAL Combinational circuit Flip-flops Clock Q W Z

DEFINITION OF SEQUENTIAL CIRCUIT ASYNCHRONOUS SEQUENTIAL CIRCUITS: ARE SEQUENTIAL CIRCUITS: WITH NO CLOCK SIGNALS, NO FLIP-FLOPS TO STORE STATE VARIABLES Feedback signal Gate-delay R S Q Y y

MEMORY ELEMENTS EXAMPLES OF MEMORY ELEMENTS: A B A B Output Data Load TG1 TG2

MEMORY ELEMENTS CLASSIFICATION: LATCHES AND FLIP-FLOPS BASIC LATCH: is a feedback connection of two NOR gates or two NAND gates. GATED LATCH: is a basic latch that includes input gating and a control input signal. FLIP-FLOPS: is a storage element based on the gated latch principle which can have its output state changed only at the edge of the controlling clock signal.

MEMORY ELEMENTS CLASSIFICATION: LATCHES AND FLIP-FLOPS (Continues) The state of the LATCH keeps changing according to the values of the input signals during the period when the clock is active. The state of the FLIP-FLOP changes only at the edge of the controlling clock signal.

MEMORY ELEMENTS LATCHES: BASIC LATCH S R Q 1 0/1 1/0 (a) Circuit 1 0/1 1/0 (a) Circuit (b) Truth table Time ? (c) Timing diagram t 2 3 4 5 6 7 8 9 10 (no change)

MEMORY ELEMENTS LATCHES: GATED RS LATCH

MEMORY ELEMENTS LATCHES: GATED D LATCH

MEMORY ELEMENTS EFFECT OF PROPAGATION DELAYS: Latch Setup and hold times. SETUP TIME: Minimum time that the D input signal must be stable prior to the negative (positive) edge of the Clk (clock) signal. HOLD TIME: Minimum time that the D input signal must remain stable after the negative (positive) edge of the Clk (clock) signal t su h Clk D Q

MEMORY ELEMENTS FLIP-FLOPS:They are storage elements that can change their state no more than once during one clock cycle. Two types: Master-Slave and Edge-triggered. Master-Slave Flip-flop: D Q Master Slave m s (a) Circuit Clk D Q (c) Graphical symbol D Clock Q m s = (b) Timing diagram

MEMORY ELEMENTS FLIP-FLOPS (Continues). Edge-triggered Flip-flop Clock P4 P3 P1 P2 5 6 1 2 3 (a) Circuit Q (b) Graphical symbol 4

MEMORY ELEMENTS _______________________________________ INPUT/OUTPUT BEHAVIOR OF LATCHES AND FLIP-FLOPS* TYPES WHEN INPUTS ARE SAMPLED WHEN OUTPUTS ARE VALID UNCLOCKED LATCH (Basic latch) ALWAYS PROPAGATION DELAY FROM INPUT CHANGE LEVEL-SESITIVE LATCH (Gated latch) CLOCK HIGH tsu , th around falling clock edge POSITIVE-EDGE FLIP-FLOP CLOCK LOW-TO-HIGH TRANSITION tsu , th around rising clock edge PROPAGATION DELAY FROM RISING EDGE OF CLOCK NEGATIVE-EDGE FLIP-FLOP CLOCK HIGH-TO-LOW TRANSITION PROPAGATION DELAY FROM FALLING EDGE OF CLOCK MASTER-SLAVE FLIP-FLOP _______________________________________ * Contemporary Logic Design by R.H. Katz, Benjamin Cummings, 1994, page 290.

MEMORY ELEMENTS LEVEL-SENSITIVE VERSUS EDGE-TRIGGERED STORAGE ELEMENTS (a) Circuit D Q Clock a b c Clk D Clock Q a b (b) Timing diagram c

MEMORY ELEMENTS FLIP-FLOPS (Continues) Type Symbol Characteristic CHARACTERISTIC AND EXCITATION EQUATIONS OF D, T AND J-K FLIP-FLOPS Type Symbol Characteristic Excitation D-type D Q+ 0 0 1 1 Q Q+ D 0 0 0 0 1 1 1 0 0 1 1 1 T-type T Q+ 0 Q 1 !Q Q Q+ T 1 0 1 1 1 0 Q !Q D > Clk T

MEMORY ELEMENTS FLIP-FLOPS (Continues) Type Symbol Characteristic CHARACTERISTIC AND EXCITATION EQUATIONS OF D, T AND J-K FLIP-FLOPS Type Symbol Characteristic Excitation J-K-type J K Q+ 0 0 Q 0 1 0 1 0 1 1 1 !Q Q Q+ J K 0 0 0 x 0 1 1 x 1 0 x 1 1 1 x 0 SR-type (not in use; shown here for completeness) S R Q+ 1 1 Forbidden Q Q+ S R 0 1 1 0 1 0 0 1 J Q K !Q Clk > S Q R Clk !Q >

MEMORY ELEMENTS FLIP-FLOPS (Continues) FLIP-FLOP CONVERSIONS : Given a flip-flop as a buiding block, produce another type of flip-flop. APPROACH: Determine the input logic to the given flip-flop by satisfying the condition that both flip-flops must have identical logic behavior (their outputs are the same)

MEMORY ELEMENTS FLIP-FLOP CONVERSIONS (Continues): Example: Produce the circuit of a J-K-type flip-flop using a T-type flip-flop as a building block and NAND gates as needed The corresponding circuit is shown on next slide J K Q Q+JK Q+T T 0 0 0 1 1 0 1 1 1 T = J !Q + K Q

MEMORY ELEMENTS FLIP-FLOP CONVERSIONS: Example (Continues): Circuit of a J-K flip-flop using a T flip-flop

ASYNCHRONOUS SEQUENTIAL CIRCUIT IN SYNCHRONOUS SEQUENTIAL CIRCUITS A CLOCK SIGNAL CONSISTING OF PULSES, CONTROLS THE STATE VARIABLES WHICH ARE REPRESENTED BY FLIP-FLOPS. THEY ARE SAID TO OPERATE IN PULSE MODE. IN ASYNCHRONOUS CIRCUITS STATE CHANGES ARE NOT TRIGGERED BY CLOCK PULSES. THEY DEPEND ON THE VALUES OF THE INPUT AND FEEDBACK VARIABLES. TWO CONDITIONS FOR PROPER OPERATION: 1.-INPUTS TO THE CIRCUIT MUST CHANGE ONE AT A TIME AND MUST REMAIN CONSTANT UNTIL THE CIRCUIT REACHES STABLE STATE. 2.-FEEDBACK VARIABLES SHOULD CHANGE ALSO ONE AT A TIME. WHEN ALL INTERNAL SIGNALS STOP CHANGING, THEN THE CIRCUIT IS SAID TO HAVE REACHED STABLE STATE. WHEN THE INPUTS SATISFY CONDITION 1 ABOVE, THEN THE CIRCUIT IS SAID TO OPERATE IN FUNDAMENTAL MODE.

ASYNCHRONOUS SEQUENTIAL CIRCUIT ASYNCHRONOUS BEHAVIOR Consider the Set-Reset latch. The gates shown below have no delay. Their delay (twice one-gate delay) is represented by the square. R S Q Y y (a) Circuit with modeled gate delay

ASYNCHRONOUS SEQUENTIAL CIRCUIT ASYNCHRONOUS BEHAVIOR: Set-Reset latch (continues) The circuit behavior is represented by a State-assigned table or Flow table which show every possible transition of the circuit for each input value. Stable-states are those circled in the table because, while the inputs are stable, present state is equal to next state (internal variables stop changing). Columns with no circled sates indicate circuit oscillation for that particular input value. Figure 9.1. Analysis of the S-R latch. (b) State-assigned table Present Next state SR = 00 01 10 11 y Y 1

ASYNCHRONOUS SEQUENTIAL CIRCUIT ASYNCHRONOUS BEHAVIOR: Set-Reset latch (continues) FINITE-STATE-MACHINE MODEL: MOORE MODEL Figure 9.2. FSM model for the SR latch. MOORE MODEL (a) State table (b) diagram Present Next state Output SR = 00 01 10 11 Q A B 1 ¤

ASYNCHRONOUS SEQUENTIAL CIRCUIT ASYNCHRONOUS BEHAVIOR: Set-Reset latch (continues) FINITE-STATE-MACHINE MODEL: MEALY MODEL (a) State Table (b) State Diagram Present Next state Output, Q SR = 00 01 10 11 A B 1 – 10/1 00/1 11/0 01/0 00/0 10/ – A B 01 ¤ 11 SR/Q

ASYNCHRONOUS SEQUENTIAL CIRCUIT ANALYSIS OF ASYNCHROUNOUS CIRCUITS PROCEDURE: CUT ALL FEEDBACK PATHS AND INSERT A DELAY ELEMENT AT EACH POINT WHERE CUT WAS MADE INPUT TO THE DELAY ELEMENT IS THE NEXT STATE VARIABLE Yi WHILE THE OUTPUT IS THE PRESENT VALUE yi. DERIVE THE NEXT-SATE AND OUTPUT EXPRESSIONS FROM THE CIRCUIT DERIVE THE EXCITATION TABLE DERIVE THE FLOW TABLE DERIVE A STATE-DIAGRAM FROM THE FLOW TABLE

ASYNCHRONOUS SEQUENTIAL CIRCUIT ANALYSIS OF ASYNCHROUNOUS CIRCUITS: EXAMPLE D C Q Y y (a) Circuit Present Next state CD = 00 01 10 11 y Y Q 1 (b) Excitation table Present Next state CD = 00 01 10 11 Q A B 1 (c) Flow table

ASYNCHRONOUS SEQUENTIAL CIRCUIT ANALYSIS OF ASYNCHROUNOUS CIRCUITS: EXAMPLE CONTINUES Present Next state CD = 00 01 10 11 Q A B 1 (c) Flow Table (d) State Diagram: Moore Model x1 0x x0 11 A ¤ B 1 10 CD

ASYNCHRONOUS SEQUENTIAL CIRCUIT SYNTHESIS OF ASYNCHROUNOUS CIRCUITS THIS TOPIC IS NOT COVERED IN THIS COURSE. IT BELONGS TO A MORE ADVANCED LOGIC DESIGN COURSE. THIS SUBJECT IS VERY IMPORTANT IN TODAYS DIGITAL SYSTEMS DESIGN BECAUSE CLOCKS ARE SO FAST THAT THEY PRESENT PROPAGATION DELAYS MAKING SUBSYSTEMS TO OPERATE OUT OF SYNCHRONIZATION. TECHNIQUES FOR SYNTHESIS OF ASYNCHRONOUS CIRCUITS INCLUDE THE HOFFMAN OR CLASSIC SYNTHESIS APPROACH HANDSHAKING SIGNALING FOR TWO SUBSYSTEMS TO COMMUNICATE ASYNCHRONOUSLY