blob: 8a7a57e3d25fd7eebf3ab056c87ef2ad84ee1f72 [file] [log] [blame]
<?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_natSumCalculator?type=Task" name="task_natSumCalculator" stimuli="Timer_10MS?type=PeriodicStimulus" preemption="preemptive" multipleTaskActivationLimit="10">
<activityGraph>
<items xsi:type="am:RunnableCall" runnable="runnable_loops?type=Runnable"/>
<items xsi:type="am:ModeLabelAccess" data="numericModeLabel_inputVar?type=ModeLabel" access="increment" value="" step="1"/>
</activityGraph>
</tasks>
<runnables xmi:id="runnable_loops?type=Runnable" name="runnable_loops" callback="false" service="false">
<activityGraph>
<items xsi:type="am:ModeLabelAccess" data="numericModeLabel_outputNatSum?type=ModeLabel" access="set" value="0" step="1"/>
<items xsi:type="am:ModeLabelAccess" data="numericModeLabel_outerLoopParam?type=ModeLabel" access="set" value="0" step="1"/>
<items xsi:type="am:WhileLoop">
<items xsi:type="am:ModeLabelAccess" data="numericModeLabel_innerLoopParam?type=ModeLabel" access="set" value="0" step="1"/>
<items xsi:type="am:WhileLoop">
<items xsi:type="am:Ticks">
<default xsi:type="am:DiscreteValueConstant" value="10"/>
</items>
<items xsi:type="am:ModeLabelAccess" data="numericModeLabel_innerLoopParam?type=ModeLabel" access="increment" step="1"/>
<items xsi:type="am:ModeLabelAccess" data="numericModeLabel_outputNatSum?type=ModeLabel" access="increment" step="1"/>
<condition>
<entries xsi:type="am:ModeLabelCondition" relation="LESS_THAN" label1="numericModeLabel_innerLoopParam?type=ModeLabel" label2="numericModeLabel_outerLoopParam?type=ModeLabel"/>
<entries xsi:type="am:ModeLabelCondition" relation="EQUAL" label1="numericModeLabel_innerLoopParam?type=ModeLabel" label2="numericModeLabel_outerLoopParam?type=ModeLabel"/>
</condition>
</items>
<items xsi:type="am:ModeLabelAccess" data="numericModeLabel_outerLoopParam?type=ModeLabel" access="increment" step="1"/>
<condition>
<entries xsi:type="am:ModeLabelCondition" relation="LESS_THAN" label1="numericModeLabel_outerLoopParam?type=ModeLabel" label2="numericModeLabel_inputVar?type=ModeLabel"/>
</condition>
</items>
</activityGraph>
<executionCondition>
<entries xsi:type="am:ConditionConjunction">
<entries xsi:type="am:ModeValueCondition" label="numericModeLabel_inputVar?type=ModeLabel" value="80" relation="LESS_THAN"/>
<entries xsi:type="am:ModeValueCondition" label="numericModeLabel_inputVar?type=ModeLabel" value="0" relation="GREATER_THAN"/>
</entries>
</executionCondition>
</runnables>
<modes xsi:type="am:NumericMode" xmi:id="numericMode?type=NumericMode" name="numericMode"/>
<modeLabels xmi:id="numericModeLabel_inputVar?type=ModeLabel" name="numericModeLabel_inputVar" mode="numericMode?type=NumericMode" initialValue="0"/>
<modeLabels xmi:id="numericModeLabel_outputNatSum?type=ModeLabel" name="numericModeLabel_outputNatSum" mode="numericMode?type=NumericMode" initialValue="0"/>
<modeLabels xmi:id="numericModeLabel_innerLoopParam?type=ModeLabel" name="numericModeLabel_innerLoopParam" mode="numericMode?type=NumericMode" initialValue="0"/>
<modeLabels xmi:id="numericModeLabel_outerLoopParam?type=ModeLabel" name="numericModeLabel_outerLoopParam" 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: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="100.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"/>
</operatingSystems>
<schedulerDefinitions xmi:id="FixedPriorityPreemptive?type=SchedulerDefinition" name="FixedPriorityPreemptive" description="Fixed Priority Preemptive Scheduling (e.g. AUTOSAR),&#xA;same as OSEK but without task groups.&#xA;&#xA;Algorithm parameters:&#xA; -&#xA;&#xA;Process parameters:&#xA; - priority [1] Integer&#xA; The priority of the process (a higher value means a higher priority).&#xA;&#xA;Options:&#xA; -&#xA;&#xA;Reference:&#xA; - Liu, Chung Laung, and James W. Layland (1973).&#xA; &quot;Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment&quot;&#xA; Journal of the ACM (JACM) 20.1 (1973): 46-61.&#xA;" 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_10MS?type=PeriodicStimulus" name="Timer_10MS">
<recurrence value="10" unit="ms"/>
<offset value="0" unit="ms"/>
</stimuli>
</stimuliModel>
<mappingModel>
<schedulerAllocation scheduler="Task_Scheduler_Core_1?type=TaskScheduler" responsibility="Core_1?type=ProcessingUnit" executingPU="Core_1?type=ProcessingUnit"/>
<taskAllocation task="task_natSumCalculator?type=Task" scheduler="Task_Scheduler_Core_1?type=TaskScheduler">
<schedulingParameters key="priority?type=SchedulingParameterDefinition">
<value xsi:type="am:IntegerObject" value="3"/>
</schedulingParameters>
</taskAllocation>
<memoryMapping abstractElement="numericModeLabel_inputVar?type=ModeLabel" memory="Mem_1?type=Memory" memoryPositionAddress="0x0"/>
<memoryMapping abstractElement="numericModeLabel_outputNatSum?type=ModeLabel" memory="Mem_1?type=Memory" memoryPositionAddress="0x0"/>
<memoryMapping abstractElement="numericModeLabel_innerLoopParam?type=ModeLabel" memory="Mem_1?type=Memory" memoryPositionAddress="0x0"/>
<memoryMapping abstractElement="numericModeLabel_outerLoopParam?type=ModeLabel" memory="Mem_1?type=Memory" memoryPositionAddress="0x0"/>
</mappingModel>
</am:Amalthea>