UNIT 14 DERIVATION OF STATE GRAPHS AND TABLES Spring 2011.

Slides:



Advertisements
Similar presentations
Chapter #8: Finite State Machine Design 8
Advertisements

©2004 Brooks/Cole FIGURES FOR CHAPTER 14 DERIVATION OF STATE GRAPHS AND TABLES Click the mouse to move to the next page. Use the ESC key to exit this chapter.
STATE DIAGRAM AND STATE TABLES
Sequential Circuits Storage elements
State-machine structure (Mealy)
1. 1. Output depends uniquely on inputs:  Contains only logic gates, AND, OR,...  No feedback interconnects 2. Output depends on inputs and memory:
Analysis of Clocked Sequential Circuits
COE 202: Digital Logic Design Sequential Circuits Part 3
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Circuits require memory to store intermediate data
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
A Sequential Parity Checker
Nonlinear & Neural Networks LAB. CHAPTER 13 Analysis of Clocked Sequential Circuit 13.1 A Sequential Parity Checker 13.2 Analysis by Signal Tracing 13.3.
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Sequential Circuit Design
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
ECE 331 – Digital System Design
ECE C03 Lecture 101 Lecture 10 Finite State Machine Design Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
1 COMP541 State Machines Montek Singh Feb 6, 2007.
Sequential Circuit Design
Spring 2002EECS150 - Lec15-seq2 Page 1 EECS150 - Digital Design Lecture 15 - Sequential Circuits II (Finite State Machines revisited) March 14, 2002 John.
Synchronous circuit design and analysis. Synchronous circuit design To implement a synchronous circuit corresponding to a given specification Revision.
1 Design of a Sequence Detector (14.1) Seq. ends in > Z=1 (no reset) Otherwise--> Z=0 Typical input/output sequence Partial Soln. (Mealy Network):
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)
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
Lecture 17 General finite state machine (FSM) design
Digital Computer Design Fundamental
L5 – Sequential Circuit Design
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
1 COMP541 State Machines Montek Singh Feb 8, 2012.
CHAPTER 12 REGISTERS AND COUNTERS
State Machines.
Unit 14 Derivation of State Graphs
Chap 4. Sequential Circuits
L6 – Derivation of State Graphs and Tables. State Graphs and Tables  Problem Statement translation To State Graphs To State Tables  Ref: text : Unit.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Logic and Computer.
1 CSE370, Lecture 19 Lecture 19 u Logistics n Lab 8 this week to be done in pairs íFind a partner before your lab period íOtherwise you will have to wait.
DLD Lecture 26 Finite State Machine Design Procedure.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Analysis and Synthesis of Synchronous Sequential Circuits A “synchronizing” pulse/edge signal (clock) controls the operation of the memory portion of the.
Registers; State Machines Analysis Section 7-1 Section 5-4.
CEC 220 Digital Circuit Design Mealy and Moore State Machines Friday, March 27 CEC 220 Digital Circuit Design Slide 1 of 16.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
Chap 5. Registers and Counters
Sequential Circuit Design Section State Machines Design Procedure 1.Specification- obtain (produce) problem description 2.Formulation - Obtain.
SLIDES FOR CHAPTER 15 REDUCTION OF STATE TABLES STATE ASSIGNMENT
Figure 8.1. The general form of a sequential circuit.
Chapter #6: Sequential Logic Design
Sequential Circuit Design
Lecture 13 Derivation of State Graphs and Tables
CS 352 Introduction to Logic Design
Lecture 12 Analysis of Clocked Sequential Network
Adapted by Dr. Adel Ammar
Analysis of Clocked Sequential Circuit
CS 352 Introduction to Logic Design
FIGURE 5.1 Block diagram of sequential circuit
CPE/EE 422/522 Advanced Logic Design L03
State Reduction and State Assignment
Lecture 14 Reduction of State Tables
ECE 434 Advanced Digital System L05
ECE434a Advanced Digital Systems L06
CSE 370 – Winter Sequential Logic-2 - 1
Finite State Machines (FSMs)
CHAPTER 15 REDUCTION OF STATE TABLES STATE ASSIGNMENT
Lecture 20 Logistics Last lecture Today HW6 due Wednesday
Instructor: Alexander Stoytchev
EGR 2131 Unit 12 Synchronous Sequential Circuits
CSE 370 – Winter Sequential Logic-2 - 1
Presentation transcript:

UNIT 14 DERIVATION OF STATE GRAPHS AND TABLES Spring 2011

