MESH1D - Automatic generation of entity lists.

See also MeshnD

Syntax

MESH1D name (
ENTITY_TYPE ( entity_type )
SIZE1( size )
NO_LINKS( 1 | 2 )
WRAP( 0 | 1 )
DESCRIPTION( "description" )
PARAMS( ref_parameters, ... )
)

Synopsis

The MESH1D constructor creates a 1-dimensional array of entities.

Automatic generation of links and naming.

The role of ports (SOURCE, DESTINATION) of the basic entity is used to generate automatic links between generated entities. For each entity, the first DESTINATION port is connected to the first SOURCE port of the previous entity. If no_links equals 2, then a second link is created from the second SOURCE port of the current entity to the second DESTINATION port of the previous entity.

All generated entities are named _0_ , _1_ , ... , _SIZE1-1_.

ELF Description

In the .elf file, optional information may be provided with the position of the entity.
For Mesh1D, one can add information about SPACING between contained entities and DIRECTION. Where SPACING has to be an integer and DIRECTION, if present, must be either HORIZONTAL or VERTICAL.
This information used to be declared in the .edl description. This information must now be declared in the EL description.

Moreover, some EL information is automatically generated.
The forwarding SOURCE port are set to be graphically displayed on the RIGHT part for HORIZONTAL meshes, or on the BOTTOM part for VERTICAL meshes. The backward SOURCE port (if no_links equals 2) are displayed on the LEFT part for HORIZONTAL meshed, or on the TOP part for VERTICAL meshed.
And vice-versa for DESTINATION port.

When the wrap flag is set, the LINKCORNER information is also generated.

Example

With this EDL description :
ENTITYLIB (
ENTITY sender (
DESCRIPTION ("sender")
PARAMS ( )
PORTS (
PORT ( un, t_readLink, SOURCE)
PORT ( deux, t_readLink, DESTINATION)
PORT ( trois, t_readLink, DESTINATION)
PORT ( quatre, t_readLink, SOURCE)
)
)

MESH1D six (
ENTITY_TYPE (sender)
SIZE1 (6)
NO_LINKS(2)
WRAP(1)
DESCRIPTION("list of six sender entity")
PARAMS()
)
)

STRUCTURE(
-- List of entity instances in top-level model
AENTITY sender SEND ( DESCRIPTION("single entity") )
AENTITY six SIX ( DESCRIPTION("first list entity") )
AENTITY six SIX2 ( DESCRIPTION("second list entity") )
)
)

and this ELF code:

SIX : position (10,10) 100 HORIZONTAL
SIX2 : position(10, 65) 50 VERTICAL
SEND : position (500,300)

one will obtain the following result:
Mesh1D Example
Frederic Mallet
Last modified: Tue Nov 20 15:32:52 GMT 2001