54
Volcano VSx Tool-set Overview VSA VSA VST VST Interaction Interaction Layer Layer VSB VSB BSW BSW VSI VSI

Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

  • Upload
    others

  • View
    52

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Volcano VSx Tool-set Overview VSAVSA VSTVST

InteractionInteractionLayerLayer

VSBVSB

BSWBSW

VSIVSI

Page 2: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Agenda

AUTOSAR in short

Mentor Graphics and VSx introduction— Vehicle Systems Architect— Vehicle Systems Integrator— Vehicle Systems Test

Page 3: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

AUTOSAR objectives

AUTomotive Open System Architecture — A gigantic project to solve the accumaled problems in

the automotive industry

The main problem:— The huge competition forces the car OEM-s to introduce

new model in every 2-3 years (But they are not able to do it)

— To develop the new car model is a huge investment and big engineering effort Big complexity High volume and Functional safety

Page 4: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

AUTOSAR defined solutions

The identified solution — Support for model based design

Existing models and modelling tools are supported— Matlab Simulink / UML design tool

Methodolgy and tools are defined for an unbraked design flow

— Support for re-usage of existing components Re-usage of application dependent components

— SW Components, Compositions Re-usage of application independent platform

specific components— Basic SW modules

Page 5: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

The AUTOSAR Methodology (I.)

Complex generation step:complex algorithm or engineering work

SW-ComponentDescription

System-Constraint Description

ECU Resource

Description(HW only)

AUTOSAR defined Data exchange formats

System Configuration

Description

ECUextract of System

Configuration

AUTOSAR System

ConfigurationGenerator

ECUextract of System

Configuration

Component API

Generator

SW Component APIe.g.

app.h

AUTOSAR ECU

ConfigurationEditor

RTE Extract of

ECU Config

OS extractof ECU confige.g.OIL

ECU ConfigurationDescription

Basic SW Module Aextract of

ECU config

per ECU

Basic SW Module Aextract of

ECU config

Basic SW Module Cextract of

ECU config

list of SW Components

SW-CImplementations

Decisions(e.g.

mapping)

Decisions(e.g.

scheduling)

RTE Generator

Config. Generator for COM stack

OIL file Converter for

RTOS

Config. Generators forOther BSWs

Page 6: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

The AUTOSAR Methodology (II.)

AUTOSAR RTE

Generator

Generator forOS, COM, ...

Other Basic SW Generator

MCAL-Generator

AUTOSAR RTE Files

OIL Files

Basic SW Files

MCAL Files

AUTOSAR RTE Tool

AUTOSAR OS Tool

Basis SW Tool

MCAL Tool

per ECU

RTE.c

OS.c

*.c

MCAL.c

Com

piler

Linker

Software Componenten*.c Software

Components

AUTOSAR RTE

OS

Basic Software

MCAL

Lib*.obj

Page 7: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

AUTOSAR ECU

ECU-Hardware

AUTOSAR Runtime Environment (RTE)

ActuatorSoftware

Component

AUTOSARInterface

ApplicationSoftware

Component

SensorSoftware

Component

ApplicationSoftware

Component

..............

AUTOSARSoftware

Basic SoftwareStandardized

Interface

AUTOSARInterface

AUTOSARInterface

AUTOSARInterface

MicrocontrollerAbstraction

AUTOSARSoftware

Component

ECUFirmware

StandardSoftware

StandardizedAUTOSARInterface

Services

StandardizedInterface

ECUAbstraction

AUTOSARInterface

StandardizedInterface

ComplexDeviceDrivers

AUTOSARInterface

API 2VFB & RTErelevant

StandardizedInterface

Communication

StandardizedInterface

StandardizedInterface

Operating System

API 1RTE relevant

API 0

API 3 PrivateInterfaces inside Basic Software

possible

DifferentKinds of

Interfaces

StandardizedInterface

Page 8: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Mentor Graphics a Leader in Design Automation Since 1981

Early founder of Electronic Design Automation (EDA)

