Main Content

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.

If you have Simulink Design Verifier™, you can perform verification on the AUTOSAR component models.

Blocks

Control Function Available CallerCall AUTOSAR Function Inhibition Manager (FiM) service interface ControlFunctionAvailable (Since R2020a)
Dem Status InjectInject an event failure to test recovery (Since R2022a)
Dem Status OverrideOverride an event to simulate and verify behavior (Since R2022a)
DiagnosticEventAvailableCallerCall AUTOSAR Diagnostic Event Manager (Dem) service interface EventAvailable (Since R2020a)
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 (Since R2020a)
Diagnostic Service ComponentConfigure AUTOSAR Diagnostic Services and Runtime Environment (RTE) for emulation
Function Inhibition CallerCall AUTOSAR Function Inhibition Manager (FiM) service interface FunctionInhibition (Since R2020a)
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

Functions

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

Topics