Commit c170ba78 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Improve simulation templates

Filter passive functions and timer managers which have no message queue
parent 4c901029
......@@ -609,6 +609,18 @@ This file is processed twice, first time for required interfaces of the function
|-
|Coord.X
|DOCUMENTATION MISSING
|-
|Parent_Instance_Of
|DOCUMENTATION MISSING
|-
|IF_Offset
|DOCUMENTATION MISSING
|-
|IF_Priority
|DOCUMENTATION MISSING
|-
|IF_Stack_Size
|DOCUMENTATION MISSING
|}
=== templates/skeletons/sub/makefile.tmplt ===
This template is processed when makefile-filename.tmplt exists.
......@@ -911,6 +923,15 @@ This file is processed for every thread in every partition in every node.
|-
|Pro_Instance_Of
|DOCUMENTATION MISSING
|-
|IF_Offset
|DOCUMENTATION MISSING
|-
|IF_Stack_Size
|DOCUMENTATION MISSING
|-
|IF_Priority
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/pi.tmplt ===
The template pi.tmplt is evaluated many times for every protected and unprotected provided interface.
......@@ -993,6 +1014,15 @@ The result of every evaluation is joined to one string and passed as a parameter
|-
|Coord.X
|DOCUMENTATION MISSING
|-
|IF_Offset
|DOCUMENTATION MISSING
|-
|IF_Priority
|DOCUMENTATION MISSING
|-
|IF_Stack_Size
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/ri.tmplt ===
The template ri.tmplt is evaluated many times for every required interface.
......@@ -1069,6 +1099,15 @@ The result of every evaluation is koined to one string and passed as a parameter
|-
|Coord.X
|DOCUMENTATION MISSING
|-
|IF_Offset
|DOCUMENTATION MISSING
|-
|IF_Priority
|DOCUMENTATION MISSING
|-
|IF_Stack_Size
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/block.tmplt ===
This template is evaluated for every block.
......@@ -1478,6 +1517,12 @@ This file is evaluated for every partition.
|-
|No_Stdlib_Flag
|DOCUMENTATION MISSING
|-
|In_Port_Encoding_Name
|DOCUMENTATION MISSING
|-
|Out_Port_Encoding_Name
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/node.tmplt ===
This file is evaluated for every node. The result of this file is saved to the file with name returned by filenode.tmplt. The result is also used as a parameter for system.tmplt.
......@@ -1628,6 +1673,9 @@ This file is evaluated for every node. The result of this file is saved to the f
|-
|Device_ASN1_Sort
| ↳ ASN.1 type name for the device driver configuration
|-
|Block_Is_Passive
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/system.tmplt ===
This file is evaluated for every node. The result of this file is save to the file with name returned by
......
......@@ -119,3 +119,5 @@ used as a parameter for system.tmplt.
| Device_ASN1_Sort | ↳ ASN.1 type name for the device driver |
| | configuration |
+----------------------+----------------------------------------------+
| Block_Is_Passive | DOCUMENTATION MISSING |
+----------------------+----------------------------------------------+
......@@ -193,3 +193,7 @@ This file is evaluated for every partition.
+---------------------------+-----------------------------------------+
| No_Stdlib_Flag | DOCUMENTATION MISSING |
+---------------------------+-----------------------------------------+
| In_Port_Encoding_Name | DOCUMENTATION MISSING |
+---------------------------+-----------------------------------------+
| Out_Port_Encoding_Name | DOCUMENTATION MISSING |
+---------------------------+-----------------------------------------+
......@@ -57,3 +57,9 @@ to one string and passed as a parameter to block.tmplt
+------------------------+-----------------------------------------+
| Coord.X | DOCUMENTATION MISSING |
+------------------------+-----------------------------------------+
| IF_Offset | DOCUMENTATION MISSING |
+------------------------+-----------------------------------------+
| IF_Priority | DOCUMENTATION MISSING |
+------------------------+-----------------------------------------+
| IF_Stack_Size | DOCUMENTATION MISSING |
+------------------------+-----------------------------------------+
......@@ -53,3 +53,9 @@ passed as a parameter to block.tmplt
+------------------------+-------------------------------+
| Coord.X | DOCUMENTATION MISSING |
+------------------------+-------------------------------+
| IF_Offset | DOCUMENTATION MISSING |
+------------------------+-------------------------------+
| IF_Priority | DOCUMENTATION MISSING |
+------------------------+-------------------------------+
| IF_Stack_Size | DOCUMENTATION MISSING |
+------------------------+-------------------------------+
......@@ -119,3 +119,9 @@ node.
+------------------------+--------------------------------------------+
| Pro_Instance_Of | DOCUMENTATION MISSING |
+------------------------+--------------------------------------------+
| IF_Offset | DOCUMENTATION MISSING |
+------------------------+--------------------------------------------+
| IF_Stack_Size | DOCUMENTATION MISSING |
+------------------------+--------------------------------------------+
| IF_Priority | DOCUMENTATION MISSING |
+------------------------+--------------------------------------------+
......@@ -612,6 +612,15 @@ This file is processed twice, first time for required interfaces of the function
|-
|Parent_Instance_Of
|DOCUMENTATION MISSING
|-
|IF_Offset
|DOCUMENTATION MISSING
|-
|IF_Priority
|DOCUMENTATION MISSING
|-
|IF_Stack_Size
|DOCUMENTATION MISSING
|}
=== templates/skeletons/sub/makefile.tmplt ===
This template is processed when makefile-filename.tmplt exists.
......@@ -914,6 +923,15 @@ This file is processed for every thread in every partition in every node.
|-
|Pro_Instance_Of
|DOCUMENTATION MISSING
|-
|IF_Offset
|DOCUMENTATION MISSING
|-
|IF_Stack_Size
|DOCUMENTATION MISSING
|-
|IF_Priority
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/pi.tmplt ===
The template pi.tmplt is evaluated many times for every protected and unprotected provided interface.
......@@ -996,6 +1014,15 @@ The result of every evaluation is joined to one string and passed as a parameter
|-
|Coord.X
|DOCUMENTATION MISSING
|-
|IF_Offset
|DOCUMENTATION MISSING
|-
|IF_Priority
|DOCUMENTATION MISSING
|-
|IF_Stack_Size
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/ri.tmplt ===
The template ri.tmplt is evaluated many times for every required interface.
......@@ -1072,6 +1099,15 @@ The result of every evaluation is koined to one string and passed as a parameter
|-
|Coord.X
|DOCUMENTATION MISSING
|-
|IF_Offset
|DOCUMENTATION MISSING
|-
|IF_Priority
|DOCUMENTATION MISSING
|-
|IF_Stack_Size
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/block.tmplt ===
This template is evaluated for every block.
......@@ -1481,6 +1517,12 @@ This file is evaluated for every partition.
|-
|No_Stdlib_Flag
|DOCUMENTATION MISSING
|-
|In_Port_Encoding_Name
|DOCUMENTATION MISSING
|-
|Out_Port_Encoding_Name
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/node.tmplt ===
This file is evaluated for every node. The result of this file is saved to the file with name returned by filenode.tmplt. The result is also used as a parameter for system.tmplt.
......@@ -1631,6 +1673,9 @@ This file is evaluated for every node. The result of this file is saved to the f
|-
|Device_ASN1_Sort
| ↳ ASN.1 type name for the device driver configuration
|-
|Block_Is_Passive
|DOCUMENTATION MISSING
|}
=== templates/concurrency_view/sub/system.tmplt ===
This file is evaluated for every node. The result of this file is save to the file with name returned by
......
......@@ -95,3 +95,9 @@ The results are parameters for processing function.tmplt
+------------------------+--------------------------------------------+
| Parent_Instance_Of | DOCUMENTATION MISSING |
+------------------------+--------------------------------------------+
| IF_Offset | DOCUMENTATION MISSING |
+------------------------+--------------------------------------------+
| IF_Priority | DOCUMENTATION MISSING |
+------------------------+--------------------------------------------+
| IF_Stack_Size | DOCUMENTATION MISSING |
+------------------------+--------------------------------------------+
......@@ -170,7 +170,8 @@ package body Simulator_Interface is
-- Make sure all message queues are drained
@@INLINE( exit when Stop_Condition or \(Simulator.Events.Length = 0 and )( and )(\);\n)@@
@@TABLE@@
@@IF@@ @_Block_Languages_@ /= GUI
@@-- Timer Managers (Tick only) and Passive functions have no input queue. Queues are for sporadic.
@@IF@@ @_Block_Languages_@ /= GUI and @_Block_Languages_@ /= Timer_Manager and not @_Block_Is_Passive_@
User_State.@_CAPITALIZE:Block_Names_@_Queue.Length = 0
@@END_IF@@
@@END_TABLE@@
......@@ -188,7 +189,7 @@ package body Simulator_Interface is
-- for (4):
if not Stop_Condition then
@@TABLE@@
@@IF@@ @_Block_Languages_@ /= GUI
@@IF@@ @_Block_Languages_@ /= GUI and @_Block_Languages_@ /= Timer_Manager and not @_Block_Is_Passive_@
for I in 1 .. User_State.@_CAPITALIZE:Block_Names_@_Queue.Length loop
exit when Stop_Condition;
declare
......
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