L6 – Derivation of State Graphs and Tables. State Graphs and Tables  Problem Statement translation To State Graphs To State Tables  Ref: text : Unit.

Slides:



Advertisements
Similar presentations
L15 – Specification of State Machines
Advertisements

L8 – Reduction of State Tables. Reduction of states  Given a state table reduce the number of states.  Eliminate redundant states  Ref: text Unit 15.
L23 – Adder Architectures. Adders  Carry Lookahead adder  Carry select adder (staged)  Carry Multiplexed Adder  Ref: text Unit 15 9/2/2012 – ECE 3561.
L9 – State Assignment and gate implementation. States Assignment  Rules for State Assignment  Application of rule  Gate Implementation  Ref: text.
STATE DIAGRAM AND STATE TABLES
10/2/0810/2/2008ECE 561 -ECE Lecture 51 State Machine Implementation 10/2/20081ECE Lecture 5.
State Machine Design Procedure
L7 – Derivation of State Graphs and Tables – Moore Machines.
Analysis of Clocked Sequential Circuits
Circuits require memory to store intermediate data
INTRODUCTION TO SEQUENCIAL CIRCUIT
L18 – VHDL for other counters and controllers. Other counters  More examples Gray Code counter Controlled counters  Up down counter  Ref: text Unit.
2/2/09 - L14 Patents Part2Copyright Joanne DeGroat, ECE, OSU1 Patents Part 2.
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
Sequential Circuit Design
Overview Sequential Circuit Design Specification Formulation
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):
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
9/15/09 - L25 Registers & Load Enable Copyright Joanne DeGroat, ECE, OSU1 Registers & Load Enable.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexers.
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
L5 – Sequential Circuit Design
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
Unit 14 Derivation of State Graphs
9/15/09 - L7 Two Level Circuit Optimization Copyright Joanne DeGroat, ECE, OSU1 Two Level Circuit Optimiztion An easier way to generate a minimal.
L16 – Testbenches for state machines. VHDL Language Elements  More examples HDL coding of class examples Testbench for example  Testing of examples.
L10 – State Machine Design Topics. States Machine Design  Other topics on state machine design Equivalent sequential machines Incompletely specified.
1/8/ L20 Project Step 8 - Data Path Copyright Joanne DeGroat, ECE, OSU1 State Machine Design with an HDL A methodology that works for documenting.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexer Circuits.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
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.
L16 – VHDL for State Machines with binary encoding.
Sequential Design Basics. Lecture 2 topics  A review of devices that hold state A review of Latches A review of Flip-Flops 8/22/2012 – ECE 3561 Lect.
1/8/ L7 Project Step 3Copyright Joanne DeGroat, ECE, OSU1 Project Step 3 Structural Modeling and the Generate Statement.
Introduction to State Machine
9/15/09 - L21 Sequential Circuit Analaysis Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Analysis.
9/15/09 - L24 Other FF TypesCopyright Joanne DeGroat, ECE, OSU1 Other FF Types.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexer Circuits.
9/15/09 - L26 Shift RegistersCopyright Joanne DeGroat, ECE, OSU1 Shift Registers.
Digital Logic Design.
DESIGN OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
11/15/11 - L16 Professional TalksCopyright Joanne DeGroat, ECE, OSU1 Professional Talks.
9/15/09 - L19 Sequential CircuitsCopyright Joanne DeGroat, ECE, OSU1 Sequential Cirucits.
CEC 220 Digital Circuit Design Mealy and Moore State Machines Friday, March 27 CEC 220 Digital Circuit Design Slide 1 of 16.
Project 1.  Two parts Implement a 3 bit Gray Code Counter Implement a 4-to-1 muxtiplexer  Can be done on Altera (Quartis) or Xilinx 8/22/2012 – ECE.
Common Elements in Sequential Design. Lecture 3 topics  Registers and Register Transfer  Shift Registers  Counters Basic Counter Partial sequence counters.
State Diagrams Tuesday, 12 September State diagram Graphical representation of a state table. –Provides the same information as a state table. –A.
State Machine Design with an HDL
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
4.
L5 – Sequential Circuit Design
Lecture 13 Derivation of State Graphs and Tables
CS 352 Introduction to Logic Design
SLIDES FOR CHAPTER 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Copyright Joanne DeGroat, ECE, OSU
KU College of Engineering Elec 204: Digital Systems Design
L10 – additional State Machine examples
KU College of Engineering Elec 204: Digital Systems Design
L25 – Datapath ALU.
State Machine Design with an HDL
L11 – Midterm Review.
L7s Multiple Output example
L11 – State Machine Analysis
L4 – An overview of Quartis
EGR 2131 Unit 12 Synchronous Sequential Circuits
L25 – Final Review AU 15 Final Exam – Classroom – Journalism 300
Presentation transcript:

