AUTOSAR Software Components
An AUTOSAR application is modeled by interconnected software components. Each software component is 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 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 Editor | Map AUTOSAR elements for code generation |
Objects
autosar.api.getSimulinkMapping | Map Simulink elements to AUTOSAR elements |
autosar.api.getAUTOSARProperties | Configure AUTOSAR software component elements and properties |
Properties
AUTOSAR Element Properties | Properties of AUTOSAR elements |
Settings
AUTOSAR XML Options
Settings | AUTOSAR software component XML Options |
Functions
Topics
AUTOSAR Components
- Configure and Map AUTOSAR Component Programmatically
Call property and map functions to configure an AUTOSAR software component. - 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. - Update AUTOSAR Software Component
Update AUTOSAR model with external changes to the ARXML description of the AUTOSAR software component or composition. - Update Architectural Data Section of Data Dictionary from ARXML
Import AUTOSAR architectural data updates from ARXML files into Simulink. - 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. - AUTOSAR Blockset Checks
Model Advisor checks for AUTOSAR Blockset. - Limitations and Tips
Limitations that apply to AUTOSAR component development.
AUTOSAR Elements
- Configure AUTOSAR Elements and Properties
Use AUTOSAR Dictionary to view and configure AUTOSAR software component elements and properties. - Create, Import, and Configure AUTOSAR Computation Methods
Import or create computation methods to convert between internal values and physical representation of AUTOSAR data. - Map AUTOSAR Elements for Code Generation
Use Code Mappings editor to view and map AUTOSAR software component from Simulink perspective. - AUTOSAR Component Configuration
Configure AUTOSAR software component properties and mapping between Simulink and AUTOSAR elements. - Import and Reference Shared AUTOSAR Element Definitions
Import AUTOSAR packages containing shared ARXML element definitions.
AUTOSAR Packages
- 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.