软件架构建模
AUTOSAR 软件架构建模和仿真(需要 System Composer™)
AUTOSAR 架构模型为开发 AUTOSAR 组合和组件模型提供资源和画布。在架构模型中,您可以:
添加和连接 AUTOSAR 组合和组件,或从 ARXML 文件导入组合。
为架构分析创建配置文件、构造型和视图。
将组件与需求链接起来(需要 Requirements Toolbox™)。
通过创建、链接或导入 Simulink® 模型来定义组件行为。
配置调度和仿真。
导出组合和组件的 ARXML 描述并生成组件代码(需要 Embedded Coder®)。
架构模型提供端到端的 AUTOSAR 软件设计工作流。在 Simulink 中,您可以为 Classic 或 Adaptive 平台创建高级应用程序设计,实现应用程序组件的行为,并仿真应用程序。对于经典架构组合,您可以添加基础软件 (BSW) 服务调用和服务实现。
工具
架构数据编辑器 | Manage architectural data (自 R2023b 起) |
模块
Classic Component | Model classic software component in AUTOSAR architecture model |
Adaptive Component | Model adaptive software component in AUTOSAR architecture model (自 R2023a 起) |
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 |
Variant Component | Conditional variations of AUTOSAR architecture models (自 R2025a 起) |
对象
Simulink.dictionary.ArchitecturalData | 以编程方式编辑 Simulink 数据字典中的建筑数据 (自 R2023b 起) |
autosar.dictionary.ARClassicPlatformMapping | Manage platform-specific properties for elements in data dictionary mapped to AUTOSAR Classic Platform (自 R2022b 起) |
autosar.arch.ParameterComponent | AUTOSAR software parameter component (自 R2025a 起) |
autosar.arch.ParameterPort | AUTOSAR software parameter component port (自 R2025a 起) |
函数
主题
架构模型创建
- 创建 AUTOSAR 架构模型
创建用于开发 AUTOSAR 组合和组件的软件架构画布。 - 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. - 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. - Configure AUTOSAR Architecture Model Programmatically
Call architecture functions to configure an AUTOSAR software architecture model.
架构模型开发
- 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. - Graphically Manage AUTOSAR Architectural Data
Manage architectural data in AUTOSAR models using the Architectural Data Editor. - Configure Client-Server Communication in AUTOSAR Architectures Using Service Interfaces
Configure client-server communication by using client server ports and service interfaces in AUTOSAR architectures. - Create Profiles Stereotypes and Views for AUTOSAR Architecture Analysis
To help analyze AUTOSAR architecture, create filtered views of model hierarchies. - Configure AUTOSAR Architecture Model Programmatically
Call architecture functions to configure an AUTOSAR software architecture model. - Link AUTOSAR Components to Requirements
Link AUTOSAR components that implement requirements to requirements.
仿真
- Configure AUTOSAR Scheduling and Simulation
Schedule and simulate components in AUTOSAR architecture model.
ARXML 和代码生成
- Define Safety Levels for AUTOSAR Architecture Model Elements
Add safety extension ASIL to a component, port, composition, and runnable. - Export Composition and Component ARXML Descriptions from AUTOSAR Blockset Architectures
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. - Export AUTOSAR Architecture ECU Extract
You can export ECU extracts from compositions in an AUTOSAR classic architecture model.