L6 – Derivation of State Graphs and Tables

State Graphs and Tables  Problem Statement translation To State Graphs To State Tables  Ref: text : Unit 14 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU2

Derivation of State Graphs  Problem Statement specifies the desired relationship between the input and output sequences. Sometimes called the specification.  First step is to translate this specification into a state table or state graph.  In the HDL world, there is a style that allows creation of the next state specification that does not require either a state graph or state table. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU3

A Sequence Detector Example  The specification The circuit will examine a string of 0’s and 1’s applied serially, once per clock, to the X input and produce a 1 only when the prescribed input sequence occurs. Any sequence ending in 101 will produce and output of Z=1 coincident with the last 1 input. The circuit does not reset when a 1 output occurs so whenever a 101 is in the data stream a 1 is output coincident with the last 1. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU4

General Form of the circuit  The circuit has the general form X – serial input stream Z – serial output stream Clk – the clock 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU5

Start construction of the graph.  Choose a starting state and a meaning for that state. The starting state is typically a reset state. Here meaning of starting state, S0, can be  The system has been reset and this is the initial state  A sequence of 2 or more 0’s has been received 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU6

Transitions from S0  Two possible transitions – 0 and 1 On a 0 stay in S0 On a 1 transition to a new state S1 with an new meaning. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU7

Add the next state  Now add state S1 Meaning – a sequence of 0…01 has been received when coming from state S0 Meaning – the first 1 has been received. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU8

Transitions from S1  What happens when in S1 A 0 input causes transition to a new state S2 with new meaning A 1 keeps you in S1 where the first 1 of a possible 101 sequence has occurred. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU9

State S2  State S2 – what is the meaning of being here? When transition is from S1 it means we have receive an input stream of xxx10. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU10

Transitions from S2  Are currently in S2 A 1 arrives and now have a sequence of 101  Action – Output a 1, and have the first 1 of a new sequence, i.e., transition to S1 A 0 arrives – now have a sequence of 100  Action – Move back to state S0 where you do not even have the start of a sequence, i.e., one or more 0 inputs. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU11

The full state diagram  The now completed state diagram  This can now be used to generate a state table – more on that later 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU12

Another example  Problem Statement: The circuit has the same form as before and shown below. The circuit will detect input sequences that end in 010 or When a sequence is detected the output Z is 1, otherwise Z is 0. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU13

The initial state  The RESET state – have no inputs yet  Then if you have a 0 input the output is 0 – transition to S1  If you have a 1 input the output is 0 and transition to S4 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU14

Meaning of states  S0 – Reset  S1 – 0 but not 10  S4 – 1 but not 01 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU15

More states  Add S2 having meaning that a 01 sequence has been received.  Add S3 having meaning that the sequence 10 has been received 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU16

Meaning of states after S2 S3  S0 – Reset  S1 – 0 but not 10  S2 – Sequence of 01  S3 – Sequence of 10  S4 – 1 but not 01 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU17

Consider inputs when in S2, S3  In S2 (01) and get a 0 – Transition to S3 (10) – output a 1  In S3 (10) and get a 1 – Transition to S2 (01) 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU18

Add a new state S5  S5 – Have received input sequence 100 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU19

When in S5  In S5 Input of a 1 means you have had a input of 1001 so transition to S2 as the input sequence now ends in 01 while Z is 1. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU20

Add other transitions  Complete the transitions not yet covered  Each state should have an output transition for both a 0 and a 1. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU21

The meaning of the states  S0 – Reset  S1 – 0 (but not 10)  S2 – Sequence of 01  S3 – Sequence of 10  S4 – 1 (but not 01)  S5 – Sequence of 100 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU22

Guidelines  Guidelines for Construction of State Graphs First, construct some sample input and output sequences to make sure you understand the problem (ref slides 5 and 13) Determine under what conditions the circuit is in reset state. If only one or two sequences lead to a 1 output construct a partial state graph. OR determine what sequences or groups of sequences must be remembered When adding transitions see if you transition to a defined state or a new state is to be added Make sure all state have a transition for both a 0 and a 1 but only 1! Add annotation or create a table to expound the meaning of each state. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU23

Look at  Look at programmed exercise 14.1 – page 449, 450 and 451  Page 480 in 7 th edition of textbook  Still need to consider Moore type implementations for the state graph. 9/2/2012 – ECE 3561 Lect 6 Copyright Joanne DeGroat, ECE, OSU24