| <?xml version="1.0" encoding="UTF-8"?> | |
| <am:Amalthea xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:am="http://app4mc.eclipse.org/amalthea/2.1.0"> | |
| <swModel> | |
| <tasks xmi:id="Task_5MS?type=Task" name="Task_5MS" stimuli="Timer_5MS?type=PeriodicStimulus" preemption="preemptive" multipleTaskActivationLimit="10"> | |
| <activityGraph> | |
| <items xsi:type="am:InterProcessTrigger" stimulus="stim_EqualZero?type=InterProcessStimulus"/> | |
| <items xsi:type="am:RunnableCall" runnable="runnable_smallerOne?type=Runnable"/> | |
| <items xsi:type="am:InterProcessTrigger" stimulus="stim_EqualZero?type=InterProcessStimulus"/> | |
| <items xsi:type="am:RunnableCall" runnable="runnable_betweenZeroAndTwo?type=Runnable"/> | |
| <items xsi:type="am:ModeLabelAccess" data="numericModeLabel?type=ModeLabel" access="decrement" value="0" step="1"/> | |
| </activityGraph> | |
| </tasks> | |
| <tasks xmi:id="task_triggeredWhenEqualZero?type=Task" name="task_triggeredWhenEqualZero" stimuli="stim_EqualZero?type=InterProcessStimulus" preemption="preemptive" multipleTaskActivationLimit="10"> | |
| <activityGraph> | |
| <items xsi:type="am:Ticks"> | |
| <default xsi:type="am:DiscreteValueConstant" value="500000"/> | |
| </items> | |
| </activityGraph> | |
| </tasks> | |
| <runnables xmi:id="runnable_smallerOne?type=Runnable" name="runnable_smallerOne" callback="false" service="false"> | |
| <activityGraph> | |
| <items xsi:type="am:Ticks"> | |
| <default xsi:type="am:DiscreteValueConstant" value="500000"/> | |
| </items> | |
| <items xsi:type="am:ModeLabelAccess" data="numericModeLabel?type=ModeLabel" access="set" value="2" step="1"/> | |
| </activityGraph> | |
| <executionCondition> | |
| <entries xsi:type="am:ModeValueCondition" label="numericModeLabel?type=ModeLabel" value="1" relation="LESS_THAN"/> | |
| </executionCondition> | |
| </runnables> | |
| <runnables xmi:id="runnable_betweenZeroAndTwo?type=Runnable" name="runnable_betweenZeroAndTwo" callback="false" service="false"> | |
| <activityGraph> | |
| <items xsi:type="am:Ticks"> | |
| <default xsi:type="am:DiscreteValueConstant" value="500000"/> | |
| </items> | |
| <items xsi:type="am:ModeLabelAccess" data="numericModeLabel?type=ModeLabel" access="set" value="1" step="1"/> | |
| </activityGraph> | |
| <executionCondition> | |
| <entries xsi:type="am:ConditionConjunction"> | |
| <entries xsi:type="am:ModeValueCondition" label="numericModeLabel?type=ModeLabel" value="0" relation="GREATER_THAN"/> | |
| <entries xsi:type="am:ModeValueCondition" label="numericModeLabel?type=ModeLabel" value="2" relation="LESS_THAN"/> | |
| </entries> | |
| </executionCondition> | |
| </runnables> | |
| <modes xsi:type="am:NumericMode" xmi:id="numericMode?type=NumericMode" name="numericMode"/> | |
| <modeLabels xmi:id="numericModeLabel?type=ModeLabel" name="numericModeLabel" mode="numericMode?type=NumericMode" initialValue="0"/> | |
| </swModel> | |
| <hwModel> | |
| <definitions xsi:type="am:ProcessingUnitDefinition" xmi:id="DefaultCore?type=ProcessingUnitDefinition" name="DefaultCore" puType="CPU"/> | |
| <definitions xsi:type="am:MemoryDefinition" xmi:id="DefaultMemory?type=MemoryDefinition" name="DefaultMemory"> | |
| <size value="4" unit="MB"/> | |
| <accessLatency xsi:type="am:DiscreteValueConstant" value="2"/> | |
| <dataRate value="1" unit="GiBPerSecond"/> | |
| </definitions> | |
| <structures xmi:id="Democar?type=HwStructure" name="Democar" structureType="System"> | |
| <structures xmi:id="ECU_1?type=HwStructure" name="ECU_1" structureType="ECU"> | |
| <structures xmi:id="Microcontroller_1?type=HwStructure" name="Microcontroller_1" structureType="Microcontroller"> | |
| <modules xsi:type="am:ProcessingUnit" xmi:id="Core_1?type=ProcessingUnit" name="Core_1" frequencyDomain="FrequencyDomain_1?type=FrequencyDomain" definition="DefaultCore?type=ProcessingUnitDefinition"> | |
| <accessElements name="memAccess_core1" destination="Mem_1?type=Memory"> | |
| <readLatency xsi:type="am:DiscreteValueConstant" value="2"/> | |
| <writeLatency xsi:type="am:DiscreteValueWeibullEstimatorsDistribution" lowerBound="3" upperBound="23" average="5.0" pRemainPromille="1.0"/> | |
| <dataRate value="1" unit="GiBPerSecond"/> | |
| </accessElements> | |
| </modules> | |
| <modules xsi:type="am:ProcessingUnit" xmi:id="Core_2?type=ProcessingUnit" name="Core_2" frequencyDomain="FrequencyDomain_1?type=FrequencyDomain" definition="DefaultCore?type=ProcessingUnitDefinition"> | |
| <accessElements name="memAccess_core2" destination="Mem_1?type=Memory"> | |
| <readLatency xsi:type="am:DiscreteValueConstant" value="2"/> | |
| <writeLatency xsi:type="am:DiscreteValueWeibullEstimatorsDistribution" lowerBound="3" upperBound="23" average="5.0" pRemainPromille="1.0"/> | |
| <dataRate value="1" unit="GiBPerSecond"/> | |
| </accessElements> | |
| </modules> | |
| <modules xsi:type="am:Memory" xmi:id="Mem_1?type=Memory" name="Mem_1" frequencyDomain="FrequencyDomain_1?type=FrequencyDomain" definition="DefaultMemory?type=MemoryDefinition"/> | |
| </structures> | |
| </structures> | |
| </structures> | |
| <domains xsi:type="am:FrequencyDomain" xmi:id="FrequencyDomain_1?type=FrequencyDomain" name="FrequencyDomain_1" clockGating="false"> | |
| <defaultValue value="200.0" unit="MHz"/> | |
| </domains> | |
| </hwModel> | |
| <osModel> | |
| <operatingSystems name="OperatingSystem"> | |
| <taskSchedulers xmi:id="Task_Scheduler_Core_1?type=TaskScheduler" name="Task_Scheduler_Core_1" definition="FixedPriorityPreemptive?type=SchedulerDefinition"/> | |
| <taskSchedulers xmi:id="Task_Scheduler_Core_2?type=TaskScheduler" name="Task_Scheduler_Core_2" definition="FixedPriorityPreemptive?type=SchedulerDefinition"/> | |
| </operatingSystems> | |
| <schedulerDefinitions xmi:id="FixedPriorityPreemptive?type=SchedulerDefinition" name="FixedPriorityPreemptive" description="Fixed Priority Preemptive Scheduling (e.g. AUTOSAR),
same as OSEK but without task groups.

