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.

The Entity Layout format is a list of lines each of which should have one of the following format:
object_id : POSITION (x,y) info1 info2 info3
or
object_id : PORT port_name SIDE entity_side POSITION port_position position_string ICON icon_file
or
object_id : PARAM param_name MODE mode_name POSITION (param_x,param_y)
or
object_id : STATES state_name1:gif_image1 state_name2:gif_image2 ...
or
object_id : LINKCORNER src_entity src_port dest_entity dest_port no_of_corners (cx1,cy1) ...


where object_id can be either an entity name (which has been declared in the entity library of the edl file, or a component name defined as a CHILD of a COMPENTITY or as an AENTITY in the STRUCTURE.