For C/C++ kernel models, printf()
is only
supported during software emulation and should be excluded from the Vitis HLS synthesis step. In this case, any printf()
statement should be surrounded by the following
compiler macros:
#ifndef __SYNTHESIS__
printf("Checkpoint 1 reached");
#endif
For C++ kernels, you can also use cout
in your
code to add checkpoints or messages used for debugging the code. For example, you might
add the following:
std::cout << "TEST " << (match ? "PASSED" : "FAILED") << std::endl;