36a37
> #include "../utils/sc_trace_file.hh"
39d39
< #include "warn_unimpl.hh"
115c115,119
< virtual void end_of_elaboration() { /* Implementation defined. */ }
---
> virtual void
> end_of_elaboration()
> {
> for (auto params: traceParamsVec)
> sc_trace(params->tf, (*this)->read(), params->name);
116a121,123
> traceParamsVec.clear();
> }
>
130a138,143
> void
> add_trace(sc_trace_file *tf, const std::string &name) const
> {
> traceParamsVec.push_back(new sc_trace_params(tf, name));
> }
>
133a147,148
> mutable sc_trace_params_vec traceParamsVec;
>
141c156
< sc_trace(sc_trace_file *, const sc_in<T> &, const std::string &)
---
> sc_trace(sc_trace_file *tf, const sc_in<T> &i, const std::string &name)
143c158,161
< sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
---
> if (i.size())
> sc_trace(tf, i->read(), name);
> else
> i.add_trace(tf, name);
239c257,261
< virtual void end_of_elaboration() { /* Implementation defined. */ }
---
> virtual void
> end_of_elaboration()
> {
> for (auto params: traceParamsVec)
> sc_trace(params->tf, (*this)->read(), params->name);
240a263,265
> traceParamsVec.clear();
> }
>
270a296,301
> void
> add_trace(sc_trace_file *tf, const std::string &name) const
> {
> traceParamsVec.push_back(new sc_trace_params(tf, name));
> }
>
275a307,308
> mutable sc_trace_params_vec traceParamsVec;
>
283c316,317
< sc_trace<bool>(sc_trace_file *, const sc_in<bool> &, const std::string &)
---
> sc_trace<bool>(sc_trace_file *tf, const sc_in<bool> &i,
> const std::string &name)
285c319,322
< sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
---
> if (i.size())
> sc_trace(tf, i->read(), name);
> else
> i.add_trace(tf, name);
386c423,427
< virtual void end_of_elaboration() { /* Implementation defined. */ }
---
> virtual void
> end_of_elaboration()
> {
> for (auto params: traceParamsVec)
> sc_trace(params->tf, (*this)->read(), params->name);
387a429,431
> traceParamsVec.clear();
> }
>
409a454,459
> void
> add_trace(sc_trace_file *tf, const std::string &name) const
> {
> traceParamsVec.push_back(new sc_trace_params(tf, name));
> }
>
415a466,467
> mutable sc_trace_params_vec traceParamsVec;
>
423,424c475,476
< sc_trace<sc_dt::sc_logic>(
< sc_trace_file *, const sc_in<sc_dt::sc_logic> &, const std::string &)
---
> sc_trace<sc_dt::sc_logic>(sc_trace_file *tf, const sc_in<sc_dt::sc_logic> &i,
> const std::string &name)
426c478,481
< sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
---
> if (i.size())
> sc_trace(tf, i->read(), name);
> else
> i.add_trace(tf, name);