$790M in revenue for 2008

~20% market share in EDA industry

One of the largest software companies in the world (67th)

~4,500 employees worldwideSource: EDA Consortium, Software Magazine, The 2008 Software 500 List

88

Acquired Volcano Communications Technologies in May 2005

Member of AUTOSAR since 2004

Page 9: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential9 Mentor VSx Overview

Mentor VSx tool suite

HW architectureHW architecturedefinitiondefinition

SW architectureSW architecturedefinitiondefinition

Network designNetwork designSW to HW arch.SW to HW arch.mappingmapping ECU design &ECU design &

configconfig

SW validationSW validation System level System level validationvalidation

Model driven designModel driven design

ECU/BSWECU/BSWvalidationvalidation

Volcano VSA

Volcano VSACom Designer

Volcano VSI Volcano VSI

Volcano VST

Volcano VSBBridgePoint

SWC desc

SWC desc

Behaviour(code)

Timing

Behaviour(code)

Page 10: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential10 Mentor VSx Overview

Principles of the Mentor VSx Tool Suite Design Process covered by a set of point tools,

deployable step by step, according to customers needs.

Supporting:— early verification and late binding of solutions

as opposed to the more common “early binding / late verification” style.

— Real industrial development process Parallel Processes Iterative development Distribution of Roles and Responsibilities

in today's multi-company, modular supply chain

Based on standards as AUTOSAR and EAST-ADL

Enable shifting validation effort from physical prototypes to a virtual environment

Page 11: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Implementation aspects

Based on the Eclipse framework— All VSx tools are Eclipse ”plugins”

The VSx infrastructure adds AUTOSAR awareness on top of Eclipse

Open interfaces to enable integration with other tools, thirdparty or customer specific

Page 12: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSx Platform

Eclipse

VSASystem Design

VSBECU

Configuration and Builder

VSTTTCN3 Based

SWC and BSW testing

and conformance

testing

VSIVirtual

Validation

APICustomer

Plugin

TTWorkb.VSx InfrastructureAUTOSAR – EAST-ADL2 Meta-model

Page 13: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Volcano VSAVehicle Systems Architect

VSA VSI

VSBBSW

Page 14: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Volcano VSA The VSA is system design tool

with focus on architecting an AUTOSAR based system of ECUs, communication networks, sensors and actuators.

The inital version of VSA is focused on designing/configuring AUTOSAR systems

Coming versions of VSA will support electronic and SW architecture design further with features like CPU and memory load assesment for ECUs, version and variant handling, as well as non-AUTOSAR systems

Page 15: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential15 Mentor VSx Overview

VSA – ActivitiesRequirements ManagementRequirements Management

Vehicle Function DefVehicle Function Def

SWC desc defSWC desc def SW architectureSW architecturedefinitiondefinition

SWC allocationSWC allocation

Network designNetwork design

ECUsECUsNetworksNetworksPeripherialsPeripherials

I/OI/OCarry-overCarry-overNew designNew design

Topology defTopology def

User defined Constraints and consistencyUser defined Constraints and consistency(OEM design IP)(OEM design IP)

MetricsMetricsArchitectureArchitectureevaluationevaluation

ECU schedulingECU scheduling

Logical domainLogical domain

Physical domainPhysical domain

Model BasedModel BasedDesignDesign

E/EE/ESystemSystem

LogicalLogicalViewView

WiringWiringViewView

VSA

3rd Party Tools

Page 16: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential16 Mentor VSx Overview

VSA – ActivitiesRequirements ManagementRequirements Management

Vehicle Function DefVehicle Function Def

SWC desc defSWC desc def SW architectureSW architecturedefinitiondefinition

SWC allocationSWC allocation

Network designNetwork design

ECUsECUsNetworksNetworksPeripherialsPeripherials

I/OI/OCarry-overCarry-overNew designNew design

Topology defTopology def

User defined Constraints and consistencyUser defined Constraints and consistency(OEM design IP)(OEM design IP)

