MatchLib
|
Macros for synthesizable and non-synthesizable assertions. More...
Macros | |
#define | NVHLS_ASSERT(X) CTC_SKIP_ASSERT sc_assert(X); CTC_ENDSKIP_ASSERT |
#define | CMOD_ASSERT(x) CTC_SKIP_ASSERT assert(x); CTC_ENDSKIP_ASSERT |
#define | NVHLS_ASSERT_MSG(X, MSG) CTC_SKIP_ASSERT sc_assert(X && MSG); CTC_ENDSKIP_ASSERT |
#define | CMOD_ASSERT_MSG(X, MSG) |
Macros for synthesizable and non-synthesizable assertions.
#define NVHLS_ASSERT | ( | X | ) | CTC_SKIP_ASSERT sc_assert(X); CTC_ENDSKIP_ASSERT |
Synthesizable assertion to check x. It will be synthesized by Catapult HLS tool to either psl or ovl assertions in RTL depending on HLS tool settings. If HLS_CATAPULT flag is not set, then assertions are enabled only in SystemC/C++ simulation and not synthesized to RTL.
Definition at line 58 of file nvhls_assert.h.
#define CMOD_ASSERT | ( | x | ) | CTC_SKIP_ASSERT assert(x); CTC_ENDSKIP_ASSERT |
Non-synthesizable assertion to check x. It will be checked only in C++ simulation and not synthesized by HLS tool.
Definition at line 85 of file nvhls_assert.h.
#define NVHLS_ASSERT_MSG | ( | X, | |
MSG | |||
) | CTC_SKIP_ASSERT sc_assert(X && MSG); CTC_ENDSKIP_ASSERT |
Synthesizable assertion to check x and print msg if assertion fails. It will be synthesized by Catapult HLS tool to either psl or ovl assertions in RTL depending on HLS tool settings. If HLS_CATAPULT flag is not set, then assertions are enabled only in SystemC/C++ simulation and not synthesized to RTL.
Definition at line 116 of file nvhls_assert.h.
#define CMOD_ASSERT_MSG | ( | X, | |
MSG | |||
) |
Non-synthesizable assertion to check x and print msg if assertion fails. It will be checked only in C++ simulation and not synthesized by HLS tool.
Definition at line 144 of file nvhls_assert.h.