blob: 05989d52aa3a32d9739cc321f0bed30064174160 [file] [log] [blame]
Andreas Sailer88630e62017-01-24 15:55:33 +01001<?xml version="1.0" encoding="UTF-8"?>
Harald Mackamulb3f6e7a2019-11-11 11:18:08 +01002<am:Amalthea xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:am="http://app4mc.eclipse.org/amalthea/0.9.7" 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="2"/>
7 </customProperties>
8 <customProperties key="osekTaskGroup">
9 <value xsi:type="am:StringObject" value="2"/>
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"/>
Zakir Meer313f3932019-07-17 12:54:15 +020026 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010027 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010028 </tasks>
Harald Mackamul74c82d32017-07-20 15:45:48 +020029 <tasks name="Task_2" stimuli="Stimulus_Task_2?type=PeriodicStimulus" preemption="preemptive" multipleTaskActivationLimit="1">
Harald Mackamul76c10f42019-07-25 16:35:06 +020030 <customProperties key="priority">
31 <value xsi:type="am:StringObject" value="1"/>
32 </customProperties>
33 <customProperties key="osekTaskGroup">
34 <value xsi:type="am:StringObject" value="1"/>
35 </customProperties>
Harald Mackamul1c230e22019-12-23 22:01:52 +010036 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020037 <items xsi:type="am:ModeSwitch">
Harald Mackamul6d100c52017-12-20 12:52:14 +010038 <entries name="State_1">
Zakir Meer313f3932019-07-17 12:54:15 +020039 <items xsi:type="am:Group" name="CallSequence_State_1" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020040 <items xsi:type="am:RunnableCall" runnable="Runnable_State_1?type=Runnable"/>
Andreas Sailer88630e62017-01-24 15:55:33 +010041 </items>
Harald Mackamul76c10f42019-07-25 16:35:06 +020042 <items xsi:type="am:ModeSwitch"/>
43 <condition>
Harald Mackamul41ceb552019-10-17 14:17:16 +020044 <entries xsi:type="am:ModeValueCondition" label="state?type=ModeLabel" value="State_1" relation="EQUAL"/>
Harald Mackamul76c10f42019-07-25 16:35:06 +020045 </condition>
Andreas Sailer88630e62017-01-24 15:55:33 +010046 </entries>
Harald Mackamul6d100c52017-12-20 12:52:14 +010047 <entries name="State_0">
Zakir Meer313f3932019-07-17 12:54:15 +020048 <items xsi:type="am:Group" name="CallSequence_State_0" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020049 <items xsi:type="am:RunnableCall" runnable="Runnable_State_0?type=Runnable"/>
Andreas Sailer88630e62017-01-24 15:55:33 +010050 </items>
Harald Mackamul76c10f42019-07-25 16:35:06 +020051 <items xsi:type="am:ModeSwitch"/>
52 <condition>
Harald Mackamul41ceb552019-10-17 14:17:16 +020053 <entries xsi:type="am:ModeValueCondition" label="state?type=ModeLabel" value="State_0" relation="EQUAL"/>
Harald Mackamul76c10f42019-07-25 16:35:06 +020054 </condition>
Andreas Sailer88630e62017-01-24 15:55:33 +010055 </entries>
Harald Mackamul6d100c52017-12-20 12:52:14 +010056 <entries name="State_2">
Zakir Meer313f3932019-07-17 12:54:15 +020057 <items xsi:type="am:Group" name="CallSequence_State_2" ordered="true">
Harald Mackamul76c10f42019-07-25 16:35:06 +020058 <items xsi:type="am:RunnableCall" runnable="Runnable_State_2?type=Runnable"/>
Andreas Sailer88630e62017-01-24 15:55:33 +010059 </items>
Harald Mackamul76c10f42019-07-25 16:35:06 +020060 <items xsi:type="am:ModeSwitch"/>
61 <condition>
Harald Mackamul41ceb552019-10-17 14:17:16 +020062 <entries xsi:type="am:ModeValueCondition" label="state?type=ModeLabel" value="State_2" relation="EQUAL"/>
Harald Mackamul76c10f42019-07-25 16:35:06 +020063 </condition>
Andreas Sailer88630e62017-01-24 15:55:33 +010064 </entries>
Zakir Meer313f3932019-07-17 12:54:15 +020065 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010066 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010067 </tasks>
68 <runnables name="Runnable_1_1" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010069 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +020070 <items xsi:type="am:ModeLabelAccess" data="message?type=ModeLabel" access="set" value="MessageContent_1" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +010071 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010072 </runnables>
73 <runnables name="Runnable_State_0" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010074 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020075 <items xsi:type="am:Ticks">
Harald Mackamul76c10f42019-07-25 16:35:06 +020076 <default xsi:type="am:DiscreteValueUniformDistribution" lowerBound="59" upperBound="60"/>
Zakir Meer313f3932019-07-17 12:54:15 +020077 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010078 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010079 </runnables>
80 <runnables name="Runnable_State_1" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010081 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020082 <items xsi:type="am:Ticks">
Harald Mackamul76c10f42019-07-25 16:35:06 +020083 <default xsi:type="am:DiscreteValueUniformDistribution" lowerBound="59400" upperBound="60000"/>
Zakir Meer313f3932019-07-17 12:54:15 +020084 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010085 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010086 </runnables>
87 <runnables name="Runnable_State_2" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010088 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020089 <items xsi:type="am:Ticks">
Harald Mackamul76c10f42019-07-25 16:35:06 +020090 <default xsi:type="am:DiscreteValueUniformDistribution" lowerBound="29700000" upperBound="30000000"/>
Zakir Meer313f3932019-07-17 12:54:15 +020091 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010092 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +010093 </runnables>
94 <runnables name="Runnable_1" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +010095 <activityGraph>
Zakir Meer313f3932019-07-17 12:54:15 +020096 <items xsi:type="am:Ticks">
Harald Mackamul76c10f42019-07-25 16:35:06 +020097 <default xsi:type="am:DiscreteValueUniformDistribution" lowerBound="5940000" upperBound="6000000"/>
Zakir Meer313f3932019-07-17 12:54:15 +020098 </items>
Harald Mackamul1c230e22019-12-23 22:01:52 +010099 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100100 </runnables>
101 <runnables name="Runnable_1_0" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +0100102 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200103 <items xsi:type="am:ModeLabelAccess" data="message?type=ModeLabel" access="set" value="MessageContent_0" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100104 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100105 </runnables>
106 <runnables name="Runnable_Transition_0" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +0100107 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200108 <items xsi:type="am:ModeLabelAccess" data="state?type=ModeLabel" access="set" value="State_0" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100109 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100110 </runnables>
111 <runnables name="Runnable_Transition_1" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +0100112 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200113 <items xsi:type="am:ModeLabelAccess" data="state?type=ModeLabel" access="set" value="State_1" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100114 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100115 </runnables>
116 <runnables name="Runnable_Transition_2" callback="false" service="false">
Harald Mackamul1c230e22019-12-23 22:01:52 +0100117 <activityGraph>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200118 <items xsi:type="am:ModeLabelAccess" data="state?type=ModeLabel" access="set" value="State_2" step="1"/>
Harald Mackamul1c230e22019-12-23 22:01:52 +0100119 </activityGraph>
Andreas Sailer88630e62017-01-24 15:55:33 +0100120 </runnables>
Harald Mackamul74ca85a2019-03-31 12:09:28 +0200121 <modes xsi:type="am:EnumMode" name="State">
Andreas Sailer88630e62017-01-24 15:55:33 +0100122 <literals name="State_0">
123 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200124 <value xsi:type="am:LongObject" value="0"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100125 </customProperties>
126 </literals>
127 <literals name="State_1">
128 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200129 <value xsi:type="am:LongObject" value="1"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100130 </customProperties>
131 </literals>
132 <literals name="State_2">
133 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200134 <value xsi:type="am:LongObject" value="2"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100135 </customProperties>
136 </literals>
137 </modes>
Harald Mackamul74ca85a2019-03-31 12:09:28 +0200138 <modes xsi:type="am:EnumMode" name="Message">
Andreas Sailer88630e62017-01-24 15:55:33 +0100139 <literals name="MessageContent_0">
140 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200141 <value xsi:type="am:LongObject" value="0"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100142 </customProperties>
143 </literals>
144 <literals name="MessageContent_1">
145 <customProperties key="enumValue">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200146 <value xsi:type="am:LongObject" value="1"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100147 </customProperties>
148 </literals>
149 </modes>
Harald Mackamul74ca85a2019-03-31 12:09:28 +0200150 <modeLabels name="state" mode="State?type=EnumMode" initialValue="State_0">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200151 <size value="8" unit="bit"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100152 </modeLabels>
Harald Mackamul74ca85a2019-03-31 12:09:28 +0200153 <modeLabels name="message" mode="Message?type=EnumMode" initialValue="MessageContent_0">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200154 <size value="1" unit="bit"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100155 </modeLabels>
156 </swModel>
157 <hwModel>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200158 <definitions xsi:type="am:ProcessingUnitDefinition" name="DefaultCore" puType="CPU" features="Instructions/IPC_1.0?type=HwFeature"/>
159 <definitions xsi:type="am:MemoryDefinition" name="DefaultMemory"/>
Harald Mackamul674cd242018-04-25 18:31:48 +0200160 <featureCategories name="Instructions" featureType="performance">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200161 <features name="IPC_1.0" value="1.0"/>
Harald Mackamul674cd242018-04-25 18:31:48 +0200162 </featureCategories>
Harald Mackamul1f32fe12018-03-27 07:48:30 +0200163 <structures name="System" structureType="System">
164 <structures name="Ecu_1" structureType="ECU">
165 <structures name="Processor_1" structureType="Microcontroller">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200166 <modules xsi:type="am:Memory" name="Memory_1" frequencyDomain="Frequency_1?type=FrequencyDomain" definition="DefaultMemory?type=MemoryDefinition"/>
Harald Mackamul1f32fe12018-03-27 07:48:30 +0200167 <modules xsi:type="am:ProcessingUnit" name="Core_1" frequencyDomain="Frequency_1?type=FrequencyDomain" definition="DefaultCore?type=ProcessingUnitDefinition">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200168 <ports name="port" bitWidth="32" priority="0" portType="initiator"/>
Harald Mackamul1f32fe12018-03-27 07:48:30 +0200169 </modules>
170 </structures>
171 </structures>
172 </structures>
173 <domains xsi:type="am:FrequencyDomain" name="Frequency_1" clockGating="false">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200174 <defaultValue value="600.0" unit="MHz"/>
Harald Mackamul1f32fe12018-03-27 07:48:30 +0200175 </domains>
Andreas Sailer88630e62017-01-24 15:55:33 +0100176 </hwModel>
177 <osModel>
Andreas Sailer88630e62017-01-24 15:55:33 +0100178 <operatingSystems name="Generic_OS">
Harald Mackamul375ade02017-07-17 11:19:27 +0200179 <taskSchedulers name="Scheduler_1">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200180 <schedulingAlgorithm xsi:type="am:OSEK"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100181 </taskSchedulers>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200182 <osDataConsistency mode="noProtection"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100183 </operatingSystems>
184 </osModel>
185 <stimuliModel>
Harald Mackamul74c82d32017-07-20 15:45:48 +0200186 <stimuli xsi:type="am:PeriodicStimulus" name="Stimulus_Task_1">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200187 <offset value="0" unit="ms"/>
188 <recurrence value="100" unit="ms"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100189 </stimuli>
Harald Mackamul74c82d32017-07-20 15:45:48 +0200190 <stimuli xsi:type="am:PeriodicStimulus" name="Stimulus_Task_2">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200191 <offset value="15" unit="ms"/>
192 <recurrence value="60" unit="ms"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100193 </stimuli>
194 </stimuliModel>
Andreas Sailer88630e62017-01-24 15:55:33 +0100195 <eventModel>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200196 <events xsi:type="am:ProcessEvent" name="Event_Task_1" entity="Task_1?type=Task"/>
197 <events xsi:type="am:ProcessEvent" name="Event_Task_2" entity="Task_2?type=Task"/>
198 <events xsi:type="am:RunnableEvent" name="Event_Runnable_1" entity="Runnable_1?type=Runnable"/>
199 <events xsi:type="am:RunnableEvent" name="Event_Runnable_1_0" entity="Runnable_1_0?type=Runnable"/>
200 <events xsi:type="am:RunnableEvent" name="Event_Runnable_1_1" entity="Runnable_1_1?type=Runnable"/>
201 <events xsi:type="am:RunnableEvent" name="Event_Runnable_State_0" entity="Runnable_State_0?type=Runnable"/>
202 <events xsi:type="am:RunnableEvent" name="Event_Runnable_State_1" entity="Runnable_State_1?type=Runnable"/>
203 <events xsi:type="am:RunnableEvent" name="Event_Runnable_State_2" entity="Runnable_State_2?type=Runnable"/>
204 <events xsi:type="am:RunnableEvent" name="Event_Runnable_Transition_0" entity="Runnable_Transition_0?type=Runnable"/>
205 <events xsi:type="am:RunnableEvent" name="Event_Runnable_Transition_1" entity="Runnable_Transition_1?type=Runnable"/>
206 <events xsi:type="am:RunnableEvent" name="Event_Runnable_Transition_2" entity="Runnable_Transition_2?type=Runnable"/>
207 <events xsi:type="am:StimulusEvent" name="Event_Stimulus_Task_1" entity="Stimulus_Task_1?type=PeriodicStimulus"/>
208 <events xsi:type="am:StimulusEvent" name="Event_Stimulus_Task_2" entity="Stimulus_Task_2?type=PeriodicStimulus"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100209 </eventModel>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200210 <constraintsModel/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100211 <mappingModel addressMappingType="offset">
Harald Mackamul76c10f42019-07-25 16:35:06 +0200212 <schedulerAllocation scheduler="Scheduler_1?type=TaskScheduler" responsibility="Core_1?type=ProcessingUnit"/>
213 <taskAllocation task="Task_1?type=Task" scheduler="Scheduler_1?type=TaskScheduler"/>
214 <taskAllocation task="Task_2?type=Task" scheduler="Scheduler_1?type=TaskScheduler"/>
215 <memoryMapping abstractElement="state?type=ModeLabel" memory="Memory_1?type=Memory" memoryPositionAddress="0x0"/>
216 <memoryMapping abstractElement="message?type=ModeLabel" memory="Memory_1?type=Memory" memoryPositionAddress="0x8"/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100217 </mappingModel>
Harald Mackamul76c10f42019-07-25 16:35:06 +0200218 <componentsModel/>
Andreas Sailer88630e62017-01-24 15:55:33 +0100219</am:Amalthea>