From 904d897773f9f8aee4b4e81a5d45d2abff7dddb2 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Tue, 7 May 2024 10:59:57 +0200 Subject: [PATCH] adds test for CCI enum macro --- .cproject | 6 +++--- scc | 2 +- tests/configurer/sc_main.cpp | 5 +++++ tests/configurer/test.yaml | 1 + 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.cproject b/.cproject index 301b355..5484523 100644 --- a/.cproject +++ b/.cproject @@ -14,7 +14,7 @@ - + @@ -28,12 +28,12 @@ - + - + diff --git a/scc b/scc index b70b27a..580bce2 160000 --- a/scc +++ b/scc @@ -1 +1 @@ -Subproject commit b70b27a878fdec49b6413fd3737d4e10ae72acb3 +Subproject commit 580bce2322e3d7d576f460ee490c6c5ca0e1a6c1 diff --git a/tests/configurer/sc_main.cpp b/tests/configurer/sc_main.cpp index e03ef18..1d6a873 100644 --- a/tests/configurer/sc_main.cpp +++ b/tests/configurer/sc_main.cpp @@ -31,9 +31,12 @@ * @date 29th April, 2011 (Friday) */ +#include #include #include +DEFINE_ENUM4CCI(trace_lvl, (NONE)(LOW)(MEDIUM)(HIGH)(FULL)) + /** * @fn int sc_main(int argc, char* argv[]) * @brief The testbench for the hierarchical override of parameter values example @@ -57,6 +60,8 @@ int sc_main(int sc_argc, char* sc_argv[]) { cci::cci_param string_param{"string_param", "", "This is parameter 7", cci::CCI_ABSOLUTE_NAME, sc_main_orig}; cci::cci_param sc_time_param{"sc_time_param", sc_core::SC_ZERO_TIME, "This is parameter 7", cci::CCI_ABSOLUTE_NAME, 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}; // Start the simulation SCCINFO("sc_main") << "Begin Simulation."; sc_core::sc_start(sc_core::SC_ZERO_TIME); diff --git a/tests/configurer/test.yaml b/tests/configurer/test.yaml index 82a7a43..ecd8ebd 100644 --- a/tests/configurer/test.yaml +++ b/tests/configurer/test.yaml @@ -8,3 +8,4 @@ float_param: 5.0 double_param: 6 string_param: test entry sc_time_param: 10 ns +trace_lvl_param: MEDIUM \ No newline at end of file