45 static void recordBeginTx(SCVNS scv_tr_handle& handle, tlm::tlm_extension_base* e, std::string
const& prefix) {
47 handle.record_attribute(fmt::format(
"{}id", prefix).c_str(), ext->get_id());
48 handle.record_attribute(fmt::format(
"{}user[CTRL]", prefix).c_str(), ext->get_user(common::id_type::CTRL));
49 handle.record_attribute(fmt::format(
"{}user[DATA]", prefix).c_str(), ext->get_user(common::id_type::DATA));
50 handle.record_attribute(fmt::format(
"{}user[RESP]", prefix).c_str(), ext->get_user(common::id_type::RESP));
51 handle.record_attribute(fmt::format(
"{}length", prefix).c_str(), ext->get_length());
52 handle.record_attribute(fmt::format(
"{}size", prefix).c_str(), ext->get_size());
53 handle.record_attribute(fmt::format(
"{}burst", prefix).c_str(), std::string(
to_char(ext->get_burst())));
54 handle.record_attribute(fmt::format(
"{}prot", prefix).c_str(), ext->get_prot());
55 handle.record_attribute(fmt::format(
"{}exclusive", prefix).c_str(), std::string(ext->is_exclusive() ?
"true" :
"false"));
56 handle.record_attribute(fmt::format(
"{}cache", prefix).c_str(), ext->get_cache());
57 handle.record_attribute(fmt::format(
"{}cache_bufferable", prefix).c_str(), ext->is_bufferable());
58 handle.record_attribute(fmt::format(
"{}cache_cacheable", prefix).c_str(), ext->is_cacheable());
59 handle.record_attribute(fmt::format(
"{}cache_read_alloc", prefix).c_str(), ext->is_read_allocate());
60 handle.record_attribute(fmt::format(
"{}cache_write_alloc", prefix).c_str(), ext->is_write_allocate());
61 handle.record_attribute(fmt::format(
"{}qos", prefix).c_str(), ext->get_qos());
62 handle.record_attribute(fmt::format(
"{}region", prefix).c_str(), ext->get_region());
65 static void recordEndTx(SCVNS scv_tr_handle& handle, tlm::tlm_extension_base* e, std::string
const& prefix) {
67 handle.record_attribute(fmt::format(
"{}resp", prefix).c_str(), std::string(
to_char(ext->get_resp())));
96 static void recordBeginTx(SCVNS scv_tr_handle& handle, tlm::tlm_extension_base* e, std::string
const& prefix) {
98 handle.record_attribute(fmt::format(
"{}id", prefix).c_str(), ext->get_id());
99 handle.record_attribute(fmt::format(
"{}user[CTRL]", prefix).c_str(), ext->get_user(common::id_type::CTRL));
100 handle.record_attribute(fmt::format(
"{}user[DATA]", prefix).c_str(), ext->get_user(common::id_type::DATA));
101 handle.record_attribute(fmt::format(
"{}user[RESP]", prefix).c_str(), ext->get_user(common::id_type::RESP));
102 handle.record_attribute(fmt::format(
"{}length", prefix).c_str(), ext->get_length());
103 handle.record_attribute(fmt::format(
"{}size", prefix).c_str(), ext->get_size());
104 handle.record_attribute(fmt::format(
"{}burst", prefix).c_str(), std::string(
to_char(ext->get_burst())));
105 handle.record_attribute(fmt::format(
"{}prot", prefix).c_str(), ext->get_prot());
106 handle.record_attribute(fmt::format(
"{}exclusive", prefix).c_str(), std::string(ext->is_exclusive() ?
"true" :
"false"));
107 handle.record_attribute(fmt::format(
"{}cache", prefix).c_str(), ext->get_cache());
108 handle.record_attribute(fmt::format(
"{}cache_bufferable", prefix).c_str(), ext->is_bufferable());
109 handle.record_attribute(fmt::format(
"{}cache_modifiable", prefix).c_str(), ext->is_modifiable());
110 handle.record_attribute(fmt::format(
"{}cache_allocate", prefix).c_str(), ext->is_allocate());
111 handle.record_attribute(fmt::format(
"{}cache_other_alloc", prefix).c_str(), ext->is_other_allocate());
112 handle.record_attribute(fmt::format(
"{}qos", prefix).c_str(), ext->get_qos());
113 handle.record_attribute(fmt::format(
"{}region", prefix).c_str(), ext->get_region());
117 static void recordEndTx(SCVNS scv_tr_handle& handle, tlm::tlm_extension_base* e, std::string
const& prefix) {
119 handle.record_attribute(fmt::format(
"{}resp", prefix).c_str(), std::string(
to_char(ext->get_resp())));
148 static void recordBeginTx(SCVNS scv_tr_handle& handle, tlm::tlm_extension_base* e, std::string
const& prefix) {
150 handle.record_attribute(fmt::format(
"{}id", prefix).c_str(), ext->get_id());
151 handle.record_attribute(fmt::format(
"{}user[CTRL]", prefix).c_str(), ext->get_user(common::id_type::CTRL));
152 handle.record_attribute(fmt::format(
"{}user[DATA]", prefix).c_str(), ext->get_user(common::id_type::DATA));
153 handle.record_attribute(fmt::format(
"{}length", prefix).c_str(), ext->get_length());
154 handle.record_attribute(fmt::format(
"{}size", prefix).c_str(), ext->get_size());
155 handle.record_attribute(fmt::format(
"{}burst", prefix).c_str(), std::string(
to_char(ext->get_burst())));
156 handle.record_attribute(fmt::format(
"{}prot", prefix).c_str(), ext->get_prot());
157 handle.record_attribute(fmt::format(
"{}exclusive", prefix).c_str(), std::string(ext->is_exclusive() ?
"true" :
"false"));
158 handle.record_attribute(fmt::format(
"{}cache", prefix).c_str(), ext->get_cache());
159 handle.record_attribute(fmt::format(
"{}cache_bufferable", prefix).c_str(), ext->is_bufferable());
160 handle.record_attribute(fmt::format(
"{}cache_modifiable", prefix).c_str(), ext->is_modifiable());
161 handle.record_attribute(fmt::format(
"{}cache_allocate", prefix).c_str(), ext->is_allocate());
162 handle.record_attribute(fmt::format(
"{}cache_other_alloc", prefix).c_str(), ext->is_other_allocate());
163 handle.record_attribute(fmt::format(
"{}qos", prefix).c_str(), ext->get_qos());
164 handle.record_attribute(fmt::format(
"{}region", prefix).c_str(), ext->get_region());
165 handle.record_attribute(fmt::format(
"{}domain", prefix).c_str(), std::string(
to_char(ext->get_domain())));
166 handle.record_attribute(fmt::format(
"{}snoop", prefix).c_str(), std::string(
to_char(ext->get_snoop())));
167 handle.record_attribute(fmt::format(
"{}barrier", prefix).c_str(), std::string(
to_char(ext->get_barrier())));
168 handle.record_attribute(fmt::format(
"{}unique", prefix).c_str(), ext->get_unique());
172 static void recordEndTx(SCVNS scv_tr_handle& handle, tlm::tlm_extension_base* e, std::string
const& prefix) {
174 handle.record_attribute(fmt::format(
"{}resp", prefix).c_str(), std::string(
to_char(ext->get_resp())));
175 handle.record_attribute(fmt::format(
"{}cresp", prefix).c_str(),
static_cast<unsigned>(ext->get_cresp()));
176 handle.record_attribute(fmt::format(
"{}cresp_PassDirty", prefix).c_str(), ext->is_pass_dirty());
177 handle.record_attribute(fmt::format(
"{}cresp_IsShared", prefix).c_str(), ext->is_shared());
178 handle.record_attribute(fmt::format(
"{}cresp_SnoopDataTransfer", prefix).c_str(), ext->is_snoop_data_transfer());
179 handle.record_attribute(fmt::format(
"{}cresp_SnoopError", prefix).c_str(), ext->is_snoop_error());
180 handle.record_attribute(fmt::format(
"{}cresp_SnoopWasUnique", prefix).c_str(), ext->is_snoop_was_unique());