Asm 1 PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

Digital Design

(CS/EEE/INSTR F215)

Dr.Anita Agrawal
BITS, Pilani-K.K.Birla Goa campus
Chapter 8

Dr. Anita Agrawal 02-Nov-16 1


State diagrams and state tables:
To describe the behavior of FSMs which have fewer
inputs and outputs

Algorithmic state machines:


To describe the behavior of FSMs which have larger
inputs and outputs

Analogous to traditional flowcharts

Dr. Anita Agrawal 02-Nov-16 2


Partitioning of a digital system

Dr. Anita Agrawal 02-Nov-16 3


Controlled Architecture: Processes the data.

Controller: Supplies a time sequence of commands to the


devices of the data processor

Dr. Anita Agrawal 02-Nov-16 4


Controlled architecture: data processing elements

Controller: elements which provide the time sequence of


commands.
is designed as a clocked synchronous sequential network
having several states each associated with the production of
a set of commands.

Dr. Anita Agrawal 02-Nov-16 5


A well defined procedure consisting of a finite number of steps
to the solution of the problem is called an algorithm. (controller:
hardware algorithm)

controller : ..Algorithmic State Machine..

ASM

Dr. Anita Agrawal 02-Nov-16 6


ASM . can be used as a stand-alone system

....Mealy machine or a Moore machine

.Hence another alternative approach to clocked synchronous


sequential network modeling

Dr. Anita Agrawal 02-Nov-16 7


Model of an algorithmic state machine

Dr. Anita Agrawal 02-Nov-16 8


Timing of an algorithmic state machine

Dr. Anita Agrawal 02-Nov-16 9


Transition Period: During which the external inputs and status
inputs are applied. The signals propagate through the network
and undergo transitions.

Stable Period: The values are usable by the various devices of the
system.

State Time: a periodic signal from a clock is used. Each clock


period corresponds to one state time.
Dr. Anita Agrawal 02-Nov-16 10
Combinational circuits of controlled architecture can respond during
the stable period.

If an action is to occur coincident with the synchronizing clock signal


then this will occur at the end of the state time.

Dr. Anita Agrawal 02-Nov-16 11


ASM Mealy & Moore
The next state and The next state and
output functions are output functions are
defined for the entire defined only at the
stable period of a state sampling times
time

Both conditional and Only one of them will


state outputs can occur occur depending upon
in the same ASM the type of model
(Mealy/Moore)

Dr. Anita Agrawal 02-Nov-16 12


Flowchart ASM
Uses boxlike or circular Uses boxlike or circular
symbols for representation symbols for representation
Each symbol requires one Entire collection of the
time interval symbols correspond to a
single time interval
Each symbol is executed All events occurring within
sequentially and is the single time interval are
completed before the next considered to be executed
simultaneously

Dr. Anita Agrawal 02-Nov-16 13


1. The State Box
2. The Decision Box
3. The Conditional output Box

The events within an ASM block occur simultaneously

Dr. Anita Agrawal 02-Nov-16 14


The state box

Dr. Anita Agrawal 02-Nov-16 15


The decision box. (a) Symbol.
(b) Alternate symbol.

Dr. Anita Agrawal 02-Nov-16 16


The conditional output box

Dr. Anita Agrawal 02-Nov-16 17


Example of an ASM block and its link paths

Link Link Link Link Link


path path path path path
1 2 3 4 5

Dr. Anita Agrawal 02-Nov-16 18

You might also like