aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-02-26 21:18:56 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-02-26 21:18:56 +0100
commitebe4100f34d1899ced72f43ed055cc21a3e7e1e1 (patch)
treed208177a7e323eed5579ff3a80d803acfa7a39c3 /src/utils
parent85f498bc0749ba8479357d96994c9b46d36c5a52 (diff)
downloadsysc-playground-ebe4100f34d1899ced72f43ed055cc21a3e7e1e1.tar.gz
sysc-playground-ebe4100f34d1899ced72f43ed055cc21a3e7e1e1.zip
port to systemc-3.0.0 beta
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/sysc.h23
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