fixes cci_example test
All checks were successful
SCC Test/pipeline/head This commit looks good

This commit is contained in:
2025-11-26 08:19:00 +01:00
parent e2e35f6c1a
commit d9a9693c77
2 changed files with 14 additions and 2 deletions

View File

@@ -38,6 +38,7 @@
#include <tlm>
#include <vector>
#include "cci/core/cci_value.h"
#include "initiator.h"
#include "router.h"
#include "target.h"
@@ -114,7 +115,9 @@ public:
auto paramName0 = fmt::format("{}.{}.initiator_ID", name(), targetName);
auto quotedTargetName = fmt::format("\"target_{}\"", i);
m_broker.set_preset_cci_value(paramName0, cci::cci_value::from_json(targetName));
cci::cci_value v;
v.set(targetName);
m_broker.set_preset_cci_value(paramName0, v);
// Set preset value for maximum target size(memory)
auto paramName1 = fmt::format("{}.{}.initiator_ID", name(), targetName);
@@ -141,7 +144,7 @@ public:
SCCINFO(SCMOD) << "[TOP_MODULE C_TOR] : Re-setting fields of target_" << i;
m_broker.set_preset_cci_value(targetName, cci::cci_value::from_json(ss.str()));
} catch(sc_core::sc_report const& exception) {
SCCINFO(SCMOD) << "[ROUTER : Caught] : " << exception.what();
SCCINFO(SCMOD) << "[ROUTER : Caught] : " << exception.what() << " (expected)";
}
targetName = fmt::format("{}.RouterInstance.r_sa_{}", name(), i);