Assertions - 2022.1 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
Release Date
2022.1 English

The assert macro in C/C++ is not supported in Vitis HLS.

Usage of assertions can have unintended consequences that are not obvious to the user, causing bad logic to be created. They can also prevent compiler optimizations depending on the complexity of the code.