© Iris H.-R. Jiang Derivation of State Graphs and Tables  Contents  Case studies: sequence detectors  Guidelines for construction of state graphs  Serial data code conversion  Alphanumeric state graph notation  Reading  Unit 14 Derivation of state graphs & tables 2 Basic unit Unit 11: Latch & FFs Simple sequential Ckt Unit 12: Registers & Counters Complex sequential Ckt Units 13-15: FSM Put it all together Unit 16: Summary

© Iris H.-R. Jiang Designing a Sequential Circuit  Given the specification of a sequential circuit  Design procedure: 1. Construct a state table or state graph (Unit 14) 2. Simplify (Unit 15) 3. Derive FF input equations and output equations (Unit 12) Derivation of state graphs & tables 3 Basic unit Unit 11: Latch & FFs Simple sequential Ckt Unit 12: Registers & Counters Complex sequential Ckt Units 13-15: FSM Put it all together Unit 16: Summary

Sequence Detectors 4 Derivation of state graphs & tables

© Iris H.-R. Jiang Case I (1/2)  Examine groups of 4 consecutive inputs & produce an output  Reset after every 4 inputs  e.g., X = Z =  Observation:  Typical sequence  Partial state graph Derivation of state graphs & tables Detector XZ Clock 0/0 S0S0 S1S1 S3S3 1/0 S2S2 0/0 1/0 S4S4 0/0 1/1 X = 0101 X = 1001 Input/output

© Iris H.-R. Jiang Case I (2/2)  Complete state graph Derivation of state graphs & tables 6 0/0 S0S0 S1S1 S3S3 1/0 S2S2 0/0 1/0 S4S4 0/0 1/1 S5S5 0/0 S6S6 1/0 0/0 1/0

© Iris H.-R. Jiang Case II (1/4)  Examine groups of 3 consecutive inputs & produce an output  No reset  e.g., X = Z =  State graph (Mealy)  S 0 : initial, S 1 : get …1, S 2 : get …10 Derivation of state graphs & tables Detector XZ Clock S0S0 S1S1 0/0 1/0 S2S2 1/1 0/0 S0S0 S1S1 1/0 S2S2 1/1 0/0 1/0 S0S0 S1S1 0/0 1/0

© Iris H.-R. Jiang Case II (2/4)  State table Derivation of state graphs & tables 8 X A + =X'B X X 0 AB X B + =X X X 1 AB X Z=XA X X 1 AB Present state S0S1S2S0S1S2 Next state X = 0 X = 1 S0S2S0S0S2S0 S1S1S1S1S1S1 Present output X = 0 X =  State maps AB A + B + X = 0 X = XX 01 XX Z X = 0 X = 1 000X000X 001X001X

© Iris H.-R. Jiang Case II (3/4)  State maps  Realize it 9 CK A'A'A D B'B'B D Clock X Z Derivation of state graphs & tables Q: Check by yourself X = Z = ??

© Iris H.-R. Jiang Case II (4/4)  Moore?  S 0 : initial, S 1 : get …1, S 2 : get …10, S 3 : get …101 Derivation of state graphs & tables S00S00 S10S10 S20S20 S31S S00S00 S10S10 S20S20 S31S S00S00 S10S10 S20S20 Present state S0S1S2S3S0S1S2S3 Next state X = 0 X = 1 S0S2S0S2S0S2S0S2 S1S1S3S1S1S1S3S1 Present output AB A + B + X = 0 X = Z

© Iris H.-R. Jiang Case III (1/2)  010 & 1001 detector  e.g., X = a b c d e f Z =  State assignment Derivation of state graphs & tables Detector XZ Clock  State for “1001”  Complete  State for “010”

© Iris H.-R. Jiang Case III (2/2) Derivation of state graphs & tables 12 0/0 S0S0 S1S1 S3S3 S2S2 1/0 0/1 1/0 S4S4 0/0 1/0 b c S5S5 d 0/0 1/1 e ? 0/0 S0S0 S1S1 S3S3 S2S2 1/0 0/1 1/0 a 0/0 S0S0 S1S1 S3S3 S2S2 1/0 0/1 1/0 S4S4 0/0 1/0 b c S5S5 g 0/01/1 f 1/0 e h 0/0 i  State for “1001”  Complete  State for “010”

© Iris H.-R. Jiang Case IV (1/2)  Specifications  Z = 1 if total # of 1’s is odd and at least two consecutive 0’s have been received  e.g., X = Z =(0)  State assignment  Initial state and state for 1’s  State for 0’s Derivation of state graphs & tables 13 Reset or even 1’s 1 S00S00 S10S10 1 Odd 1’s

© Iris H.-R. Jiang Case IV (2/2)  State graph 14 Reset or even 1’s 1 S00S00 S10S10 1 Odd 1’s 1 S00S00 S10S10 1 S30S30 S41S41 S20S20 1 1a S00S00 S10S10 1 S30S30 S41S41 S20S b 0 0 S50S c g d e f Even 1’sOdd 1’s Initial state and state for 1’s Derivation of state graphs & tables

