scc
2026.07
SystemC components library
memory_map_collector.cpp
1
/*******************************************************************************
2
* Copyright 2026 MINRES Technologies GmbH
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*******************************************************************************/
16
17
#include "memory_map_collector.h"
18
#include <fmt/format.h>
19
20
namespace
tlm
{
21
namespace
scc
{
22
std::string memory_node::to_string(
const
std::string& prefix)
const
{
23
std::ostringstream os;
24
std::string filler(16 - prefix.length(),
' '
);
25
os << fmt::format(
"{} 0x{:016x}:0x{:016x}{}{}\n"
, prefix, start, end, filler, name);
26
for
(
auto
e : elemets)
27
os << e.to_string(prefix +
" "
);
28
return
os.str();
29
}
30
31
}
// namespace scc
32
}
// namespace tlm
tlm::scc
SCC TLM utilities.
Definition
axis_tlm.h:56
tlm
SystemC TLM.
Definition
dmi_mgr.h:19
src
sysc
tlm
scc
memory_map_collector.cpp
Generated by
1.15.0