主要内容

使用 PIL 和测试工具进行代码替换验证

自定义测试环境,使用命令行函数创建和运行测试,设置测试预设项

您可以使用 Qualcomm® Hexagon® 处理器测试工具来自定义测试环境。您可以通过自定义约束来扩展测试编写,并扩展测试运行。

您可以使用 Simulink® Test™ 实现以下目的:

  • 创建测试文件。

  • 从命令行运行测试。

  • 对您的测试环境进行设置和标准化。

您可以使用测试文件在多个系统上重复执行相同的测试策略,也可以执行回归测试。

本页中的示例使您能够使用处理器在环 (PIL) 仿真来执行代码验证和确认。使用实时执行探查来检查生成的代码是否满足实时性能要求。

函数

configureModelWithHardwareConfigure Simulink model for code generation on Qualcomm Hexagon hardware (自 R2024b 起)

crltest.ContainsPatternConstraint to check if C/C++ file contains a specific pattern (自 R2024b 起)
crltest.PerfTestCaseTest case class to validate performance numbers of the generated C/C++ code (自 R2024b 起)
logsimulationtime Log the execution time of simulation (自 R2024b 起)

疑难解答

Resolve Common Issues

Troubleshoot issues in Embedded Coder® Support Package for Qualcomm Hexagon Processors and learn how to fix them.

精选示例