partition.tmplt 1.62 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@            : Partition name (usually the name of the binary)
@@-- @_Threads_@         : Code generated for the threads
@@-- @_Thread_Names_@    : Tag: list of thread names
@@-- @_Node_Name_@       : Name of the node containing this partition
@@-- @_Blocks_@          : Code generated for protected functions
@@-- @_Coverage_@        : True if user requested code coverage enable
@@-- @_Package_Name_@    : AADL Package name for the target (e.g. ocarina_porocessors_x86)
@@-- @_CPU_Name_@        : CPU Name (e.g. x86_linux)
@@-- @_CPU_Platform_@    : AADL CPU_Platform (e.g. PLATFORM_NATIVE)
@@-- @_CPU_Classifier_@  : AADL CPU Classifier (e.g. ocarina_processors_x86::x86.linux)
@@-- @_Bound_Functions_@ : List of user functions from Interface view
14
15
16
17
@@-- @_Thread_Src_Name_@ : Vector tag : connection thread name (source)
@@-- @_Thread_Dst_Name_@ : Vector tag : connection thread name (dest)
@@-- @_Thread_Src_Port_@ : Vector tag : connection port name (source)
@@-- @_Thread_Dst_Port_@ : Vector tag : connection port name (dest)
18
19
20
21
22
   with @_Package_Name_@;
@@TABLE@@
   with @_Thread_Names_@_Thread;
@@END_TABLE@@

23
process @_CAPITALIZE:Name_@ extends DeploymentView::DV::@_CAPITALIZE:Node_Name_@::@_CAPITALIZE:Name_@
24
25
end @_Name_@;

26
process implementation @_CAPITALIZE:Name_@.final
27
28
29
30
31
subcomponents
@@TABLE@@
   @_Thread_Names_@ : thread @_Thread_Names_@_Thread::@_Thread_Names_@.others;
@@END_TABLE@@
connections
32
@@TABLE@@
Maxime Perrotin's avatar
Maxime Perrotin committed
33
   port @_LOWER:Thread_Src_Name_@.OUTPORT_@_LOWER:Thread_Src_Port_@ -> @_LOWER:Thread_Dst_Name_@.INPORT_@_LOWER:Thread_Dst_Port_@;
34
@@END_TABLE@@
35
end @_Name_@.final;