MetricsMetricsArchitectureArchitectureevaluationevaluation

ECU schedulingECU scheduling

Logical domainLogical domain

Physical domainPhysical domain

Model BasedModel BasedDesignDesign

E/EE/ESystemSystem

LogicalLogicalViewView

WiringWiringViewView

VSA

3rd Party Tools

Page 17: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

SWC definition

Define ports and interfaces graphically Define runnables etc in AUTOSAR-editor

Graphical SWC editor AUTOSAR Editor

Page 18: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Compu-method definition

Graphical editor to define relation between internal and physical values

— Rational function— Linear— Piecewise linear— Constants— Texttable— ...

Page 19: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential19 Mentor VSx Overview

VSA – ActivitiesRequirements ManagementRequirements Management

Vehicle Function DefVehicle Function Def

SWC desc defSWC desc def SW architectureSW architecturedefinitiondefinition

SWC allocationSWC allocation

Network designNetwork design

ECUsECUsNetworksNetworksPeripherialsPeripherials

I/OI/OCarry-overCarry-overNew designNew design

Topology defTopology def

User defined Constraints and consistencyUser defined Constraints and consistency(OEM design IP)(OEM design IP)

MetricsMetricsArchitectureArchitectureevaluationevaluation

ECU schedulingECU scheduling

Logical domainLogical domain

Physical domainPhysical domain

Model BasedModel BasedDesignDesign

E/EE/ESystemSystem

LogicalLogicalViewView

WiringWiringViewView

VSA

3rd Party Tools

Page 20: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

SW composition definition

Graphical design of SW compositions

Zoom in/out Outline view Delegation ports

Page 21: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential21 Mentor VSx Overview

VSA – ActivitiesRequirements ManagementRequirements Management

Vehicle Function DefVehicle Function Def

SWC desc defSWC desc def SW architectureSW architecturedefinitiondefinition

SWC allocationSWC allocation

Network designNetwork design

ECUsECUsNetworksNetworksPeripherialsPeripherials

I/OI/OCarry-overCarry-overNew designNew design

Topology defTopology def

User defined Constraints and consistencyUser defined Constraints and consistency(OEM design IP)(OEM design IP)

MetricsMetricsArchitectureArchitectureevaluationevaluation

ECU schedulingECU scheduling

Logical domainLogical domain

Physical domainPhysical domain

Model BasedModel BasedDesignDesign

E/EE/ESystemSystem

LogicalLogicalViewView

WiringWiringViewView

VSA

3rd Party Tools

Page 22: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

SWC to ECU mapping

Map SWC to ECUs Search by typing

Page 23: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

System Signal to Data element mapping

Define the relation between SWC data elements and system signals

Page 24: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential24 Mentor VSx Overview

VSA – ActivitiesRequirements ManagementRequirements Management

Vehicle Function DefVehicle Function Def

SWC desc defSWC desc def SW architectureSW architecturedefinitiondefinition

SWC allocationSWC allocation

Network designNetwork design

ECUsECUsNetworksNetworksPeripherialsPeripherials

I/OI/OCarry-overCarry-overNew designNew design

Topology defTopology def

User defined Constraints and consistencyUser defined Constraints and consistency(OEM design IP)(OEM design IP)

MetricsMetricsArchitectureArchitectureevaluationevaluation

ECU schedulingECU scheduling

Logical domainLogical domain

Physical domainPhysical domain

Model BasedModel BasedDesignDesign

E/EE/ESystemSystem

LogicalLogicalViewView

WiringWiringViewView

VSA

3rd Party Tools

Page 25: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Network Design VSA - Com Designer (option to VSA)

AUTOSAR based network design

— ISignal to IPDU mapping

— IPDU to frame mapping

— consistency check

The Com Designer options are separate products for each protocol type (CAN, LIN, FlexRay)

Page 26: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential26 Mentor VSx Overview

VSA – ActivitiesRequirements ManagementRequirements Management

Vehicle Function DefVehicle Function Def

