7.4 Clocked Synchronous State-Machine Analysis

Slides:



Advertisements
Similar presentations
COE 202: Digital Logic Design Sequential Circuits Part 2
Advertisements

These slides incorporate figures from Digital Design
Clocked Synchronous State-machine Analysis
State-machine structure (Mealy)
COE 202: Digital Logic Design Sequential Circuits Part 3
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Princess Sumaya University
Logical Circuit Design Week 11: Sequential Logic Circuits Mentor Hamiti, MSc Office ,
Circuits require memory to store intermediate data
1 EE365 Sequential-circuit analysis. 2 Clocked synchronous seq. circuits A.k.a. “state machines” Use edge-triggered flip-flops All flip-flops are triggered.
1 EE121 John Wakerly Lecture #10 Some shift-register stuff Sequential-circuit analysis.
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
1 Sequential logic networks I. Motivation & Examples  Output depends on current input and past history of inputs.  “State” embodies all the information.
CS 140 Lecture 9 Professor CK Cheng 4/30/02. Part II. Sequential Network 1.Memory 2.Specification 3.Implementation S XY s i t+1 = g i (S t, x t )
1 EE365 Sequential-circuit design Sequential-circuit synthesis.
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
5. Choose a flip-flop type for the state memory. ReturnNext 7.4 Clocked Synchronous State-Machine Design 1. Construct a state/output table corresponding.
Sequential Logic Design
Sequential Logic Design Principles 7.1 Bistable Elements 7.2 Latches and Flip-Flops 7.4 Clocked Synchronous State- Machine Analysis 7.5 Clocked Synchronous.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
ECE 301 – Digital Electronics
Digital Logic Design Lecture 26. Announcements Exams will be returned on Thursday Final small quiz on Monday, 12/8. Final homework will be assigned Thursday,
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
1 Synchronous Sequential Circuit Analysis. 2 Synchronous Sequential Circuit State Memory – A set of n edge-triggered flip-flops that store the current.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Sequential Circuit Design.
IKI c-Synthesis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: Prof. Daniel Gajski’s transparency.
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
T Flip-Flop A T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when the two inputs are tied together. When T =
Synchronous Circuit Design (Class 10.1 – 10/30/2012) CSE 2441 – Introduction to Digital Logic Fall 2012 Instructor – Bill Carroll, Professor of CSE.
Circuit, State Diagram, State Table
State Machines.
Lecture 4 – State Machine Design 9/26/20081ECE Lecture 4.
Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5.
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Introduction to Sequential Logic Design Finite State-Machine Design.
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
Fall 2004EE 3563 Digital Systems Design EE3563 Chapter 7, 8, 10 Reading Assignments  7.1, 7.2, 7.3  8.1, ,   8.5.1, 8.5.2,
EE121 John Wakerly Lecture #11
1 Finite State Machines (FSMs) Now that we understand sequential circuits, we can use them to build: Synchronous (Clocked) Finite State Machines Finite.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Registers; State Machines Analysis Section 7-1 Section 5-4.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
Sequential Design Motivation Sequential processing often more tractable than parallel Example Sequential processing sometimes only method that works Example.
Princess Sumaya University
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Introduction to Sequential Logic Design Finite State-Machine Analysis.
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #3 Flip-Flops, Registers, Shift registers, Counters, Memory 3/3/2005.
State Machine Design State Machine Design Digital Electronics
Chapter 6 Analysis of Sequential Systems Sequential Memory Feedback.
State Machine Design Shiva choudhary En No.: Electronics and comm. Dept K.I.T.,Jamnagar 1.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
1 Clocked synchronous seq. circuits A.k.a. “state machines” Use edge-triggered flip-flops All flip-flops are triggered from the same master clock signal,
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Lecture #17: Clocked Synchronous State-Machine Analysis
Introduction to Sequential Logic Design
ANALYSIS OF SEQUENTIAL CIRCUITS
Sequential logic design principles
FIGURE 5.1 Block diagram of sequential circuit
Asynchronous Inputs of a Flip-Flop
T Flip-Flop A T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when the two inputs are tied together. When T.
Chapter5: Synchronous Sequential Logic – Part 4
FINITE STATE MACHINES.
Presentation transcript:

