diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/sysc.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/utils/sysc.h b/src/utils/sysc.h deleted file mode 100644 index 99c863b..0000000 --- a/src/utils/sysc.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef SYSC_PLAYGROUND_SYSC -#define SYSC_PLAYGROUND_SYSC - -#include <sysc/kernel/sc_module.h> -#include <sysc/kernel/sc_simcontext.h> - -struct [[nodiscard]] scoped_push_hierarchy { - explicit scoped_push_hierarchy(sc_core::sc_module& mod) : m_mod{mod} { - assert(m_simctx); - m_simctx->hierarchy_push(&m_mod); - } - - ~scoped_push_hierarchy() { - const auto* top = m_simctx->hierarchy_pop(); - assert(top == &m_mod); - } - - private: - sc_core::sc_simcontext* m_simctx{sc_core::sc_get_curr_simcontext()}; - sc_core::sc_module& m_mod; -}; - -#endif |