SPP Tool Chain
2.2 Computational Cores

SPML supports explicit representation of the computational cores that implement Primitive components. The following elements are described how to modeling the computational cores.

The modeling elements that are used in representing a dataflow graph are described below. The description consists of a name of the modeling element, the stereotype of the modeling element which indicates the concrete syntactic realization of the element in GME (i.e. Folder, Model, Atom, Connection, Set, etc.), an explanation of the role and purpose of modeling element, and a description of the attributes of the modeling element. For additional details on understanding the concrete syntactic constructs of GME, please refer to the GME documentation.

1.    Core

Stereotype:

Model

Description:

Core model is contained in ImplAspect of Primitive model to represent a computational module.

 

Attribute:


Name

DataType

Note

FileName String File name of the generated code
WCET String worst case execution time
Power String  
CLB String  

2.    Arg, IndexedArg

Stereotype:

Atom

Description:

Abstract base classes that help capture common characteristics of the concrete argument atom classes.

3.    InArg

Icon:

Stereotype:

Atom

Description:

InArg captures the characteristics of the input argument.

 

Attribute:

Name

DataType

Note

Index Integer  
IsIndexType Boolean  
Modifier

Enumeration:
      none, ptr, ref
      ptrptr, ptrref

 
isConst Boolean  

4.    OutArg

Icon:

Stereotype:

Atom

Description:

OutArg captures the characteristics of the output argument.

 

Attribute:

Name

DataType

Note

Index Integer  
IsIndexType Boolean  
Modifier

Enumeration:
      none, ptr, ref
      ptrptr, ptrref

 
ownMemory Boolean  

5.    InOutArg

Icon:

Stereotype:

Atom

Description:

InOutArg captures the characteristics of the input/output argument.

 

Attribute:

Name

DataType

Note

Index Integer  
IsIndexType Boolean  
Modifier

Enumeration:
      none, ptr, ref
      ptrptr, ptrref

 
ownMemory Boolean  

6.    ReturnArg

Icon:

Stereotype:

Atom

Description:

ReturnArg captures the characteristics of the return argument.

 

Attribute:

Name

DataType

Note

IsIndexType Boolean  
Modifier

Enumeration:
      none, ptr, ref
      ptrptr, ptrref

 

7.    DataTypeRef

Icon:

Stereotype:

Reference

Description:

DataTypeRef is the reference referred to a data type.

8.    ArgType

Stereotype:

Connection

Description:

ArgType is the association between Arg and TVDTR which is base abstract class of DataTypeRef and TypeVar(please see 2.4 DataTypes). All the argument elements (InArg, OutArg, InOutArg, ReturnArg) can be typed by setting an ArgType association with a DataTypeRef referred to a datatype or a type variable.

9.    ArgMap

Stereotype:

Connection

Description:

ArgMap connection can be used to capture the mapping between the ports of the Primitive to the arguments of the Core. This mapping represents the integration of computational cores into the component and it is used to synthesize the platform integration (wrapper) code that invokes the core, when the component is executed in the context of the platform. 

 

Attribute:

Name

DataType

Note

MappingType

Enumeration:
      Pointer, Size, Value

Define the data passing semantics:
        Pointer:    a pointer to the block of data
        Size:          size of the block of data
        Value:       the value of scalar data

10.    TypeVar

Icon:

Stereotype:

Set

Description:

TypeVar specifies the type variables which are used to capture type-polymorphism by a set which can contain multiple DataTypeRef-s as set members representing the valid types that can be assigned to the type variable.

 

Attribute:

Name

DataType

Note

Index Integer  
BoundType String

Capture the type bound to a particular instance of the component. OCL constraints have been included in the meta-model that ensure that every TypeVar has a valid bound type i.e. the type listed in 'BoundType' attribute is related to the TypeVar object through a set membership relation.

11.    TypeMap

Stereotype:

Connection

Description:

 

12.    TVDTR
         
Described in 2.4. DataTypes

The metamodel of the above elements is shown as below:

Related Information

Build Primitive Software ComponentType

Build Primitive Hardware ComponentType

Next Up: 2.3 Conditional Classifier