Entity Layout PORT
Synopsis
This declaration provides a mechanism to position a port on
any side of an entity and at any point along the specified side.
- object_id str - The name of the entity that is associated with the port.
This can be the type name of an entity defined in the entity library,
in which case the port will be positioned on all the entities of that type. It can also
be the 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 seperated by a
'.'. Therefore the syntax for a complete hierarchical name is :
top_level_instance_name.next_level_name. ... .last_level_name.
The port information given to an instance overrides the port information of the library component.
- port_name str - The name of the port to be positioned.
- entity_side str - The name of the side of the entity on which the port
is to be positioned. This should be either TOP, BOTTOM, LEFT or RIGHT.
- port_position int - The number of pixels along the specified side that
the port is to be positioned. The number of pixels is relative to the top of the entity's
icon for ports on the LEFT or RIGHT, and relative to the left of the entity's
icon for ports on the TOP of BOTTOM. The value determines the position of the
center of the port and not the top/left. If '-1' is specified as the ports position then
the position_string is used to determine the ports position.
- position_string str - The position of the port specified as a string.
At the moment the only valid strings are 'END' and 'MIDDLE', allowing the port to be
positioned in the middle or at the end without knowing the size of the entity's icon.
- icon_file str - The icon file used to represent the port. The icon_file.gif
file is first searched in the project_directory/bitmaps directory, then in the
hase_directory/bitmaps directory. If no icon file is specified, the default is portdot.
Example
Mem_Hier.second_cache : PORT to_mem SIDE TOP POSITION -1 MIDDLE ICON portd
Frederic Mallet
Last modified: Tue Nov 20 16:11:47 GMT 2001