Assertions - 2022.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2022-12-07
Version
2022.2 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.