timing analysis for multicore ecus · 2019-07-26 · 11 workflow enables the automation of the...

24
V0.1 | 2019-05-23 VIC-2019 Timing Analysis for Multicore ECUs

Upload: others

Post on 07-Apr-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

V0.1 | 2019-05-23VIC-2019Timing Analysis for Multicore ECUs

Page 2: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

2

Options for TA tool suite TA Designing Trace Log Measurements Summary Q&A Agenda

Page 3: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

3

Multicore Effects are challenging the software architecture and integartionIntroduction

Defining a software architecture and integrating it in a way that ensures:Deadline fulfillment Guarantee of system constraints and requirementsLoad balancing

Reduce cross-core communication overheadReduce memory access overhead and blocking effectsReduce OS Overheads

Page 4: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

4

TA Tool Suite in the development processSolution

TATS:: ECU SW Integration� Define Timing Requirements & Constraints� Analyze timing behavior (by simulation) of software architecture� Evaluate and optimize timing & performance behavior (by simulation and model analysis)

TATS::ECU SW Verification� Verify target behavior for fulfilling specified timing requirements� Understand timing behavior by interactive visualizations� Evaluate timing and performance properties for project management

Page 5: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

5

TA Tool Suite Tools Interfaces - SW IntegrationSolutionSWC Detailed Design

RTE & BSW ConfigurationDaVinci Developer

DaVinci Configurator Pro TA Tool Suite

Define Requirements, Visualise & Analyse SW architectureTA.Design Simulate ECU Model

TA.Simulation

CANoe Measurement Runtime.AMD RTM

System Extract of System DescriptionECU Configuration Description / Direct Interface

Update ECU Configuration Description

Measurement Execution Times

Integration phaseVerification phaseVector tool

Use Case: SW Integration with target

Page 6: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

6

TA Tool Suite Tools Interfaces - SW VerificationSolution

TA Tool SuiteIntegration phaseVerification phaseVector tool3rd party tool

Verify ECU target behavior TA.Inspection

Trace Visualization & Requirement VerificationMeasurement and Testing tools Trace (btf)

Define Requirements TA.Design

Use Case: SW Verification

Page 7: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

7

TA Tool Suite

Define Requirements, Visualise & Analyse SW architectureTA.Design Simulate ECU Model

TA.Simulation

Verify ECU target behavior TA.Inspection

Measurement Execution Times & Activation

Timing Architects Tool Suite Interfaces with other ToolsCurrent status of the productSWC Detailed DesignPREEvision System Extract of System Description

Update ECU Configuration Description

Integration phaseVerification phaseVector tool3rd party tool

Trace Visualization & Requirement VerificationMeasurement and Testing tools Trace (btf)

CANoe Measurement Runtime.AMD RTM

RTE & BSW ConfigurationDaVinci Configurator ProECU Configuration Description / Direct Interface

Page 8: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

8

TA.Design enables design and statical analysis of software application � Visualize functional composition and communication flow� Define and visualize requirements, event-chains and constraints� Define and verify data age constraint potential violation

TA.DesignSolution

Page 9: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

9

TA.Simulation enables simulation for timing and performance analysis� Schedulability analysis> Consideration of HW- and OS- effects� Verification of timing requirements fulfillment> Cause-effect analysis� In-depth system design evaluation of timing behavior and resource efforts> Forecast analysis of system utilization and dimensioning of the hardware

TA.SimulationSolution

Page 10: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

10

TA.Inspection enables:� Verification of system implementation via ECU hardware measurement> Hardware-based measurements verification> Comparison on system implementation and simulated results> Enrich timing model with (specific) time information from traces

TA.InspectionSolution

Import of traces format� Best Trace Format (BTF)� iSYSTEM Traces� Lauterbach Traces� PLS Traces� GLIWA OT1

Page 11: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

11

� Workflow enables the automation of the several steps with the TA Options � Provides direct interface to DaVinci Configurator Pro� Job nodes allow different processing of the timing model (e.g simulation, evaluation, trace import etc.)� Also accessible via command line

Direct Interface to DaVinci Configurator ProSolution

Example workflow for creation of Timing architecture model directly from DaVinci project, completing with runtime information. The model is simulated and evaluated and a configured Evaluation Report is generated.

Page 12: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

12

Use-Case 1: Design of dynamic software architectureTA Tool Suite Selected Use-CasesGoalTiming evaluation and analysis of software architecture during early design phase for efficient development of robust multi-core architectureSolutionEvaluate and analyze an application model according to defined timing requirements under different system utilization scenariosBenefitsRequirements engineering for tasks, ISR and timing event-chainsEarly recognition of system timing behavior problems and possibility for their repair

Page 13: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

13

System/ECU-CUse-Case 1 Solution: Model CreationTA Tool Suite Selected Use-Cases

csvPart of SW application description*.csv Part of SW application and core allocation

Trace/ ProfilingRuntime information

