contents.gifindex.gif

State Keyword (Declaration)

Syntax

state_id [, state_id ...] STATE [IN statereg_id ]

state_id - A symbolic state name to be referenced in a symbolic state description.

statereg_id - An identifier for a state register.

Purpose

The State declaration is made to declare a symbolic state name, and optionally associate it with a state register.

Use

If your design includes more than one symbolic state machine, use the IN keyword to associate each state with the corresponding state register.

Each state you declare corresponds to one flip-flop in a one-hot state machine.


See Also

Async_reset/Sync_reset

State_register

Using Symbolic State Descriptions