软件在环仿真
R2026b软件在环 (SIL) 仿真在主机上编译生成的源代码并将其作为单独的进程执行。通过比较普通模式仿真结果和 SIL 仿真结果,可以测试模型与生成的代码之间是否存在数值等效性。在 SIL 仿真期间,您可以为生成的代码收集代码覆盖率和执行时间度量。
App
| SIL/PIL 管理器 | 验证生成的代码 |
主题
- SIL 和 PIL 仿真
软件在环 (SIL) 和处理器在环 (PIL) 仿真概述。
- 选择 SIL 或 PIL 方法
测试从顶层模型、引用模型和子系统生成的代码。
- 配置并运行 SIL 仿真
设置并运行顶层模型 SIL 和 Model 模块 SIL 仿真。
- 使用 SIL/PIL 管理器的单元测试原子子系统代码
使用 SIL/PIL 管理器对原子子系统执行单元测试。
- SIL/PIL Manager Verification Workflow
A simplified workflow for verifying generated code.
- Simulation Mode Override Behavior in Model Reference Hierarchy
How the simulation mode of the top model or parent model determines the simulation behavior of a model hierarchy.
- SIL and PIL Limitations
Modeling and code generation features that are not supported or partially supported by SIL and PIL simulations.
- SIL/PIL Limitations Removed
Modeling and code generation features for which SIL and PIL simulations limitations have been removed.
疑难解答
使用调试器了解生成代码的行为。
生成涵盖 SIL 和 PIL 文件的代码生成报告和静态代码度量。
Numerical Consistency of Model and Generated Code Simulation Results
Determine whether model and generated code simulation results are numerically consistent. Investigate discrepancies.
