From f82c3ce2297115edbe92c9ff680d7249c2a3525d Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Tue, 7 May 2024 12:26:37 +0200 Subject: [PATCH] adds namespaced CCI enum test --- scc | 2 +- tests/configurer/sc_main.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scc b/scc index 580bce2..40b696a 160000 --- a/scc +++ b/scc @@ -1 +1 @@ -Subproject commit 580bce2322e3d7d576f460ee490c6c5ca0e1a6c1 +Subproject commit 40b696a98b0fe179f6e0413a4223418f84288e85 diff --git a/tests/configurer/sc_main.cpp b/tests/configurer/sc_main.cpp index 1d6a873..cd91c3e 100644 --- a/tests/configurer/sc_main.cpp +++ b/tests/configurer/sc_main.cpp @@ -36,6 +36,7 @@ #include DEFINE_ENUM4CCI(trace_lvl, (NONE)(LOW)(MEDIUM)(HIGH)(FULL)) +DEFINE_NS_ENUM4CCI(test, log_lvl, (NONE)(LOW)(MEDIUM)(HIGH)(FULL)) /** * @fn int sc_main(int argc, char* argv[]) @@ -62,6 +63,8 @@ int sc_main(int sc_argc, char* sc_argv[]) { sc_main_orig}; cci::cci_param trace_lvl_param{"trace_lvl_param", trace_lvl::NONE, "This is parameter 8", cci::CCI_ABSOLUTE_NAME, sc_main_orig}; + cci::cci_param test_log_lvl_param{"test_log_lvl_param", test::log_lvl::NONE, "This is parameter 9", + cci::CCI_ABSOLUTE_NAME, sc_main_orig}; // Start the simulation SCCINFO("sc_main") << "Begin Simulation."; sc_core::sc_start(sc_core::SC_ZERO_TIME);