AUTOSAR Blockset

 

AUTOSAR Blockset

AUTOSAR 软件的设计与仿真

视频长度为 1:57
截图,显示具有代码透视、映射和属性检查器的 AUTOSAR 原子软件组件模型。

AUTOSAR Classic 软件组件建模

在 Simulink 中使用 AUTOSAR 端口、接口和其他配置自动创建 AUTOSAR Classic 软件组件。

AUTOSAR Adaptive 软件组件建模

对于 AUTOSAR Adaptive 平台,使用 AUTOSAR Blockset 在 Simulink 中通过默认 AUTOSAR 端口、服务接口和其他配置自动生成软件组件。

使用 BSW 服务对 AUTOSAR 组合和 ECU 软件进行仿真

将 AUTOSAR 软件组件和组合与基础软件 (BSW) 服务一起进行建模和仿真,包括 NVRAM Manager、Diagnostic Event Manager 和 Function Inhibition Manager。

AUTOSAR 编辑器截图。

AUTOSAR 软件架构建模

在 Simulink 中编写软件组合、带接口的组件、数据类型、配置文件和原型(使用 System Composer)。通过创建新的 Simulink 组件模型、链接到现有组件模型或从 ARXML 文件导入它们,指定架构模型中组件的行为。

显示执行顺序的调度编辑器截图。

配置调度和仿真

使用调度编辑器调度和指定仿真的组件可运行实体的执行顺序。使用此功能可在组件级别和组合级别上验证 AUTOSAR ECU 软件行为。

三个 AUTOSAR 设计工作流的示意图:自下而上、自上而下和双向工作流。

AUTOSAR 设计工作流

使用自下而上工作流将现有 Simulink 设计映射到 AUTOSAR 软件组件模型,查看架构,并生成代码和 ARXML。使用自上而下工作流从您的架构开始,将 ARXML 文件导入 Simulink 或架构模型并开发算法。或者使用结合这两种方法的双向工作流。

C++ AUTOSAR Adaptive 代码段。

为 AUTOSAR 应用生成产品级 C/C++ 代码

使用 Embedded Coder,生成产品级 C/C++ 代码和 AUTOSAR XML 文件。使用代码执行软件在环 (SIL) 和处理器在环 (PIL) 测试以进行验证。

AUTOSAR 库模块及其对应的 C 代码。

使用代码替换生成优化的库例程

使用预配置的 AUTOSAR 模块和代码替换为 AUTOSAR Classic 应用生成优化的库例程。

 MISRA 规则检查的用户界面。

实现 ISO 26262 和 MISRA C 合规

使用 IEC Certification Kit 认证 ISO 26262 Embedded Coder 生成的代码。验证生成的 AUTOSAR 代码符合 MISRA® C,检查运行时错误,并使用 Polyspace Code Prover 查找代码和 AUTOSAR ARXML 描述之间的不匹配。

“借助基于模型的设计,我们能够通过图形化设计、仿真和代码生成来开发符合 AUTOSAR 标准的高质量代码。”

AUTOSAR Blockset

AUTOSAR Blockset provides apps and blocks for developing AUTOSAR Classic and Adaptive software using Simulink models, including tools for designing software components, simulating Basic Software services, and generating C/C++ code.

You can use the AUTOSAR Component Designer app to design and map Simulink models to software components, or import software component and composition descriptions from AUTOSAR XML (ARXML) files to generate new Simulink models.

AUTOSAR Blockset provides blocks and constructs for BSW services including NVRAM Manager, Diagnostics Event Manager, and Function Inhibition Manager, allowing you to simulate BSW services together with your application software model.

Yes, AUTOSAR Blockset supports developing, simulating, and generating code for both AUTOSAR Classic and Adaptive software components with automatic generation of ports, interfaces, and other configurations in Simulink.

Yes, with System Composer you can create AUTOSAR architecture models in Simulink to author software compositions, components with interfaces, data types, profiles, and stereotypes, and add simulation behavior including BSW service components.

With Embedded Coder, AUTOSAR Blockset generates production C/C++ code and AUTOSAR XML files, supports software-in-the-loop (SIL) and processor-in-the-loop (PIL) testing, and is qualified for use with the ISO 26262 standard using IEC Certification Kit.

You can import ARXML files to generate Simulink models or export ARXML for round-trip workflows, enabling you to round-trip software descriptions between Simulink and other AUTOSAR tools.

Yes, by simulating BSW services together with your application software model, you can verify your AUTOSAR ECU software directly in Simulink without external tools.

有兴趣了解 AUTOSAR Blockset?