Composition and ECU Software Simulation

Model and simulate AUTOSAR compositions and ECU software

When you develop multiple AUTOSAR software component models that are interconnected and work together, you can combine them in an AUTOSAR composition model for simulation. A composition is an AUTOSAR software component that aggregates related groups of software components. Compositions support component scaling and help to manage complexity in a design.

To create a Simulink® representation of an AUTOSAR composition, take one of these actions:

  • Import an AUTOSAR XML (ARXML) description of a composition (Classic Platform).

  • Create a model and use Model blocks to reference and connect AUTOSAR component models.

Alternatively, if you have System Composer™ software, you can create an AUTOSAR architecture model and use Software Composition blocks to model AUTOSAR compositions. For more information, see Software Architecture Modeling.

When you simulate a composition model, you simulate the combined behavior of the aggregated AUTOSAR components.

For the AUTOSAR Classic Platform, AUTOSAR Blockset provides Basic Software (BSW) blocks, which allow you to model software component calls to BSW services that run in the AUTOSAR run-time environment. BSW services include NVRAM Manager (NvM), Diagnostic Event Manager (Dem), and Function Inhibition Manager (FiM). In the run-time environment, AUTOSAR software components typically access BSW services using client-server or sender-receiver communication.

To simulate AUTOSAR components that call BSW services, you create a containing composition model and add preconfigured BSW service component blocks. The blocks provide reference implementations of BSW services.

Functions

createCompositionAsModelCreate Simulink representation of AUTOSAR ARXML software composition
updateModelUpdate AUTOSAR model with ARXML changes

Blocks

Control Function Available CallerCall AUTOSAR Function Inhibition Manager (FiM) service interface ControlFunctionAvailable
DiagnosticEventAvailableCallerCall AUTOSAR Diagnostic Event Manager (Dem) service interface EventAvailable
DiagnosticInfoCallerCall AUTOSAR Diagnostic Event Manager (Dem) service interface DiagnosticInfo
DiagnosticMonitorCallerCall AUTOSAR Diagnostic Event Manager (Dem) service interface DiagnosticMonitor
DiagnosticOperationCycleCallerCall AUTOSAR Diagnostic Event Manager (Dem) service interface OperationCycle
Diagnostic Service ComponentConfigure AUTOSAR Diagnostic Services and Runtime Environment (RTE) for emulation
Function Inhibition CallerCall AUTOSAR Function Inhibition Manager (FiM) service interface FunctionInhibition
NvMAdminCallerCall AUTOSAR NVRAM Manager (NvM) service interface NvMadmin
NvMServiceCallerCall AUTOSAR NVRAM Manager (NvM) service interface NvMService
NVRAM Service ComponentConfigure AUTOSAR NVRAM Services and Runtime Environment (RTE) for emulation

Topics

AUTOSAR Software Components and Compositions

Develop and assemble reusable AUTOSAR software components into AUTOSAR compositions.

Import AUTOSAR Composition to Simulink

Create Simulink® model from XML description of AUTOSAR software composition.

Import AUTOSAR Software Composition with Atomic Software Components (Classic Platform)

Import AUTOSAR software composition and its contained components and compositions.

Combine and Simulate AUTOSAR Software Components

Combine AUTOSAR software components in a composition model for simulation.

Design and Simulate AUTOSAR Components and Generate Code

Develop AUTOSAR components by implementing behavior algorithms, simulating components and compositions, and generating component code.

Model AUTOSAR Basic Software Service Calls

Model communication between an AUTOSAR software component and AUTOSAR Basic Software (BSW) services.

Configure Calls to AUTOSAR Diagnostic Event Manager Service

Implement component calls to Diagnostic Event Manager (Dem) service with preconfigured AUTOSAR Basic Software blocks.

Configure Calls to AUTOSAR Function Inhibition Manager Service

Implement component calls to Function Inhibition Manager (FiM) service with preconfigured AUTOSAR Basic Software blocks.

Configure Calls to AUTOSAR NVRAM Manager Service

Implement component calls to NVRAM Manager (NvM) service with preconfigured AUTOSAR Basic Software blocks.

Configure AUTOSAR Basic Software Service Implementations for Simulation

For system-level simulation of AUTOSAR Basic Software caller blocks, use reference implementations of Basic Software services.

Simulate AUTOSAR Basic Software Services and Run-Time Environment

Simulate AUTOSAR component calls to Basic Software memory and diagnostic services by using reference implementations.

Configure and Simulate AUTOSAR Function Inhibition Service Calls

Simulate AUTOSAR component calls to Basic Software function inhibition and related services by using reference implementations.