TA Tool Suite TA Tool Suite model creation

TA Explorer – Workflow Editor

Static TA timing model Dynamic TA timing model

Page 14: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

14

Use-Case 1 Solution: Timing RequirementsTA Tool Suite Selected Use-Cases� A threshold for a quality criteria/metric

� E.g Deadline – upper limit of task response time� Imported via API-import interfaces in the TA Tool Suite� TA Explorer allows tool-based creation and modification of requirements and event-chain

.tam(…) TA Tool Suite

Page 15: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

15

Timing Architecture Model (TAM)Methodology� Composition of Timing Architecture Model � TA Tool Suite support import/export of AUTOSAR (>4.x), ASAM MDX, AMALTEA-model, OSEK OIL, OT1-model and CSV files format

Static Timing Architecture Model

Dynamic Timing Architecture Model*.csv*.csv

RuntimeData

(OR)

CSV Import and/or tracesContains Runtime information

*.csv

.arxmlAUTOSAR

AMALTHEA

� Import of Software description� Import/ Define timing constraints� Import/ define design constraints

(and / or )

(and / or )

(and / or )

SW Model, ArchitectureOS Model(Communication Interfaces)OS Model, Stimulation(SW Model – OS Events)HW Model

Timing Architecture Model

*.csv

Gliwa OT1

Page 16: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

16

Use-Case 2 Solution: Evaluation and Verification ResultsTA Tool Suite Selected Use-Cases� TA Simulation graphical presentation

Page 17: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

17

OverviewTracing Workflow - iSYSTEM1. Configure MICROSAR BSW with Tracing Hooks (OS and RTE) 2. Configure the Trace Debugger3. Import Trace into TA Tool Suite (iSYSTEM, Lauterbach, PLS and GLIWA)4. Evaluate the Traces against Requirements

TA Tool SuiteTA.Inspection

Extraction of aScheduling Trace Gliwa OT1Lauterbach TraceBTF Trace Timing Report GenerationMICROSAR Debugger

Completely automatable for Regression Tests and TroubleshootingTrace Requirements InputOS Awareness File (f.e. ORTI)

Page 18: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

18

Use-Case 1 Solution: Evaluation and Verification ResultsTA Tool Suite Selected Use-Cases� Stress test analysis example

� Analysis of timing event-chains duration and requirement fulfillment for different load utilization levels� Load utilization increased by increasing the runtimes of some of the most loaded task� Identification of system design improvements

Page 19: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

19

Example with iSYSTEMTracing Workflow - iSYSTEM

TA Tool SuiteTA.Inspection

Extraction of aScheduling Trace BTF Scheduling Trace Import Timing Report GenerationMICROSAR winIDEA

Completely automatable for Regression Tests and TroubleshootingiSYSTEM Requirements InputiSYSTEM Profiler XMLfor OS Awareness

1. Configure MICROSAR BSW - Tracing Hooks OS and RTE 2. Configure iSYSTEM Trace Debugger - iSYSTEM Profiler XML for OS Awareness3. Import Trace into TA Tool Suite4. Evaluate the Traces against Requirements1. 2. 3. 4.

Page 20: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

20

Use-Case 3: Automated Target VerificationTA Tool Suite Selected Use-CasesGoalAutomatically evaluate and verify the implemented system for fulfillment of the specified timing requirementsSolutionEvaluate and analyzing trace measurements according to formalized system requirements BenefitsComplete automation of the trace verification process into the build processRecognition of system timing behavior problems and possibility for their repairVerification of software application regarding system utilization of resourcesDetect problems by reporting evaluation results directly to the Jenkins build server via Junit test

Page 21: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

21

Use-Case 2: OverviewTA Tool Suite Selected Use-CasesTiming RequirementsTrace

TA Inspectorinput export

ReportEvaluation and validation

� Specification of event-chains and definition of their timing requirements� Automated evaluation and requirement verification� Integration of TA Inspector into Jenkins build environment (via console API)� HTML and XML reporting for internal quality audits

Report generation

Page 22: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

22

� Workflow enables the automation of the several steps with the TA Options� Job nodes allow different processing of the timing architecture model� Also accessible via command line� Provides direct interface to DaVinci Configurator Pro

Automation – Workflow Editor (Editing)Methodology

Example workflow for creation of Timing architecture model directly from DaVinci project, completing with runtime information. The model is simulated and evaluated and a configured Evaluation Report is generated.

Page 23: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

23

Summary� Timing analysis for multi core ECU systems� Increased flexibility of SW partitioning in multi core systems� SW integration in multi core systems more complex� Efficient verification of partitioning decisions necessary after SW integration

Page 24: Timing Analysis for Multicore ECUs · 2019-07-26 · 11 Workflow enables the automation of the several steps with the TA Options Provides direct interface to DaVinciConfigurator Pro

24 © 2019. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V0.1 | 2019-05-23

Author:Prabhakar Pragasam