STRUCTURE - The definition of the Architecture
The STRUCTURE section of the project definition
describes which entities from the entity library are to be included in
the architecture description and how many of them there are. It also
deals with how the entities and connected together.
- architecture_entity
- This defines a component (AENTITY) to be included in the
architecture.
- communication_channel
- This defines a link (CLINK) that interconnects AENTITIES in
the architecture.
AENTITY - Architecture Entity
Synopsis
The AENTITY construct provides a mechanism for adding components from
the entity library to the architecture description.
Syntax
AENTITY typename inst_name ( DESCRIPTION ( "description" ) )
- typename str - The type name of the entity in the
entity library to be included in
the architecture description.
- inst_name str - The instance name of the entity to
be included. Entities of the same type must have different
instance names.
- description str - A description of an aspect of the
new architecture component.
Example:
AENTITY cache Primary_Cache (DESCRIPTION ("A primary cache instance"))
CLINK - Communication links between entities
Synopsis
The CLINK construct provides a mechanism to enable two
different ports to be connected together. The
ports maybe on the same or different entities. The entities must have
already been defined in the entity
library section of the project definition and the instance of each
entity involved must have been defined either as an AENTITY in the
STRUCTURE section of the project definition or as a CHILD in a compound entity.
Syntax
CLINK ( src_type.src_inst[src_port]->dest_type.dest_inst[dest_port], link_width )
- src_type str - The type name of the source entity to
be connected.
- src_inst str - The instance name of the source
entity to be connected. The type and instance name combination must be
unique.
- src_port str - The name of port on the source to be
connected.
- dest_type str - The type name of the destination
entity to be connected.
- dest_inst str - The instance name of the destination
entity to be connected. The type and instance name combination must be
unique.
- dest_port str - The name of port on the destination
to be connected.
- link_width str - The width of the link in
pixels. This is used when displaying the link. If the width is 0, the
link is not drawn and packets travelling along the link are not
displayed.
Example
CLINK (
CPU.cpu4[to_memory]->Memory.main_memory4[from_cpu], 3 )