aboutsummaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/lt_bus.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/models/lt_bus.h b/src/models/lt_bus.h
index 86b181e..4d8cb12 100644
--- a/src/models/lt_bus.h
+++ b/src/models/lt_bus.h
@@ -2,7 +2,6 @@
#define SYSC_PLAYGROUND_LT_BUS
#include "utils/range.h"
-#include "utils/sysc.h"
#include "utils/tlm_initiator_socket_tagged.h"
#include "utils/tlm_target_socket_tagged.h"
#include "utils/types.h"
@@ -61,7 +60,7 @@ class lt_bus : public sc_core::sc_module {
const std::string name = "init" + std::to_string(id);
{
// Add current module on top of module stack for tlm sockets.
- scoped_push_hierarchy h(*this);
+ auto h = get_hierarchy_scope();
// Add new target socket to connect BUS INITIATOR.
m_initiators.push_back(std::make_unique<target_socket>(
@@ -98,7 +97,7 @@ class lt_bus : public sc_core::sc_module {
const std::string name = "target" + std::to_string(id);
{
// Add current module on top of module stack for tlm sockets.
- scoped_push_hierarchy h(*this);
+ auto h = get_hierarchy_scope();
// Add new initiator socket to connect BUS TARGET.
m_targets.push_back(std::make_unique<initiator_socket>(