Guidelines for State Graph Construction 15 Derivation of state graphs & tables

© Iris H.-R. Jiang Guidelines for State Graphs Construction  Steps 1. Construct sample sequences to help you understand the problem 2. Determine under what conditions it should reset 3. If only one or two sequences leads to a nonzero output, construct a partial state graph Another way, determine what sequences or groups of sequences must be remembered by the circuit and set up states accordingly 4. Each time you add an arrow to the state graph, determine whether it can go to one of the previously defined states or whether a new state must added 5. Check your graph to make sure there is one and only one path leaving each state for each combination of values of the input variables 6. When your graph is complete, verify it by applying the input sequences formulated in step 1 Derivation of state graphs & tables 16

Serial Data Code Conversion 17 Derivation of state graphs & tables

© Iris H.-R. Jiang Serial Data Transmission  Coding schemes Derivation of state graphs & tables 18 Receiver Serial Data Clock Clock Recovery Circuit TransmitterReceiver Serial Data Clock Bit Sequence NRZ NRZI RZ Manchester Clock bit time Use 2 cables (not good) NRZ: Non-return-to-zero NRZI: Non-return-to-zero-inverted RZ: Return-to-zero 0  0; 1  1 0  d - ; 1  ~d - 0  0; 1  10 0  01; 1  10 Transmitter

© Iris H.-R. Jiang Mealy?  Mealy:  Output depends on Current state (synchronous) Input (maybe asynchronous)  Fewer states Derivation of state graphs & tables 19 Conversion Network Z Manchester data NRZ data Clock2 X S0S0 S1S1 S2S2 1/1 1/00/1 0/0 Present state S0S1S2S0S1S2 Next state X = 0 X = 1 S1S0-S1S0- S2-S0S2-S0 output (Z) X = 0 X = NRZ (X) Manchester (ideal) Clock2 State Z (Actual) 1 clock period S0S0 S1S1 S0S0 S2S2 S0S0 S2S2 S0S0 S2S2 S0S0 S1S1 S0S0 S1S1 S0S0 S2S2 S0S0 S1S Glitch: false output Bit sequence NRZ: combintaion of double 0’s & double 1’s Starting state: S 0

© Iris H.-R. Jiang Moore?  Moore:  Output only depends on Current state (synchronous)  More states (in general)  1 clock period delay Derivation of state graphs & tables 20 Clock2 State Z X (NRZ) 1 clock period S0S0 S1S1 S2S2 S3S3 S0S0 S3S3 S0S0 S3S3 S0S0 S1S1 S2S2 S1S1 S2S2 S3S3 S0S0 S1S S31S31 S21S21 S00S S10S Present state S0S1S2S3S0S1S2S3 Next state X = 0 X = 1 S1S2S1-S1S2S1- S3-S3S0S3-S3S0 Present output (Z) Conversion Network Z Manchester data NRZ data Clock2 X Starting states: S 0, S 2

Alphanumeric State Graph Notation 21 Derivation of state graphs & tables

© Iris H.-R. Jiang Alphanumeric State Graph Notation  When a sequential circuit has several inputs, label the state graph arcs with alphanumeric input variable names instead of 0’s and 1’s  e.g., 2 inputs: F: forward, R: reverse  Decide priority. E.g. F has higher priority than R Derivation of state graphs & tables 22 S0Z1S0Z1 R S2Z3S2Z3 S1Z2S1Z2 R R F FF Incomplete S0Z1S0Z1 F'R S2Z3S2Z3 S1Z2S1Z2 F FF F'R' Present state S0S1S2S0S1S2 Next state FR = S 0 S 2 S 1 S 1 S 1 S 0 S 2 S 2 S 2 S 1 S 0 S 0 Output Z 1 Z 2 Z

© Iris H.-R. Jiang Complete?  Completely specified state graph  OR together all input labels on arcs emanating from a state, the result can reduce to 1 Cover all conditions: F + F'R +F'R' = F + F' = 1  AND together any pair of input labels on arcs emanating from a state, the result can reduce to 0 Only one arc is valid: F·F'R = 0, F·F'R' = 0, F'R·F'R' = 0  Notation in state graph  X 1 X' 4 /Z 2 Z 3  1--0/0110  -/Z 1  ----/1000 For any combination of input values… Derivation of state graphs & tables 23 S0Z1S0Z1 F'R S2Z3S2Z3 S1Z2S1Z2 F FF F'R'

© Iris H.-R. Jiang Homework for Unit 14  14.26, 14.32, 14.41, Derivation of state graphs & tables 24