Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 873 Bytes

File metadata and controls

39 lines (27 loc) · 873 Bytes

libgsutils -- Utilities Library

The GreenSocs utilities library provides CCI configuration helpers, simple logging, test functions, and basic TLM port types.

CCI Helpers

Marking Values as Consumed

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)

ConfigurableBroker

The gs::ConfigurableBroker is the primary configuration mechanism in QBox. See Configuration for full documentation on instantiation modes and parameter handling.

Testing

Tests are located under tests/libgsutils/. Run:

ctest --test-dir build -R libgsutils