PORT - Communication Port Declaration
Syntax
PORT ( port_name, message_type, port_type )
Synopsis
The PORT construct enables the creation of communication ports for an entity.
Ports from different entities are connected together via links allowing
entities to exchange information.
- port_name str - This defines the name of the port to be created, it is used
to identify the port when messages are to be sent from the entity, and in the creation of links.
The port_name should be unique for the entity, you can however use the same port
name on different entities.
- message_type str - The message type defines the type of messages that the
link connected to the port can handle. It should specify the type name of a
link parameter defined in the parameter library.
- port_type str - This specifies the type of the port, that is, whether it is a
source port or a destination port. This is specified by using
SOURCE or DESTINATION in the PORT constructor.
Example
PORT ( processor_to_memory, DataLink, SOURCE )