Software Architecture Modeling
An AUTOSAR architecture model provides resources and a canvas for developing AUTOSAR composition and component models. From the architecture model, you can:
Add and connect AUTOSAR compositions and components, or import a composition from ARXML files.
Create profiles, stereotypes, and views for architecture analysis.
Link components to requirements (requires Requirements Toolbox™).
Define component behavior by creating, linking, or importing Simulink® 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 the Classic or Adaptive Platform, implement behavior for application components, and simulate the application. For classic architecture compositions, you can add Basic Software (BSW) service calls and service implementations.
Tools
Architectural Data Editor | Manage architectural data (Since R2023b) |
Blocks
Classic Component | Model classic software component in AUTOSAR architecture model (Since R2019b) |
Adaptive Component | Model adaptive software component in AUTOSAR architecture model (Since R2023a) |
Software Composition | Model software composition in AUTOSAR architecture model (Since R2019b) |
Diagnostic Service Component | Configure AUTOSAR Diagnostic Services and Runtime Environment (RTE) for emulation |
NVRAM Service Component | Configure AUTOSAR NVRAM Services and Runtime Environment (RTE) for emulation |
Adapter | Connect components with different interfaces |
Objects
autosar.dictionary.ARClassicPlatformMapping | Manage platform-specific properties for elements in data dictionary mapped to AUTOSAR Classic Platform (Since R2022b) |
Simulink.dictionary.ArchitecturalData | Edit architectural data in a Simulink data dictionary programmatically (Since R2023b) |
Simulink.dictionary.archdata.DataInterface | Edit data interface in Simulink data dictionary programmatically (Since R2023b) |
Simulink.dictionary.archdata.DataElement | Data element of data interface (Since R2023b) |
Simulink.dictionary.archdata.ServiceInterface | Service interface (Since R2023b) |
Simulink.dictionary.archdata.FunctionElement | Function in client-server interface (Since R2023b) |
Simulink.dictionary.archdata.FunctionArgument | Function argument in function element of client-server interface (Since R2023b) |
Simulink.dictionary.archdata.StructType | Structure data type (Since R2023b) |
Simulink.dictionary.archdata.StructElement | Struct element of a struct type (Since R2023b) |
Functions
Topics
Architecture Model Creation
- Create AUTOSAR Architecture Models
Create software architecture canvas for developing AUTOSAR compositions and components. - Import AUTOSAR Composition from ARXML
Import AUTOSAR software composition from ARXML files. - Create AUTOSAR Architecture from System Composer Model
Create classic or adaptive AUTOSAR architecture from an existing System Composer model.
Architecture Model Development
- Add and Connect AUTOSAR Classic Components and Compositions
Add AUTOSAR classic software components, compositions, ports, and connectors. - Add and Connect AUTOSAR Adaptive Components and Compositions
Add AUTOSAR adaptive software components, compositions, ports, and connectors. - Graphically Manage Shared Interfaces, Data Types, and Constants
To share interfaces, data types, and constants across components and compositions modeled in Simulink, use the Architectural Data section of a data dictionary. - Programmatically Manage Shared Interfaces, Data Types, and Constants of Architecture Models
To share interfaces, data types, and constants across components and compositions modeled in Simulink, use the Architectural Data section of a data dictionary. - Link AUTOSAR Components to Requirements
Link AUTOSAR components that implement requirements to requirements. - Create Profiles Stereotypes and Views for AUTOSAR Architecture Analysis
To help analyze AUTOSAR architecture, create filtered views of model hierarchies. - Define AUTOSAR Component Behavior by Creating or Linking Models
Add Simulink behavior to AUTOSAR components by creating, linking, or importing models. - Define AUTOSAR Compositions by Creating or Linking Models
Define AUTOSAR software compositions by creating, linking, or importing compositions as implementation models. - Configure AUTOSAR Architecture Model Programmatically
Call architecture functions to configure an AUTOSAR software architecture model.
Simulation
- Configure AUTOSAR Scheduling and Simulation
Schedule and simulate components in AUTOSAR architecture model.
ARXML and Code Generation
- Define Safety Levels for AUTOSAR Architecture Model Elements
Add safety extension ASIL to a component, port, composition, and runnable. - Generate and Package AUTOSAR Composition XML Descriptions and Component Code
Generate and optionally package AUTOSAR XML descriptions and C code with one click. - Generate ASAP2 File for AUTOSAR Architecture Models
Generate ASAP2 file for Autosar architecture models.