Commit 1c844710 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Generate nodes file with new template system

parent f3cac1dd
...@@ -5,11 +5,3 @@ ...@@ -5,11 +5,3 @@
@@-- @_Node name_@ : Node name @@-- @_Node name_@ : Node name
@@-- @_Provided_@ : Provided interfaces (from pi.tmplt) @@-- @_Provided_@ : Provided interfaces (from pi.tmplt)
@@-- @_Required_@ : Required interfaces (from ri.tmplt) @@-- @_Required_@ : Required interfaces (from ri.tmplt)
protected @_CAPITALIZE:Name_@ is -- part of node "@_CAPITALIZE:Node_Name_@"
-- Calling Threads: @_Calling_Threads_@
@_Provided'Indent_@
@_Required'Indent_@
end @_CAPITALIZE:Name_@;
...@@ -4,4 +4,3 @@ ...@@ -4,4 +4,3 @@
@@-- The content of this file is generated from node.tmplt @@-- The content of this file is generated from node.tmplt
@@-- If there is no string defined here, no file will be generated per node, @@-- If there is no string defined here, no file will be generated per node,
@@-- (that's an option if the intent is to generate only one file per system) @@-- (that's an option if the intent is to generate only one file per system)
@_LOWER:Node_Name_@.adb
@@-- Specify the file name for the complete system (including nodes) @@-- Specify the file name for the complete system (including nodes)
@@-- (no template tag) @@-- (no template tag)
system_dump.log nodes
@@-- The following tags are available in this template: @@-- The following tags are available in this template:
@@-- @@--
@@-- @_Node_Name_@ : Name of the node from deployment view @@-- @_Node_Name_@ : Name of the node from deployment view
@@-- @_Partitions_@ : List of rendered code for partitions @@-- @_Partition_Names_@ : Tag listing the partitions in this node
@@-- @_Partitions_@ : List of rendered code for partitions
@@-- In standard TASTE systems there is only one partition per node @@-- In standard TASTE systems there is only one partition per node
package body @_CAPITALIZE:Node_Name_@ is -- node: @_Node_Name_@
@_Partitions_@
@_Partitions_@
end @_CAPITALIZE:Node_Name_@;
...@@ -9,18 +9,8 @@ ...@@ -9,18 +9,8 @@
@@-- @_CPU_Platform_@ : AADL CPU_Platform (e.g. PLATFORM_NATIVE) @@-- @_CPU_Platform_@ : AADL CPU_Platform (e.g. PLATFORM_NATIVE)
@@-- @_CPU_Classifier_@ : AADL CPU Classifier (e.g. ocarina_processors_x86::x86.linux) @@-- @_CPU_Classifier_@ : AADL CPU Classifier (e.g. ocarina_processors_x86::x86.linux)
@@-- @_Bound_Functions_@ : List of user functions from Interface view @@-- @_Bound_Functions_@ : List of user functions from Interface view
* @_LOWER:Name_@ @_CPU_Platform_@
package @_CAPITALIZE:Partition_Name_@ is @@TABLE@@
@_Bound_Functions_@
-- Coverage : @_Coverage_@ @@END_TABLE@@
-- Package Name : @_Package_Name_@ @_LOWER:Name_@_taste_api@_Threads_@
-- CPU Name : @_CPU_Name_@
-- CPU Platform : @_CPU_Platform_@
-- CPU Classifier : @_CPU_Classifier_@
-- Bound Functions : @_Bound_Functions_@
@_Threads'Indent_@
@_Blocks'Indent_@
end @_CAPITALIZE:Partition_Name_@;
...@@ -7,8 +7,3 @@ ...@@ -7,8 +7,3 @@
@@-- @_Param_Names_@ : List of parameter names @@-- @_Param_Names_@ : List of parameter names
@@-- @_Param_Types_@ : |_ Corresponding parameter types @@-- @_Param_Types_@ : |_ Corresponding parameter types
@@-- @_Param_Directions_@ : |_ Corresponding direction @@-- @_Param_Directions_@ : |_ Corresponding direction
procedure @_CAPITALIZE:Name_@ is -- @_Direction_@ of function @_Parent_Function_@
@@TABLE@@
-- @_Param_Names_@ : @_Param_Types_@ (@_Param_Directions_@)
@@END_TABLE@@
end @_CAPITALIZE:Name_@;
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
@@-- @_Nodes_@ : Code generated for the nodes @@-- @_Nodes_@ : Code generated for the nodes
@@-- @_Node_Names_@ : Tag (list) of node names @@-- @_Node_Names_@ : Tag (list) of node names
-- The system contains these nodes: -- Input file for the taste orchestrator: do not edit
@@TABLE@@ -- This file was generated automatically by taste/kazoo
-- @_TABLE_LINE_@ @_Node_Names_@ @_Nodes_@
@@END_TABLE@@
-- Content:
@_Nodes'Indent_@
...@@ -2,18 +2,11 @@ ...@@ -2,18 +2,11 @@
@@-- @@--
@@-- @_Name_@ : Thread name @@-- @_Name_@ : Thread name
@@-- @_Entry_Port_Name_@ : Name of the PI @@-- @_Entry_Port_Name_@ : Name of the PI
@@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION"
@@-- @_Pro_Block_Name_@ : Name of the protected function @@-- @_Pro_Block_Name_@ : Name of the protected function
@@-- @_Node_Name_@ : Name of the deployment node @@-- @_Node_Name_@ : Name of the deployment node
@@-- @_Remote_Threads_@ : Vector tag: output remote thread list @@-- @_Remote_Threads_@ : Vector tag: output remote thread list
@@-- @_Remote_PIs_@ : |_ Associated PI Name @@-- @_Remote_PIs_@ : |_ Associated PI Name
@@-- @@--
@@-- Matrix of output ports: Remote thread/corresponding remote PI @@-- Matrix of output ports: Remote thread/corresponding remote PI
task @_CAPITALIZE:Name_@ is @_Name_@
Port : @_Entry_Port_Name_@
Protected Block : @_Pro_Block_Name_@
Node : @_Node_Name_@
Out_Ports :
@@TABLE@@
@_Remote_Threads_@ -> @_Remote_PIs_@
@@END_TABLE@@
end @_CAPITALIZE:Name_@;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment