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
Interface Editor | Create and edit interface dictionaries |
Blocks
Classic Component | Model classic software component in AUTOSAR architecture model |
Adaptive Component | Model adaptive software component in AUTOSAR architecture model |
Software Composition | Model software composition in AUTOSAR architecture model |
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 interface dictionary mapped to AUTOSAR Classic Platform |
Simulink.interface.Dictionary | Manage interface dictionary |
Simulink.interface.dictionary.DataInterface | Data interface |
Simulink.interface.dictionary.DataElement | Data element of data interface |
Migrator | Migrate data types and interfaces from base workspace and data dictionaries to an interface dictionary |
Functions
autosar.arch.createModel | Create AUTOSAR architecture model |
autosar.arch.loadModel | Load AUTOSAR architecture model |
addBSWService | Add Basic Software component to AUTOSAR classic architecture model |
addComponent | Add component to AUTOSAR architecture model |
addComposition | Add composition to AUTOSAR architecture model |
addPort | Add port to AUTOSAR component, composition, or architecture model |
close | Close AUTOSAR architecture model |
connect | Connect AUTOSAR architecture components and compositions |
createModel | Create Simulink implementation model for AUTOSAR architecture component |
destroy | Remove and delete AUTOSAR architecture element |
export | Export AUTOSAR architecture model ARXML and generate component code |
find | Find AUTOSAR architecture elements |
get | Get property of AUTOSAR architecture element |
getXmlOptions | Get XML option for AUTOSAR architecture model |
importFromARXML | Import composition from ARXML files into AUTOSAR architecture model |
layout | Arrange AUTOSAR composition or architecture model layout based on heuristics |
linkDictionary | Link interface dictionary to AUTOSAR architecture model |
linkToModel | Link AUTOSAR architecture component to Simulink implementation model |
open | Open AUTOSAR architecture model |
save | Save AUTOSAR architecture model |
set | Set property of AUTOSAR architecture element |
setPlatform | Set platform kind of architecture model to classic or adaptive |
setXmlOptions | Set XML option for AUTOSAR architecture model |
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 a Component in System Composer Model
Create classic or adaptive AUTOSAR architecture from an existing System Composer model component.
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. - Manage Shared Interfaces and Data Types for AUTOSAR Architecture Models
To share interfaces and data types across AUTOSAR components and compositions modeled in Simulink, use an interface 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. - 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
- Generate and Package AUTOSAR Composition XML Descriptions and Component Code
Generate and optionally package AUTOSAR XML descriptions and C code with one click.