MatchLib
|
Macros for synthesizable and non-synthesizable assertions. More...
Macros | |
#define | NVHLS_ASSERT(X) __NVHLS_ASSERT_SC(X) |
#define | CMOD_ASSERT(X) __NVHLS_ASSERT(X) |
#define | NVHLS_ASSERT_MSG(X, MSG) __NVHLS_ASSERT_SC(X && MSG) |
#define | CMOD_ASSERT_MSG(X, MSG) |
Macros for synthesizable and non-synthesizable assertions.
#define NVHLS_ASSERT | ( | X | ) | __NVHLS_ASSERT_SC(X) |
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 71 of file nvhls_assert.h.
#define CMOD_ASSERT | ( | X | ) | __NVHLS_ASSERT(X) |
Non-synthesizable assertion to check x. It will be checked only in C++ simulation and not synthesized by HLS tool.
Definition at line 102 of file nvhls_assert.h.
#define NVHLS_ASSERT_MSG | ( | X, | |
MSG | |||
) | __NVHLS_ASSERT_SC(X && MSG) |
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 135 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 166 of file nvhls_assert.h.