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 @@
@@-- @_Node name_@ : Node name
@@-- @_Provided_@ : Provided interfaces (from pi.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 @@
@@-- The content of this file is generated from node.tmplt
@@-- 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)
@_LOWER:Node_Name_@.adb
@@-- Specify the file name for the complete system (including nodes)
@@-- (no template tag)
system_dump.log
nodes
@@-- The following tags are available in this template:
@@--
@@-- @_Node_Name_@ : Name of the node from deployment view
@@-- @_Partitions_@ : List of rendered code for partitions
@@-- @_Node_Name_@ : Name of the node from deployment view
@@-- @_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
package body @_CAPITALIZE:Node_Name_@ is
@_Partitions_@
end @_CAPITALIZE:Node_Name_@;
-- node: @_Node_Name_@
@_Partitions_@
......@@ -9,18 +9,8 @@
@@-- @_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
package @_CAPITALIZE:Partition_Name_@ is
-- Coverage : @_Coverage_@
-- Package Name : @_Package_Name_@
-- CPU Name : @_CPU_Name_@
-- CPU Platform : @_CPU_Platform_@
-- CPU Classifier : @_CPU_Classifier_@
-- Bound Functions : @_Bound_Functions_@
@_Threads'Indent_@
@_Blocks'Indent_@
end @_CAPITALIZE:Partition_Name_@;
* @_LOWER:Name_@ @_CPU_Platform_@
@@TABLE@@
@_Bound_Functions_@
@@END_TABLE@@
@_LOWER:Name_@_taste_api@_Threads_@
......@@ -7,8 +7,3 @@
@@-- @_Param_Names_@ : List of parameter names
@@-- @_Param_Types_@ : |_ Corresponding parameter types
@@-- @_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 @@
@@-- @_Nodes_@ : Code generated for the nodes
@@-- @_Node_Names_@ : Tag (list) of node names
-- The system contains these nodes:
@@TABLE@@
-- @_TABLE_LINE_@ @_Node_Names_@
@@END_TABLE@@
-- Content:
@_Nodes'Indent_@
-- Input file for the taste orchestrator: do not edit
-- This file was generated automatically by taste/kazoo
@_Nodes_@
......@@ -2,18 +2,11 @@
@@--
@@-- @_Name_@ : Thread name
@@-- @_Entry_Port_Name_@ : Name of the PI
@@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION"
@@-- @_Pro_Block_Name_@ : Name of the protected function
@@-- @_Node_Name_@ : Name of the deployment node
@@-- @_Remote_Threads_@ : Vector tag: output remote thread list
@@-- @_Remote_PIs_@ : |_ Associated PI Name
@@--
@@-- Matrix of output ports: Remote thread/corresponding remote PI
task @_CAPITALIZE:Name_@ is
Port : @_Entry_Port_Name_@
Protected Block : @_Pro_Block_Name_@
Node : @_Node_Name_@
Out_Ports :
@@TABLE@@
@_Remote_Threads_@ -> @_Remote_PIs_@
@@END_TABLE@@
end @_CAPITALIZE:Name_@;
@_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