Next: Iteration strategies
Up: Gwendia language
Previous: Processors
Contents
Processor input and output ports are named and declared. A port may be an input
(<in> tag) or an output (out tag). For each input/output, the
following attributes can be defined:
- type (mandatory): contains the base type of data i.e., a basic
type identifier that describes the type of the data received/generated by the
port. When data is scalar this is the actual data type, when data is an array
this is the type of the data leaves of the array.
- depth (optional, default is 0): contains the depth of the array
if applicable
- cardinality (optional, only for out ports with depth ):
contains the number of elements of the generated array. This value can be
provided only if it is a constant i.e., the number of elements does not vary
for each instance of data. When the data depth is greater than 1, the format
for the cardinality attribute is a column-separated list of integers (for
example, "2:3" for an array containing 2 arrays of 3 elements).
DIET Team. 2010-05-26