diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-02-26 21:18:56 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-02-26 21:18:56 +0100 |
commit | ebe4100f34d1899ced72f43ed055cc21a3e7e1e1 (patch) | |
tree | d208177a7e323eed5579ff3a80d803acfa7a39c3 /src/models | |
parent | 85f498bc0749ba8479357d96994c9b46d36c5a52 (diff) | |
download | sysc-playground-ebe4100f34d1899ced72f43ed055cc21a3e7e1e1.tar.gz sysc-playground-ebe4100f34d1899ced72f43ed055cc21a3e7e1e1.zip |
port to systemc-3.0.0 beta
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/lt_bus.h | 5 |
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>( |