From ebe4100f34d1899ced72f43ed055cc21a3e7e1e1 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Mon, 26 Feb 2024 21:18:56 +0100 Subject: port to systemc-3.0.0 beta --- src/utils/sysc.h | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/utils/sysc.h (limited to 'src/utils') 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 -#include - -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 -- cgit v1.2.3