7.4 Clocked Synchronous State-Machine Analysis Introduction The goal of a sequential circuit analysis is to determine the next-state and output functions so that the behavior of a circuit can be predicted. In this section, we will discuss how to analyze a clocked synchronous state-machine. It’s one of the main emphases in this course. Turn-the-crank The characteristic is that the steps for analyzing a clocked synchronous state-machine are almost the same. So, it will become very simple if we have learned the basic principles. Return Next

7.4 Clocked Synchronous State-Machine Analysis Specialized Words flip-flop 触发器 excitation equation 激励(驱动)方程 transition/state equation 转移/状态方程 output equation 输出方程 characteristic equation 特性(征)方程 transition table 转换表 state table 状态表 state/output table 状态/输出表 state diagram 状态图 Return Back Next

7.4 Clocked Synchronous State-Machine Analysis Review 1. What are the two types the state-machine structure include? What characteristic does it have for each one? Mealy machine Moore machine Z = G (Q n, X ) Z = G (Q n) 2. What are the excitation equation, transition equation, and output equation ? Output equation Excitation equation Transition equation Next-state logic F State memory input W Output logic G Return Back Next

7.4 Clocked Synchronous State-Machine Analysis 3. Please write the characteristic equations of D flip-flop and J-K flip-flop. D flip-flop Qn+1= D J-K flip-flop Qn+1= J·Qn+K·Qn 7.4.1 Analysis of State Machines with D Flip-Flops The analysis has three basic steps: 1. Determine the next-state and output functions F and G. 2. Use F and G to construct a state/output table that completely specifies the next state and output of the circuit for every possible combination of current state and input. Return Back Next

7.4 Clocked Synchronous State-Machine Analysis 3. Draw a state diagram that presents the inform-ation from the previous step in graphical form. Q0 Q1 D0 D1 Example I MAX=Q1·Q0·EN Return Back Next

7.4 Clocked Synchronous State-Machine Analysis Excitation equations Transition equations How can we obtain the transition equations from the excitation equations? Output equation MAX=Q1·Q0·EN Return Back Next

7.4 Clocked Synchronous State-Machine Analysis 1 0 0 0 1 1 0 1 1 Q1 Q0 Transition/output table EN 1 S0 S1 S2 S3 S State/output table EN S1 S2 1 1 1 MAX=Q1·Q0·EN Return Back Next

7.4 Clocked Synchronous State-Machine Analysis 1 S0 S1 S2 S3 S State/output table EN S1 S2 S0 S1 S2 S3 1/0 0/0 State diagram 1/1 S EN/MAX What is the function of the logic circuit ? It’s a modulo-4 2-bit binary counter with enable. Simulation Return Back Next

7.4 Clocked Synchronous State-Machine Analysis Example II Q0 Q1 Q2 D0 D1 D2 Return Back Next

7.4 Clocked Synchronous State-Machine Analysis Excitation equations Transition equations Output equation Return Back Next

7.4 Clocked Synchronous State-Machine Analysis Transition/output table 0 1 0 0 0 0 0 1 0 1 0 0 1 1 1 0 1 1 1 1 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Q2Q1Q0 0 0 XY 1 0 0 1 1 0 1 1 1 0 Z1Z2 Return Back Next

7.4 Clocked Synchronous State-Machine Analysis State/output table s0 s1 s2 s3 s4 s5 s6 s7 S 00 XY Z1Z2 1 0 0 0 1 1 01 11 10 State diagram S0 S1 S3 S2 1x/10 0x/10 S XY/Z1Z2 S5 S6 S7 S4 1x/00 01/10 xx/11 0x/00 00/10 xx/10 Simulation Return Back Next

7.4 Clocked Synchronous State-Machine Analysis 7.3.3 Analysis of State Machines with J-K Flip-Flops Q0 Q1 Q2 J0 J1 J2 K0 K1 K2 Excitation equations Transition equations Return Back Next

7.4 Clocked Synchronous State-Machine Analysis Transition/output table 0 0 1 0 1 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Q2 Q1 Q0 1 C State diagram Q2Q1Q0 /C 000 001 010 011 100 111 110 101 /1 /0 Simulation Return Back Next

7.4 Clocked Synchronous State-Machine Analysis Summary The detailed steps for analyzing a clocked synchronous state machine are as follows: 1. Determine the excitation equations. 2. Determine the transition equations. 3. Determine the output equations. 4. To construct a transition/output table. 5. To construct a state/ output table. 6. (Optional) Draw a state diagram. Exercises P647~649 7.9, 7.15, 7.16, 7.17, 7.18, 7.19 Return Back