13
AUTOSAR Timing Extension and a Case Study for Schedulability Analysis ArtistDesign Workshop on Real-Time System Models for Schedulability analysis University of Cantabria 7-8 February 2011 [email protected]

AUTOSAR Timing Extension and a Case Study for Schedulability

  • Upload
    vudiep

  • View
    219

  • Download
    2

Embed Size (px)

Citation preview

Page 1: AUTOSAR Timing Extension and a Case Study for Schedulability

AUTOSAR Timing Extension and a Case Study for Schedulability Analysis

ArtistDesign Workshop on Real-Time System Models for Schedulability analysis

University of Cantabria7-8 February 2011

[email protected]

Page 2: AUTOSAR Timing Extension and a Case Study for Schedulability

2

Agenda

• AUTOSAR quick look

• AUTOSAR development methodology

• AUTOSAR Timing Extension

• Case study, enabling schedulability analysis on AUTOSAR models (from “Enabling Schedulability Analysis for AUTOSAR Sytems” to appear ISORC11)

Page 3: AUTOSAR Timing Extension and a Case Study for Schedulability

3

the AUTomotive Open System ARchitecture

Approach to engineering automotive systems that decouples the software architecture from the computing platform

Rich set of standards in their fourth revision

The AUTOSAR initiative is in its seventh year

Goals of AUTOSAR aligns to MDA

� AUTOSAR metamodel

� Development Methodology

� Timing Extension to support verification of timing constraints (newly added in last revision)

Page 4: AUTOSAR Timing Extension and a Case Study for Schedulability

4

AUTOSAR: quick look

AUTOSAR

metamodelmetamodelmetamodelmetamodel

developmentdevelopmentdevelopmentdevelopmentmethodologymethodologymethodologymethodology

layeredlayeredlayeredlayeredarchitecturearchitecturearchitecturearchitecture

SWC SWC SWC SWC SWC

RTE

Basic Software

HW

timing timing timing timing extensionextensionextensionextension

standard basic standard basic standard basic standard basic softwaresoftwaresoftwaresoftware

Basic Software

OS MEM COM I/OComplex

Devices

MDA MDA MDA MDA principlesprinciplesprinciplesprinciples

PM

SWC SWC SWCSWC SWC

PIM

VFB

Level +

System

Code!

VFB

Level

Page 5: AUTOSAR Timing Extension and a Case Study for Schedulability

5

AUTOSAR methodology

.XML System Configuration Input

Mapping of SWC to ECU

Component InternalBehavior

SWCs and Connections

ECUs and topology

Mapping Constraints

.XML System Configuration Description

.XML Extract of System Configuration Description

tasks, mapping of runnables on tasks, BSW configuration

.XML ECU Configuration Description

.EXE

information specific to each ECU is automaticallyextracted

R1

R2R1

R1

R2R1 R1

R1

R2

RTE

R1

R1

R2

RTE

R1

BSW

SWC SWC SWCSWC SWC

Page 6: AUTOSAR Timing Extension and a Case Study for Schedulability

6

Timing Extension

– confidential

Page 7: AUTOSAR Timing Extension and a Case Study for Schedulability

7

Case Study – cruise control system

For each runnable: 1 basic event chain TimingDescriptionDEventChainDescription• Stimulus: TimingDescriptionEvent=RunnableEntityActivated

• Response TimingDescriptionEvent=RunnableEntityTerminated

To model end-to-end flows, two event chains built by composing basic event chains• Control event chain and Failure management event chain

To model end-to-end deadlines: • For control event chain LatencyTimingConstraints=500ms

• For failure management event chain LatencyTimingConstraints=100ms

CAN

ApplicationSoftwareComponent

Input

AcquisitionInput

Interpretation

Diagnosis

ApplicationSoftwareComponent

Speed

Setpoint

Application

Condition

Basic

Function

Limp

HomeController

SwcTiming R1R2

System Level

Page 8: AUTOSAR Timing Extension and a Case Study for Schedulability

8

Case Study cruise control system

• To model OS Tasks and Runnables/Task Mapping, the ECU configuration description should beused.

• The mapping is done by creating a RteEventToTaskMapping that allows

referencing the RteEvent (the runnable) and the OStask.

• On OStask priorities can be set.

• Worst Case Execution Time is specifiedby ResourceConsumption in each

application software component implementation.

• Periods for runnables are part of SwcTiming, where an EventTriggeringConstraintis specified in the stimulus event (RunnableEntityActivated) of the correspondingevent chain for the runnable

• LatencyTimingConstraints are also specified for each runnable to specify deadline

Swc Timing R1R2

ECU Level

Page 9: AUTOSAR Timing Extension and a Case Study for Schedulability

9

Schedulability Analysis - MAST configuration

• Offset-based technique used, technique table:

• Results:

Page 10: AUTOSAR Timing Extension and a Case Study for Schedulability

10

Personal perspective

MDD – is about the concept of correct by construction…

5.1 : simulation or static analysis

Page 11: AUTOSAR Timing Extension and a Case Study for Schedulability

11

Personal Perspective

5.1 : simulation or static analysis

non functional propertiesannotations, e.g, computational costs of operations

Mathematicalmodels

queueing network

schedulability task model

petri-nets

Resultsmodel model

system design

results/design issuesIs this transformation possible????

In the ideal world (for industries), this should be the path for quantitative analysis

Page 12: AUTOSAR Timing Extension and a Case Study for Schedulability

12

Personal Perspective

• Methodologies for schedulability analysis should be defined at different level of abstractions (seeAUTOSAR Timing views)

• The entry design model should specify a precise semantics, it is not a free model, e.g. for MAST � only a subset of UML Activityelements should be used

� The structure of the Activity Diagram is also constrainted (e.g. no cycles)

• A methodology is useless without a tool

• The tool allows the construction of only well-formed design models, i.e. design model expressingprecise semantics

• Transformations towards the schedulability model should be transparent to the designer, this isimportant when presenting results (e.g. an artificial task added to handle a shared task betweentwo transactions should be transparent to the designer)

• Domain-specific front-ends (e.g. AUTOSAR) should be also supported, MARTE can be a pivot language in this sense

Page 13: AUTOSAR Timing Extension and a Case Study for Schedulability

13

Thanks! & Questions