17 #ifndef _SCC_CONFIGURABLE_TRACER_H_
18 #define _SCC_CONFIGURABLE_TRACER_H_
45 configurable_tracer(std::string
const&& name,
bool enable_tx =
true,
bool enable_vcd =
true,
bool default_enable =
false,
46 sc_core::sc_object* top =
nullptr);
55 configurable_tracer(std::string
const& name,
bool enable_tx =
true,
bool enable_vcd =
true,
bool default_enable =
false,
56 sc_core::sc_object* top =
nullptr)
67 sc_core::sc_object* top =
nullptr);
77 sc_core::sc_object* top =
nullptr)
88 sc_core::sc_object* top =
nullptr);
98 sc_core::sc_object* top =
nullptr)
110 for(
auto* o : sc_core::sc_get_top_level_objects())
112 control_added =
true;
117 void descend(
const sc_core::sc_object*,
bool trace_all =
false)
override;
123 void end_of_elaboration()
override;
125 std::vector<cci::cci_param_untyped*>
params;
126 bool control_added{
false};
configurable tracer for automatic port and signal tracing
configurable_tracer(std::string const &&name, bool enable_tx=true, bool enable_vcd=true, bool default_enable=false, sc_core::sc_object *top=nullptr)
configurable_tracer(std::string const &name, bool enable_tx=true, bool enable_vcd=true, bool default_enable=false, sc_core::sc_object *top=nullptr)
configurable_tracer(std::string const &name, file_type type, sc_core::sc_trace_file *tf=nullptr, bool default_enable=false, sc_core::sc_object *top=nullptr)
void augment_object_hierarchical(sc_core::sc_object *)
add the 'enableTracing' attribute to sc_module
bool get_trace_enabled(const sc_core::sc_object *, bool=false)
check for existence of 'enableTracing' attribute and return value of default otherwise
void descend(const sc_core::sc_object *, bool trace_all=false) override
depth-first walk thru the design hierarchy and trace signals resp. call trace() function
std::vector< cci::cci_param_untyped * > params
array of created cci parameter
configurable_tracer(std::string const &name, file_type type, bool enable_vcd=true, bool default_enable=false, sc_core::sc_object *top=nullptr)
a component traversing the SystemC object hierarchy and tracing the objects
file_type
defines the transaction trace output type