State Machines

Module 11

Reading Assignment:

Sec. 5-4, 5-5, 5-6: pp. 223-247

Schedule of Lectures

Sample Problems

Problems 1, 3, 4

Previous Lecture

Next Lecture

Supplemental Material

 

General Design Considerations

·        System state is stored using memory elements such as latches or flip-flops

·        State is updated synchronously or asynchronously

o   Synchronously : a discrete points in time determined by the a periodic signal such as the clock

o   Asynchronously : may be at any instant in time

o   Update is realized using combinational logic

§  Output function

§  Next state function

o   Outputs are computed as a function of

§  Current State and inputs à Mealy machine

§  Current State only  à Moore machine

·        We will be only concerned with synchronous state machines

o   Example: counters

 

State Machine Diagrams

·        Representation

o   States and transitions between states (arcs)

o   Label the states with the encoded state number

o   Label the arcs with inputs and outputs

o   For Moore machines, label the state with the output values

·        A sequential circuit can be in only one state at any given time

·        We will assume the state elements are registers

o   A state transition occurs on a clock edge

·        Examples

State Transition Tables

·        Inputs

o   External input signal values

o   Current state

·        Outputs

o   Output signal values (none for a Moore Machine)

o   Next state

·        Examples

Design

·        Generate a Boolean function for each external output bit

o   Inputs are external input signal values and the current state bits

·        Generate a Boolean function for each (next) state bit

o   Inputs are external input signal values and the current state bits

·        Use any design approach, for example, Boolean algebra or Karnaugh maps.

·        Implement the Boolean expressions using mixed logic

·        Examples

 

 

 

Question, comments or problems with this page to Sudhakar Yalamanchili