SWC desc defSWC desc def SW architectureSW architecturedefinitiondefinition

SWC allocationSWC allocation

Network designNetwork design

ECUsECUsNetworksNetworksPeripherialsPeripherials

I/OI/OCarry-overCarry-overNew designNew design

Topology defTopology def

User defined Constraints and consistencyUser defined Constraints and consistency(OEM design IP)(OEM design IP)

MetricsMetricsArchitectureArchitectureevaluationevaluation

ECU schedulingECU scheduling

Logical domainLogical domain

Physical domainPhysical domain

Model BasedModel BasedDesignDesign

E/EE/ESystemSystem

LogicalLogicalViewView

WiringWiringViewView

VSA

3rd Party Tools

Page 27: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Constraints and consistency

Scripts can read/ write from the VSA data

Implement custom consistency checks, reports, small features etc

Can be used for almost any task, not only consistency checks

Page 28: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Volcano VSA - workflow

Page 29: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSA and AUTOSAR – roles (simplified)

CM CM systemsystem

SW engineerSW engineer- Defining SW architecture- Defining SW architecture- Defining timing requirements- Defining timing requirements

Systems architectSystems architect- Defining HW architecture- Defining HW architecture

Systems architectSystems architect-Mapping SWC to ECUMapping SWC to ECU-etcetc

Network designerNetwork designer-Data elem to sys sig mapData elem to sys sig map-Frame packing/definitionFrame packing/definition

SWC desc and SWC desc and SW compositionsSW compositions

System desc (topology)System desc (topology)ECU definitionsECU definitions

System desc System desc (Mappings)(Mappings)

System desc System desc (Communication(CommunicationMappings)Mappings)

ECU engineerECU engineer- Defining ECU properties- Defining ECU properties

ECU Tier 1 SupplierECU Tier 1 Supplier- Defining ECU properties- Defining ECU properties- Configuring ECU- Configuring ECU

ECU extract ECU extract (SWC and SYS)(SWC and SYS)

ECU resourceECU resourceECU configurationECU configuration

AR BSW supplierAR BSW supplier

Basic SW module Basic SW module descriptiondescription

ECU extract ECU extract

BMD BMD

VSA

Page 30: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Multi-user work with Team

VSA utilises the Eclipse ”Team interface” to connect to industry standard CM systems such as

— Clearcase— SVN— CVS— ...

Team enables multi-user development work according to the capabilities of the selected CM system

Page 31: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSA Merge Tool

Target object

Source objectMerger Toolbar

The VSA merge tool allows merging objects that has been updated by different sources

— Enables iterative development in separate tools— Enables merging data modified by supplier or OEM respectivly

Page 32: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSA Merge Tool Displays difference of objects and allows

merging selected elements and properties

Page 33: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

AUTOSAR timing

A full system timing model covering from sensor read to actuator effect

Based on defining events and timing requirements between the events

Page 34: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSA future

Network design for CAN,LIN, FlexRay User-configurable report engine AUTOSAR timing model integration Integration with Capital Harness (MGC wiring harness

design tool suite) NVRAM configuration support ODX configuration support RTE contract phase support Graphical Topology Editor Auto-routing of SW Composition diagrams

=>YOUR input needed!

Page 35: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSIVehicle Systems Integrator

VSA VSI

VSBBSW

Page 36: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential36 Mentor VSx Overview

Virtual Systems Integrator

Validate SWC/composition behavior at VFB level

Design verification and validation of embedded software from multiple sources in distributed systems

AUTOSAR is initial target IDE, debugger and profiler in

AUTOSAR environment, etc

Page 37: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Why an AUTOSAR System Level Simulator?

AUTOSAR SWCs coming from different sources must be integrated to perform vehicle functionality

Allows verification of SWC compositions long before ECUs are available

BC, VSI demo flow for AUTOSAR, Nov 200837

Page 38: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential38 Mentor VSx Overview

VSI Application Software DevelopmentSoftware Modeling Algorithmic Modeling

C code Generate

