Main Content

Verification of Generated HDL Code

R2026b
Generate testbenches to verify HDL code generated with HDL Coder™

When you generate HDL code using HDL Coder, the tools provide options for automatic verification of the generated code against your source MATLAB® or Simulink® design. Use the HDL Workflow Advisor to guide you through code generation and verification. See Getting Started with the HDL Workflow Advisor (HDL Coder) and Generate Test Bench and Enable Code Coverage Using the HDL Workflow Advisor (HDL Coder).

You can generate four kinds of testbenches for verification of generated code:

  • HDL simulation

  • FPGA-in-the-loop (FIL)

  • HDL Cosimulation

  • DPI component

The latter two testbenches are provided when you have an HDL Verifier™ license. FIL requires a license for SoC Blockset™ for AMD or HDL Coder. See Choose a Test Bench for Generated HDL Code (HDL Coder).

These functionalities are not available in MATLAB Online™.

Topics

Cosimulation

System Verilog DPI Component

Combination of Multiple Testbench Types

Related Information

Featured Examples