adds test for CCI enum macro
This commit is contained in:
@ -31,9 +31,12 @@
|
||||
* @date 29th April, 2011 (Friday)
|
||||
*/
|
||||
|
||||
#include <scc/cci_util.h>
|
||||
#include <scc/configurer.h>
|
||||
#include <string>
|
||||
|
||||
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<std::string> string_param{"string_param", "", "This is parameter 7", cci::CCI_ABSOLUTE_NAME, sc_main_orig};
|
||||
cci::cci_param<sc_core::sc_time> 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> 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);
|
||||
|
@ -8,3 +8,4 @@ float_param: 5.0
|
||||
double_param: 6
|
||||
string_param: test entry
|
||||
sc_time_param: 10 ns
|
||||
trace_lvl_param: MEDIUM
|
Reference in New Issue
Block a user