C code Generate

Models use code generated from BridgePoint UML, Simulink, etc. or hand coding

Page 39: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Company Confidential39 Mentor VSx Overview

VSI Tool Suite

Software Component ViewSWC and Composition

Runnable and Task

IDE, Debugger

Profiler, Code and DataTrace

Breakpoints

Page 40: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

BC, VSI demo flow for AUTOSAR, Nov 200840

VSI Application Software Development

XML XML XML XML

C/C

++

C/C

++

C/C

++

C/C

++

Operating System System Services

Current implementation – Ideal ECU

Page 41: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Execute SWCs in context Three abstraction levels of execution of code

— Component— SWC

— RTE Behavior— Runnables— Events

— Implementation— Software C code — Threads & Tasks

BC, VSI demo flow for AUTOSAR, Nov 200841

OSTriggereOSTriggeredd

(runnable)(runnable)

InputPortInputPort

(runnable)(runnable)DataData

Sender_OSTriggered

// do send actionsSender_OSTriggered(Rte_Instance self) { ExecCount_t *s=Rte_Pim_ExecutionCount(self); (*s)++; message_sent = *s;Rte_Write_OutputPort_CaseStudyData(self, *s);}

PolledEvent:TimedEvent

Receiver_InputPort// do receive actionsReceiver_InputPort_CaseStudyData(Rte_Instance self){ Rte_Read_InputPort_CaseStudyData(self, &message_received); TOGGLE_PIN(IO_PIN1); if (LED_TEST()) { LED_OFF(); } else { LED_ON(); }}

StartOnEventStartOnEvent

Page 42: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSIVSI VSIVSI

VSA-VSI – Activities/flow

VSAVSASWC desc defSWC desc def

SW compositionSW composition

Model Build Model Build configurationconfiguration

Model code and descriptions.c/h files, Object librariesSWC descriptions (if available)

Model BasedModel BasedDesignDesign Manual codingManual coding

My_mod.xmlinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.xmlinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.xmlinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.xmlinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.cinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.cinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.cinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.cinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

RTOSRTOS

RTERTE

My_mod.cinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.cinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.cinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

My_mod.cinitial begin clk = 0; #10 clk = 1; forever #50 clk = !clk; end

42BC, VSI demo flow for AUTOSAR, Nov 2008

Page 43: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Set and Clear Breakpoints

BC, VSI demo flow for AUTOSAR, Nov 200843

Breakpoint set on runnable,

also indicated on code,and on SWC level

Page 44: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Access Data Variables & Expressions

BC, VSI demo flow for AUTOSAR, Nov 200844

AUTOSAR Objects, Data Types and values in familiar, relevant terms

Page 45: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

AUTOSAR-aware Debug

Includes required debug features: Debug Control Code breakpoints Data breakpoints Data trace Code traceAcross all three

AUTOSAR levels

BC, VSI demo flow for AUTOSAR, Nov 200845

Page 46: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Benefits of an AUTOSAR System Simulator Excellent Collaboration

— OEM and Tier1 communicate around executable models— Achieve early specifications

Required functionality is communicated unambiguously,before architectural decisions are made

— Achieve early integration and test Specifications with integrated functions and verification suites

increase chances of first-time success

Verification is fast and accurate— Simulates at a high-level of abstraction

Integrate functions from multiple tools— Functionality is best expressed in multiple domain-specific modeling

languages

Use native modeling tools— Developers remain in familiar tools, preserving investments into

existing tools and libraries

BC, VSI demo flow for AUTOSAR, Nov 200846

Page 47: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSTVehicle Systems Test

VSA

VSBBSW

VSTVSI

Page 48: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

What is Volcano Vehicle Systems Tester (VST)

■ One single environment for AUTOSAR Basic SW Test design, execution and reporting

■ Executes the standardized AUTOSAR conformance test suite

■ A generic TTCN-3 SW module test environment with AUTOSAR as speciality

■ Probably the quickest way of verifying AUTOSAR BSW modules - on target or in a PC environment!

