Main Content

AUTOSAR Software Components

Configure component properties, map Simulink elements to AUTOSAR elements, configure element packages, apply modeling checks

An AUTOSAR application is modeled by interconnected software components. Each software component encapsulates a functional implementation of automotive behavior, with well-defined connection points to the outside world.

To develop an AUTOSAR software component in Simulink®, you create an initial representation of an AUTOSAR component, as described in Component Creation. The resulting representation includes:

  • Simulink blocks, connections, and data that model AUTOSAR elements such as ports, runnables, inter-runnable variables, and parameters.

  • Stored properties, defined in the AUTOSAR standard, for AUTOSAR elements in the software component.

  • A mapping of Simulink elements to AUTOSAR elements.

Use the Code Mappings editor and the AUTOSAR Dictionary to begin refining and developing the component. The Code Mappings editor provides a Simulink perspective of the component, in which you selectively map Simulink elements to AUTOSAR elements. The AUTOSAR Dictionary provides an AUTOSAR perspective of the component, in which you configure AUTOSAR elements and their properties. To get started, see AUTOSAR Component Configuration.

Tools

Code Mappings EditorMap AUTOSAR elements for code generation

Functions

expand all

autosar.api.getSimulinkMappingMap Simulink elements to AUTOSAR elements
addSignalAdd Simulink block signal to AUTOSAR mapping
getDataStoreGet AUTOSAR mapping information for Simulink data store
getDataTransferGet AUTOSAR mapping information for Simulink data transfer
getFunctionGet AUTOSAR mapping information for Simulink entry-point function
getFunctionCallerGet AUTOSAR mapping information for Simulink function-caller block
getInportGet AUTOSAR mapping information for Simulink inport
getInternalDataPackagingGet default internal data packaging for AUTOSAR component model
getOutportGet AUTOSAR mapping information for Simulink outport
getParameterGet AUTOSAR mapping information for Simulink model workspace parameter
getSignalGet AUTOSAR mapping information for Simulink block signal
getStateGet AUTOSAR mapping information for Simulink block state
mapDataStoreMap Simulink data store to AUTOSAR variable
mapDataTransferMap Simulink data transfer to AUTOSAR inter-runnable variable
mapFunctionMap Simulink entry-point function to AUTOSAR runnable and software address methods
mapFunctionCallerMap Simulink function-caller block to AUTOSAR client port and operation
mapInportMap Simulink inport to AUTOSAR port
mapOutportMap Simulink outport to AUTOSAR port
mapParameterMap Simulink model workspace parameter to AUTOSAR component parameter
mapSignalMap Simulink block signal to AUTOSAR variable
mapStateMap Simulink block state to AUTOSAR variable
removeSignalRemove Simulink block signal from AUTOSAR mapping
setInternalDataPackagingSet default internal data packaging for AUTOSAR component model
autosar.api.getAUTOSARPropertiesConfigure AUTOSAR software component elements and properties
addAdd property to AUTOSAR element
addPackageableElementAdd element to AUTOSAR package in model
createEnumerationCreate Simulink enumeration data type definition to work with imported AUTOSAR element
createNumericTypeCreate Simulink numeric data type definition to work with imported AUTOSAR element
deleteDelete AUTOSAR element
deleteUnmappedComponentsDelete unmapped AUTOSAR components from model
findFind AUTOSAR elements
getGet property of AUTOSAR element
setSet property of AUTOSAR element
autosar.api.createCreate or update mapped AUTOSAR component model
autosar.api.deleteDelete AUTOSAR properties and mapping for Simulink model
autosar.api.syncModelUpdate Simulink to AUTOSAR mapping of model with Simulink modifications
autosar.api.validateModelValidate AUTOSAR properties and mapping of Simulink model
autosar_ui_launchOpen AUTOSAR Dictionary dialog box
autosar_ui_closeClose AUTOSAR Dictionary dialog box
updateAUTOSARPropertiesUpdate model with ARXML definitions of AUTOSAR elements
updateModelUpdate AUTOSAR model with ARXML changes

Topics

AUTOSAR Component Configuration

Configure AUTOSAR software component properties and mapping between Simulink and AUTOSAR elements.

Map AUTOSAR Elements for Code Generation

Use Code Mappings editor to view and map AUTOSAR software component from Simulink perspective.

Map Calibration Data for Submodels Referenced from AUTOSAR Component Models

Use Code Mappings editor to view and map internal data for submodels referenced from AUTOSAR components.

Configure AUTOSAR Elements and Properties

Use AUTOSAR Dictionary to view and configure AUTOSAR software component elements and properties.

Incrementally Update AUTOSAR Mapping After Model Changes

Incrementally auto-configure and map new Simulink elements in AUTOSAR model.

Design and Simulate AUTOSAR Components and Generate Code

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

Configure AUTOSAR Packages

Import or define element packages within hierarchical AUTOSAR package structure.

Configure AUTOSAR Package for Component, Interface, CompuMethod, or SwAddrMethod

Enter package path in component, interface, CompuMethod, or SwAddrMethod view in AUTOSAR Dictionary.

AUTOSAR Blockset Checks

Describes Model Advisor checks for AUTOSAR Blockset.

Limitations and Tips

Limitations that apply to AUTOSAR component development.