HDL 测试平台生成
R2026b生成测试平台,以基于 MATLAB® 或 Simulink® 的测试向量验证生成的 HDL 代码
生成 HDL 代码时,您可以选择生成 HDL 测试平台,以基于 Simulink 模型或 MATLAB 代码保存的测试向量验证生成的 HDL DUT。您还可以从生成的测试平台运行的测试收集代码覆盖率信息。有关如何选择和运行测试平台的详细信息,请参阅Generate Test Bench and Enable Code Coverage Using the HDL Workflow Advisor。
函数
makehdltb | Generate HDL test bench from model or subsystem |
模型设置
主题
验证基础知识
- Choose a Test Bench for Generated HDL Code
Select a generated test bench. - Generated Model and Validation Model
The generated model is a model created during HDL code generation that shows the HDL implementation architecture and includes latency.
MATLAB 代码的 HDL 测试平台
- Verify Code with HDL Test Bench
Simulate the generated HDL design under test (DUT) with test vectors from the test bench using the specified simulation tool. - Using Test Benches With HDL and HLS Code Generation
MATLAB test bench requirements and best practices for HDL and High-Level Synthesis (HLS) code generation. - Test Bench Generation
HDL Coder™ writes the DUT stimulus and reference data from your MATLAB or Simulink simulation to data files (.dat). - Specify Test Bench Clock Enable Toggle Rate
Specify test bench clock enable toggle rate.
Simulink 模型的 HDL 测试平台
- Verify Generated HDL Code from Simulink Model
Generate an HDL test bench to verify the VHDL® or Verilog® Code. - Verify Generated Code Using HDL Test Bench at Command Line
Learn how to generate an HDL test bench to verify the VHDL, Verilog or SystemVerilog Code. - Test Bench Generation
Learn how HDL test bench generation works. - Generate Test Bench and Enable Code Coverage Using the HDL Workflow Advisor
Generate test bench and code coverage for generated HDL code using the HDL Workflow Advisor. - 测试平台模块限制
确定哪些模块不支持直接连接到 DUT 进行测试平台生成。
疑难解答
Resolve Index Errors During HDL Simulation
Troubleshoot index errors during HDL code simulation.
