代码生成
为生产集成生成符合 AUTOSAR 标准的 C 代码和 XML 描述
创建和开发 AUTOSAR 软件组件的 Simulink® 表示后,可以生成代码,用于进行 SIL/PIL 测试或集成到 AUTOSAR 运行时环境中。AUTOSAR 代码生成需要 Simulink Coder™ 和 Embedded Coder®。
主题
- 生成 AUTOSAR C 代码和 XML 描述
从 AUTOSAR 组件模型生成符合 AUTOSAR 标准的 C 代码并导出 AUTOSAR XML (ARXML) 描述。
- Configure AUTOSAR Code Generation
Configure code generation for AUTOSAR model.
- 模型配置参数:代码生成 AUTOSAR (Embedded Coder)
用于控制 AUTOSAR 代码生成的参数。
- Code Generation with AUTOSAR Code Replacement Library
Use AUTOSAR 4.x code replacement library to generate C code that more closely aligns with the AUTOSAR standard.
- 自动 AUTOSAR 数据类型生成
在符合 AUTOSAR 标准的 C 代码中自动生成 AUTOSAR 平台数据类型。
- Verify AUTOSAR Code with SIL and PIL
Verify AUTOSAR software component code with software-in-the-loop (SIL) and processor-in-the-loop (PIL) simulations.
- Integrate Generated Code for Multi-Instance Software Components
Configure RTE header files for multi-instance component internal data.
- 导入和仿真来自以前版本的 AUTOSAR 代码
使用跨版本工作流导入来自以前版本的 AUTOSAR 代码。
- Limitations and Tips
Limitations that apply to AUTOSAR code generation.