| <?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_Ping?type=Task" name="Task_Ping" stimuli="Stim_5ms?type=PeriodicStimulus" preemption="preemptive" multipleTaskActivationLimit="10"> |
| <activityGraph> |
| <items xsi:type="am:Ticks"> |
| <default xsi:type="am:DiscreteValueConstant" value="1000"/> |
| </items> |
| <items xsi:type="am:ChannelSend" data="Channel_1?type=Channel" elements="2"/> |
| </activityGraph> |
| </tasks> |
| <tasks xmi:id="Task_Pong?type=Task" name="Task_Pong" stimuli="Stim_30ms?type=PeriodicStimulus" preemption="preemptive" multipleTaskActivationLimit="10"> |
| <activityGraph> |
| <items xsi:type="am:Ticks"> |
| <default xsi:type="am:DiscreteValueConstant" value="200"/> |
| </items> |
| <items xsi:type="am:WhileLoop"> |
| <items xsi:type="am:ChannelReceive" data="Channel_1?type=Channel" elements="3" receiveOperation="FIFO_Take" dataMustBeNew="false" elementIndex="0" lowerBound="0"/> |
| <items xsi:type="am:Ticks"> |
| <default xsi:type="am:DiscreteValueConstant" value="1500"/> |
| </items> |
| <condition> |
| <entries xsi:type="am:ChannelFillCondition" channel="Channel_1?type=Channel" relation="GREATER_THAN_OR_EQUAL" fillLevel="3"/> |
| </condition> |
| </items> |
| </activityGraph> |
| </tasks> |
| <channels xmi:id="Channel_1?type=Channel" name="Channel_1" defaultElements="1" maxElements="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:Memory" xmi:id="Mem_1?type=Memory" name="Mem_1" frequencyDomain="FrequencyDomain_1?type=FrequencyDomain" definition="DefaultMemory?type=MemoryDefinition"/> |
| <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> |
| </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),
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:
 - TODO" 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="Stim_5ms?type=PeriodicStimulus" name="Stim_5ms"> |
| <recurrence value="5" unit="ms"/> |
| </stimuli> |
| <stimuli xsi:type="am:PeriodicStimulus" xmi:id="Stim_30ms?type=PeriodicStimulus" name="Stim_30ms"> |
| <recurrence value="30" unit="ms"/> |
| </stimuli> |
| </stimuliModel> |
| <eventModel/> |
| <mappingModel> |
| <schedulerAllocation scheduler="Task_Scheduler_Core_1?type=TaskScheduler" responsibility="Core_1?type=ProcessingUnit Core_2?type=ProcessingUnit" executingPU="Core_1?type=ProcessingUnit"/> |
| <taskAllocation task="Task_Ping?type=Task" scheduler="Task_Scheduler_Core_1?type=TaskScheduler"> |
| <schedulingParameters key="priority?type=SchedulingParameterDefinition"> |
| <value xsi:type="am:IntegerObject" value="1"/> |
| </schedulingParameters> |
| </taskAllocation> |
| <taskAllocation task="Task_Pong?type=Task" scheduler="Task_Scheduler_Core_1?type=TaskScheduler"> |
| <schedulingParameters key="priority?type=SchedulingParameterDefinition"> |
| <value xsi:type="am:IntegerObject" value="1"/> |
| </schedulingParameters> |
| </taskAllocation> |
| <memoryMapping abstractElement="Channel_1?type=Channel" memory="Mem_1?type=Memory" memoryPositionAddress="0x0"/> |
| </mappingModel> |
| </am:Amalthea> |