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/models/lt_bus.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/models/lt_bus.h') 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( @@ -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( -- cgit v1.2.3