blob: 38a4b261352ebc6d31141da7b9b2c4e14452eb77 [file] [log] [blame]
Andreas Sailer88630e62017-01-24 15:55:33 +01001<?xml version="1.0" encoding="UTF-8"?>
Harald Mackamul9e8f40b2020-06-22 13:40:10 +02002<am:Amalthea xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:am="http://app4mc.eclipse.org/amalthea/0.9.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Andreas Sailer88630e62017-01-24 15:55:33 +01003 <swModel>
Harald Mackamul74c82d32017-07-20 15:45:48 +02004 <tasks name="Task_1" stimuli="Stimulus_Task_1?type=PeriodicStimulus" preemption="preemptive" multipleTaskActivationLimit="1">
Harald Mackamul76c10f42019-07-25 16:35:06 +02005 <customProperties key="priority">
6 <value xsi:type="am:StringObject" value="1"/>
7 </customProperties>
8 <customProperties key="osekTaskGroup">
9 <value xsi:type="am:StringObject" value="1"/>
10 </customProperties>
Harald Mackamul1c230e22019-12-23 22:01:52 +010011 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020012 <items xsi:type="am:ProbabilitySwitch">
Andreas Sailer88630e62017-01-24 15:55:33 +010013 <entries probability="75.0">
Zakir Meer313f3932019-07-17 12:54:15 +020014 <items xsi:type="am:Group" name="CallSequence_1_0" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020015 <items xsi:type="am:RunnableCall" runnable="Runnable_1_0?type=Runnable"/>
Andreas Sailer88630e62017-01-24 15:55:33 +010016 </items>
17 </entries>
18 <entries probability="25.0">
Zakir Meer313f3932019-07-17 12:54:15 +020019 <items xsi:type="am:Group" name="CallSequence_1_1" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020020 <items xsi:type="am:RunnableCall" runnable="Runnable_1_1?type=Runnable"/>
Andreas Sailer88630e62017-01-24 15:55:33 +010021 </items>
22 </entries>
Zakir Meer313f3932019-07-17 12:54:15 +020023 </items>
24 <items xsi:type="am:Group" name="CallSequence_1_2" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020025 <items xsi:type="am:RunnableCall" runnable="Runnable_1?type=Runnable"/>
26 <items xsi:type="am:InterProcessTrigger" stimulus="Stimulus_Task_2?type=InterProcessStimulus"/>
Zakir Meer313f3932019-07-17 12:54:15 +020027 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010028 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010029 </tasks>
Zakir Meeraac21ae2017-07-18 17:46:36 +020030 <tasks name="Task_2" preemption="preemptive" multipleTaskActivationLimit="1">
Harald Mackamul76c10f42019-07-25 16:35:06 +020031 <customProperties key="priority">
32 <value xsi:type="am:StringObject" value="2"/>
33 </customProperties>
34 <customProperties key="osekTaskGroup">
35 <value xsi:type="am:StringObject" value="2"/>
36 </customProperties>
Harald Mackamul1c230e22019-12-23 22:01:52 +010037 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020038 <items xsi:type="am:ModeSwitch">
Harald Mackamul6d100c52017-12-20 12:52:14 +010039 <entries name="State_1">
Zakir Meer313f3932019-07-17 12:54:15 +020040 <items xsi:type="am:Group" name="CallSequence_State_1" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020041 <items xsi:type="am:RunnableCall" runnable="Runnable_State_1?type=Runnable"/>
Andreas Sailer88630e62017-01-24 15:55:33 +010042 </items>
Harald Mackamul76c10f42019-07-25 16:35:06 +020043 <items xsi:type="am:ModeSwitch"/>
44 <condition>
Harald Mackamul41ceb552019-10-17 14:17:16 +020045 <entries xsi:type="am:ModeValueCondition" label="state?type=ModeLabel" value="State_1" relation="EQUAL"/>
Harald Mackamul76c10f42019-07-25 16:35:06 +020046 </condition>
Andreas Sailer88630e62017-01-24 15:55:33 +010047 </entries>
Harald Mackamul6d100c52017-12-20 12:52:14 +010048 <entries name="State_0">
Zakir Meer313f3932019-07-17 12:54:15 +020049 <items xsi:type="am:Group" name="CallSequence_State_0" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020050 <items xsi:type="am:RunnableCall" runnable="Runnable_State_0?type=Runnable"/>
Andreas Sailer88630e62017-01-24 15:55:33 +010051 </items>
Harald Mackamul76c10f42019-07-25 16:35:06 +020052 <items xsi:type="am:ModeSwitch"/>
53 <condition>
Harald Mackamul41ceb552019-10-17 14:17:16 +020054 <entries xsi:type="am:ModeValueCondition" label="state?type=ModeLabel" value="State_0" relation="EQUAL"/>
Harald Mackamul76c10f42019-07-25 16:35:06 +020055 </condition>
Andreas Sailer88630e62017-01-24 15:55:33 +010056 </entries>
Harald Mackamul6d100c52017-12-20 12:52:14 +010057 <entries name="State_2">
Zakir Meer313f3932019-07-17 12:54:15 +020058 <items xsi:type="am:Group" name="CallSequence_State_2" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020059 <items xsi:type="am:RunnableCall" runnable="Runnable_State_2?type=Runnable"/>
Andreas Sailer88630e62017-01-24 15:55:33 +010060 </items>
Harald Mackamul76c10f42019-07-25 16:35:06 +020061 <items xsi:type="am:ModeSwitch"/>
62 <condition>
Harald Mackamul41ceb552019-10-17 14:17:16 +020063 <entries xsi:type="am:ModeValueCondition" label="state?type=ModeLabel" value="State_2" relation="EQUAL"/>
Harald Mackamul76c10f42019-07-25 16:35:06 +020064 </condition>
Andreas Sailer88630e62017-01-24 15:55:33 +010065 </entries>
Zakir Meer313f3932019-07-17 12:54:15 +020066 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010067 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010068 </tasks>
69 <runnables name="Runnable_1_1" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010070 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +020071 <items xsi:type="am:ModeLabelAccess" data="message?type=ModeLabel" access="set" value="MessageContent_1" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +010072 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010073 </runnables>
74 <runnables name="Runnable_State_0" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010075 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020076 <items xsi:type="am:Ticks">
Harald Mackamul76c10f42019-07-25 16:35:06 +020077 <default xsi:type="am:DiscreteValueUniformDistribution" lowerBound="59" upperBound="60"/>
Zakir Meer313f3932019-07-17 12:54:15 +020078 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010079 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010080 </runnables>
81 <runnables name="Runnable_State_1" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010082 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020083 <items xsi:type="am:Ticks">
Harald Mackamul76c10f42019-07-25 16:35:06 +020084 <default xsi:type="am:DiscreteValueUniformDistribution" lowerBound="59400" upperBound="60000"/>
Zakir Meer313f3932019-07-17 12:54:15 +020085 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010086 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010087 </runnables>
88 <runnables name="Runnable_State_2" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010089 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020090 <items xsi:type="am:Ticks">
Harald Mackamul76c10f42019-07-25 16:35:06 +020091 <default xsi:type="am:DiscreteValueUniformDistribution" lowerBound="29700000" upperBound="30000000"/>
Zakir Meer313f3932019-07-17 12:54:15 +020092 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010093 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010094 </runnables>
95 <runnables name="Runnable_1" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010096 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020097 <items xsi:type="am:Ticks">
Harald Mackamul76c10f42019-07-25 16:35:06 +020098 <default xsi:type="am:DiscreteValueUniformDistribution" lowerBound="5940000" upperBound="6000000"/>
Zakir Meer313f3932019-07-17 12:54:15 +020099 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100100 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100101 </runnables>
102 <runnables name="Runnable_1_0" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +0100103 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200104 <items xsi:type="am:ModeLabelAccess" data="message?type=ModeLabel" access="set" value="MessageContent_0" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100105 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100106 </runnables>
107 <runnables name="Runnable_Transition_0" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +0100108 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200109 <items xsi:type="am:ModeLabelAccess" data="state?type=ModeLabel" access="set" value="State_0" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100110 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100111 </runnables>
112 <runnables name="Runnable_Transition_1" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +0100113 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200114 <items xsi:type="am:ModeLabelAccess" data="state?type=ModeLabel" access="set" value="State_1" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100115 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100116 </runnables>
117 <runnables name="Runnable_Transition_2" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +0100118 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200119 <items xsi:type="am:ModeLabelAccess" data="state?type=ModeLabel" access="set" value="State_2" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100120 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100121 </runnables>
Harald Mackamul74ca85a2019-03-31 12:09:28 +0200122 <modes xsi:type="am:EnumMode" name="State">
Andreas Sailer88630e62017-01-24 15:55:33 +0100123 <literals name="State_0">
124 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200125 <value xsi:type="am:LongObject" value="0"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100126 </customProperties>
127 </literals>
128 <literals name="State_1">
129 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200130 <value xsi:type="am:LongObject" value="1"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100131 </customProperties>
132 </literals>
133 <literals name="State_2">
134 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200135 <value xsi:type="am:LongObject" value="2"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100136 </customProperties>
137 </literals>
138 </modes>
Harald Mackamul74ca85a2019-03-31 12:09:28 +0200139 <modes xsi:type="am:EnumMode" name="Message">
Andreas Sailer88630e62017-01-24 15:55:33 +0100140 <literals name="MessageContent_0">
141 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200142 <value xsi:type="am:LongObject" value="0"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100143 </customProperties>
144 </literals>
145 <literals name="MessageContent_1">
146 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200147 <value xsi:type="am:LongObject" value="1"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100148 </customProperties>
149 </literals>
150 </modes>
Harald Mackamul74ca85a2019-03-31 12:09:28 +0200151 <modeLabels name="state" mode="State?type=EnumMode" initialValue="State_0">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200152 <size value="8" unit="bit"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100153 </modeLabels>
Harald Mackamul74ca85a2019-03-31 12:09:28 +0200154 <modeLabels name="message" mode="Message?type=EnumMode" initialValue="MessageContent_0">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200155 <size value="1" unit="bit"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100156 </modeLabels>
157 </swModel>
158 <hwModel>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200159 <definitions xsi:type="am:ProcessingUnitDefinition" name="DefaultCore" puType="CPU" features="Instructions/IPC_1.0?type=HwFeature"/>
160 <definitions xsi:type="am:MemoryDefinition" name="DefaultMemory"/>
Harald Mackamul674cd242018-04-25 18:31:48 +0200161 <featureCategories name="Instructions" featureType="performance">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200162 <features name="IPC_1.0" value="1.0"/>
Harald Mackamul674cd242018-04-25 18:31:48 +0200163 </featureCategories>
Harald Mackamul1f32fe12018-03-27 07:48:30 +0200164 <structures name="System" structureType="System">
165 <structures name="Ecu_1" structureType="ECU">
166 <structures name="Processor_1" structureType="Microcontroller">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200167 <modules xsi:type="am:Memory" name="Memory_1" frequencyDomain="Frequency_1?type=FrequencyDomain" definition="DefaultMemory?type=MemoryDefinition"/>
Harald Mackamul1f32fe12018-03-27 07:48:30 +0200168 <modules xsi:type="am:ProcessingUnit" name="Core_1" frequencyDomain="Frequency_1?type=FrequencyDomain" definition="DefaultCore?type=ProcessingUnitDefinition">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200169 <ports name="port" bitWidth="32" priority="0" portType="initiator"/>
Harald Mackamul1f32fe12018-03-27 07:48:30 +0200170 </modules>
171 </structures>
172 </structures>
173 </structures>
174 <domains xsi:type="am:FrequencyDomain" name="Frequency_1" clockGating="false">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200175 <defaultValue value="600.0" unit="MHz"/>
Harald Mackamul1f32fe12018-03-27 07:48:30 +0200176 </domains>
Andreas Sailer88630e62017-01-24 15:55:33 +0100177 </hwModel>
178 <osModel>
Andreas Sailer88630e62017-01-24 15:55:33 +0100179 <operatingSystems name="Generic_OS">
Harald Mackamul375ade02017-07-17 11:19:27 +0200180 <taskSchedulers name="Scheduler_1">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200181 <schedulingAlgorithm xsi:type="am:OSEK"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100182 </taskSchedulers>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200183 <osDataConsistency mode="noProtection"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100184 </operatingSystems>
185 </osModel>
186 <stimuliModel>
Harald Mackamul74c82d32017-07-20 15:45:48 +0200187 <stimuli xsi:type="am:PeriodicStimulus" name="Stimulus_Task_1">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200188 <offset value="0" unit="ms"/>
189 <recurrence value="100" unit="ms"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100190 </stimuli>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200191 <stimuli xsi:type="am:InterProcessStimulus" name="Stimulus_Task_2"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100192 </stimuliModel>
Andreas Sailer88630e62017-01-24 15:55:33 +0100193 <eventModel>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200194 <events xsi:type="am:ProcessEvent" name="Event_Task_1" entity="Task_1?type=Task"/>
195 <events xsi:type="am:ProcessEvent" name="Event_Task_2" entity="Task_2?type=Task"/>
196 <events xsi:type="am:RunnableEvent" name="Event_Runnable_1" entity="Runnable_1?type=Runnable"/>
197 <events xsi:type="am:RunnableEvent" name="Event_Runnable_1_0" entity="Runnable_1_0?type=Runnable"/>
198 <events xsi:type="am:RunnableEvent" name="Event_Runnable_1_1" entity="Runnable_1_1?type=Runnable"/>
199 <events xsi:type="am:RunnableEvent" name="Event_Runnable_State_0" entity="Runnable_State_0?type=Runnable"/>
200 <events xsi:type="am:RunnableEvent" name="Event_Runnable_State_1" entity="Runnable_State_1?type=Runnable"/>
201 <events xsi:type="am:RunnableEvent" name="Event_Runnable_State_2" entity="Runnable_State_2?type=Runnable"/>
202 <events xsi:type="am:RunnableEvent" name="Event_Runnable_Transition_0" entity="Runnable_Transition_0?type=Runnable"/>
203 <events xsi:type="am:RunnableEvent" name="Event_Runnable_Transition_1" entity="Runnable_Transition_1?type=Runnable"/>
204 <events xsi:type="am:RunnableEvent" name="Event_Runnable_Transition_2" entity="Runnable_Transition_2?type=Runnable"/>
205 <events xsi:type="am:StimulusEvent" name="Event_Stimulus_Task_1" entity="Stimulus_Task_1?type=PeriodicStimulus"/>
206 <events xsi:type="am:StimulusEvent" name="Event_Stimulus_Task_2"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100207 </eventModel>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200208 <constraintsModel/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100209 <mappingModel addressMappingType="offset">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200210 <schedulerAllocation scheduler="Scheduler_1?type=TaskScheduler" responsibility="Core_1?type=ProcessingUnit"/>
211 <taskAllocation task="Task_1?type=Task" scheduler="Scheduler_1?type=TaskScheduler"/>
212 <taskAllocation task="Task_2?type=Task" scheduler="Scheduler_1?type=TaskScheduler"/>
213 <memoryMapping abstractElement="state?type=ModeLabel" memory="Memory_1?type=Memory" memoryPositionAddress="0x0"/>
214 <memoryMapping abstractElement="message?type=ModeLabel" memory="Memory_1?type=Memory" memoryPositionAddress="0x8"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100215 </mappingModel>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200216 <componentsModel/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100217</am:Amalthea>