The STATES declaration provides a mechanism for associating a gif
image with a particular state of an entity.
Syntax
object_id : STATES state1_name gif_image1 state2_name gif_image2 ...
object_idstr - The name of the entity. This can be
the type name of an entity defined in the entity library, in which
case the state will be associated with all the entities of that
type. It can also be the instance name of the required entity. The
instance name should be the complete hierarchical name. When
specifying a level name from the hierarchy, the instance name, not the
type name, should be used. Each level in the hierarchy should be
separated by a '.', i.e. the syntax for a complete hierarchical
name is:
state1_name str - One of the states defined in the
ENTITY declaration.
gif_image1 str - The gif image to be associated
with state1. HASE looks for this file in the project's bitmaps
(image repository) subdirectory, then in HASE's own internal image
repository. If it cannot be found in either, the HASE default_ent.gif
image is used. If no state is defined or no image is associated with a
state, the name of the entity (not of the instance) is used to find
the gif image.
Example
Entity definition:
ENTITY memory
(
DESCRIPTION ("Memory")
STATES (M_IDLE, M_READ, M_WRITE)
etc
);
Entity layout:
MEMORY : position (350,30)
MEMORY : STATES M_IDLE:memory M_READ:mem_read M_WRITE:mem_write etc