Entity Layout STATES

Synopsis

This declaration provides a mechanism for associating a gif image to a particular state of an entity.

Example

If the entity sdb_reg is defined with the statement: STATES (SDB_REG, SDB_REG_BUSY)
Then the elf file may contain the declaration: sdb_reg : STATES SDB_REG:operand SDB_REG_BUSY:operand_busy

Doing so, each instance of the sdb_reg entity will use images operand.gif and operand_busy.gif depending on their states. See /home/hase/Development/tomasulo/tmp for a complete example.

Note: This statement has to be put in place of the previous statement:
sdb_reg : PARAM cur_state MODE ENT_ICON POSITION (0,0)
The name of the state parameters is now my_state, in case of a tranformation from an existing project, you have to get rid of all cur_state references both in .edl file and in .hase files.

Frederic Mallet
Last modified: Mon Jul 29 15:50:38 BST 2002