Algorithm parameters:
 -

Process parameters:
 - priority [1] Integer
 The priority of the process (a higher value means a higher priority).

Options:
 -

Reference:
 - Liu, Chung Laung, and James W. Layland (1973).
 "Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment"
 Journal of the ACM (JACM) 20.1 (1973): 46-61.
" processParameters="priority?type=SchedulingParameterDefinition" requiresParentScheduler="false" passesParametersUpwards="false" hasExactlyOneChild="false"/> | |
| <schedulingParameterDefinitions xmi:id="priority?type=SchedulingParameterDefinition" name="priority" type="Integer" many="false" mandatory="true"/> | |
| </osModel> | |
| <stimuliModel> | |
| <stimuli xsi:type="am:PeriodicStimulus" xmi:id="Timer_5MS?type=PeriodicStimulus" name="Timer_5MS"> | |
| <recurrence value="5" unit="ms"/> | |
| <offset value="0" unit="ms"/> | |
| </stimuli> | |
| <stimuli xsi:type="am:InterProcessStimulus" xmi:id="stim_EqualZero?type=InterProcessStimulus" name="stim_EqualZero"> | |
| <executionCondition> | |
| <entries xsi:type="am:ModeValueCondition" label="numericModeLabel?type=ModeLabel" value="0" relation="EQUAL"/> | |
| </executionCondition> | |
| </stimuli> | |
| </stimuliModel> | |
| <mappingModel> | |
| <schedulerAllocation scheduler="Task_Scheduler_Core_1?type=TaskScheduler" responsibility="Core_1?type=ProcessingUnit" executingPU="Core_1?type=ProcessingUnit"/> | |
| <schedulerAllocation scheduler="Task_Scheduler_Core_2?type=TaskScheduler" responsibility="Core_2?type=ProcessingUnit" executingPU="Core_2?type=ProcessingUnit"/> | |
| <taskAllocation task="Task_5MS?type=Task" scheduler="Task_Scheduler_Core_1?type=TaskScheduler"> | |
| <schedulingParameters key="priority?type=SchedulingParameterDefinition"> | |
| <value xsi:type="am:IntegerObject" value="3"/> | |
| </schedulingParameters> | |
| </taskAllocation> | |
| <taskAllocation task="task_triggeredWhenEqualZero?type=Task" scheduler="Task_Scheduler_Core_2?type=TaskScheduler"> | |
| <schedulingParameters key="priority?type=SchedulingParameterDefinition"> | |
| <value xsi:type="am:IntegerObject" value="3"/> | |
| </schedulingParameters> | |
| </taskAllocation> | |
| <memoryMapping abstractElement="numericModeLabel?type=ModeLabel" memory="Mem_1?type=Memory" memoryPositionAddress="0x0"/> | |
| </mappingModel> | |
| </am:Amalthea> |