Page 49: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Volcano VST overview

Page 49

Inputs

AUTOSAR SWModule(s)

TTCN-3Test Description

AUTOSAR UML Metamodel

Volcano Vehicle Systems Tester (VST)

AUTOSAR Compatibility

Valuator

VST Code Generator

Cwrapper

Cwrapper

TTCN-3Template

TTCN-3Template

Automated Test report

AUTOSARCT execution

FullAR ICC/version

support

TTCN-3Compiler

TTCN-3 Debugger

Stress & FaultInjection

Graphicallogging

Inputs

AUTOSAR SWModule(s)

TTCN-3Test Description

AUTOSAR UML Metamodel

Inputs

AUTOSAR SWModule(s)

TTCN-3Test Description

AUTOSAR UML Metamodel

Volcano Vehicle Systems Tester (VST)

AUTOSAR Compatibility

Valuator

AUTOSAR Compatibility

Valuator

VST Code Generator

Cwrapper

Cwrapper

TTCN-3Template

TTCN-3Template

VST Code Generator

VST Code Generator

Cwrapper

Cwrapper

TTCN-3Template

TTCN-3Template

Automated Test report

AUTOSARCT execution

FullAR ICC/version

support

TTCN-3Compiler

TTCN-3 Debugger

Stress & FaultInjection

Graphicallogging

Graphicallogging

Page 50: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VST Environment overview■ Are using the well-known tools/standards as base

Developed as plug-in to the Eclipse Platform ■ Open Source Platform widely used for AUTOSAR etc■ Controlled, integrated and flexible Environment■ Allows the user to write their own plugins

The TTWorkbench TTCN-3 Eclipse plug-ins■ Established TTCN-3 solution provider partner■ Mature TTCN-3 plug-ins

Eclipse Platform

Platform Runtime

Workspace

WorkbenchJFace

SWT

Help

TTWorkbench plugins

MGC VST plugin 1

MGC VST plugin 2

MGC VST plugin 3

MGC VST plugin ...

Customer specific plugin

Page 51: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VST - The AUTOSAR SW module test tool■ Supports multiple AUTOSAR versions and conformance classes

■ Supports any C code module (with AR BSW as specialty) AR BSW modules (also vendor specific modules) AR SWC non AUTOSAR SW

■ Low test suite maintenance/extendibility costs (ICC2/ICC1 support, Upcoming AR Releases)

■ Automatic generation of stubs/wrappers Generation of Embedded Wrapper Code around the System Under Test (SUT) Generation of all Test Triggers/Expected Response (TTCN-3)

■ Automatic generation of test reports and specifications

■ Built in AUTOSAR knowledge simplifies test development Validation against AR UML model etc.

■ Target and/or PC based test execution Unified testing approach for target dependant and target independent modules. Designed to handle both AR Class A (PC) and Class B (target) test execution.

■ Support of stress, target dependant and fault Injection Tests Easy fault injection & negative testing capabilities on all bus protocols (LIN, FR, CAN, and

DAIO)

Page 52: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

The Volcano VST test process

Page 53: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

Example VST Target Environment (For FlexRay testing)

FR_BFR_A

12Vpower supply

MINI MincubeDebugger

EVB (AUTOSAR V850E/PHO3 Starter Kit Board)

CAN 0/1

CAN 2/3FR1

FR0

P_NWIRE

USB

NEC PHO3

LED1LED2LED3LED4LED5LED6LED7LED8

USB

H/W FR Opponent

Flex

Ray

bus

VST

H/W CAN Box

CAN

CA

N b

us (A

uxilia

ry C

hann

el)

Page 54: Volcano VSx VSA VST Tool-set Overview Interaction VSI Layeroldweb.mit.bme.hu/projects/aha/03_Horvath.pdfAUTOSAR objectives AUTomotive Open System Architecture — A gigantic project

VSAVSA VSIVSI

InteractionInteractionLayerLayer

VSBVSB

BSWBSW

VSTVST