HLS Code Verification
R2026bVerification of generated High-Level Synthesis code using test bench
You can generate the test bench files and verify the numeric behavior of the generated High-Level Synthesis code to the MATLAB® code by using the HDL test bench.
Topics
High-Level Synthesis Test Bench
- 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. - Verify HLS Code Using a Generated HLS Test Bench
Use a generated HLS test bench to verify that the generated HLS code produces the same results as your MATLAB algorithm. - Floating-Point Tolerance Parameters
Set the floating-point tolerance parameters in the Verification > Verify with HLS Test Bench > Test Bench Options tab of the HDL Workflow Advisor.
