Create AUTOSAR Architecture Models
An AUTOSAR architecture model provides resources and a canvas for developing AUTOSAR composition and component models (requires System Composer™). From the architecture model, you can:
Add and connect AUTOSAR compositions and components.
View component or composition dependencies.
Link components to requirements (requires Requirements Toolbox™).
Add Simulink® behavior to components by creating or linking models.
Configure scheduling and simulation.
Export composition and component ARXML descriptions and generate component code (requires Embedded Coder®).
Architecture models provide an end-to-end AUTOSAR software design workflow. In Simulink, you can author a high-level application design for AUTOSAR Classic or Adaptive Platform architectures, implement behavior for application components, and simulate the application. For classic architecture compositions, you can add Basic Software (BSW) service calls and service implementations.
To create an architecture model, open an AUTOSAR Blockset model template from the Simulink Start Page. For example:
Open the Simulink Start Page. Enter the MATLAB®
simulinkcommand or select Simulink menu sequences that create a new model.
On the New tab, scroll down to AUTOSAR Blockset and expand the list of model templates. Place your cursor over the Software Architecture template and click Create Model.
A new AUTOSAR architecture model opens.
On the Modeling tab, click Platform and select the AUTOSAR platform kind,
Adaptive Platform. Mixing classic and adaptive components in the same architecture model is not supported.
Explore the controls and content in the software architecture canvas.
In the Simulink Toolstrip, the Modeling tab supports common tasks for architecture modeling.
To the left of the model window, the palette includes icons for adding different types of AUTOSAR components to the model:
For classic architectures, supported blocks include the Classic Component, Software Composition, and for Basic Software (BSW) modeling, Diagnostic Service Component and NVRAM Service Component.
For adaptive architectures, supported blocks include the Adaptive Component and Software Composition.
The composition editor provides a view of AUTOSAR software architecture based on the AUTOSAR Virtual Function Bus (VFB). The model canvas initially is empty.
After you create an AUTOSAR architecture model, develop the top level of the design. See Add and Connect AUTOSAR Classic Components and Compositions or Add and Connect AUTOSAR Adaptive Components and Compositions.
Software Component | Adaptive Component | Software Composition | Diagnostic Service Component | NVRAM Service Component