Main Content

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:

  1. Open the Simulink Start Page. Enter the MATLAB® simulink command or select Simulink menu sequences that create a new model.

  2. 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.

  3. On the Modeling tab, click Platform and select the AUTOSAR platform kind, Classic Platform or Adaptive Platform. Mixing classic and adaptive components in the same architecture model is not supported.

  4. 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.

See Also

| | | |

Related Topics