The GreenSocs utilities library provides CCI configuration helpers, simple logging, test functions, and basic TLM port types.
Use cci_get to both retrieve a CCI preset value and mark
the parameter as consumed:
template <typename T>
T cci_get(cci::cci_broker_handle broker, std::string name)A variant with a default value is also available:
template <typename T>
T cci_get_d(cci::cci_broker_handle broker, std::string name, T default_val)The gs::ConfigurableBroker is the primary configuration
mechanism in QBox. See Configuration for
full documentation on instantiation modes and parameter
handling.
Tests are located under tests/libgsutils/. Run:
ctest --test-dir build -R libgsutils