gem5 v24.0.0.0
|
#include <vcd.hh>
Public Member Functions | |
VcdTraceFile (const std::string &name) | |
~VcdTraceFile () | |
void | trace (bool delta) override |
template<typename TV > | |
void | addNewTraceVal (const typename TV::TracedType *v, const std::string &name, int width=1) |
void | addTraceVal (const bool *v, const std::string &name) override |
void | addTraceVal (const float *v, const std::string &name) override |
void | addTraceVal (const double *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_logic *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_int_base *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_uint_base *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_signed *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_unsigned *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_bv_base *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_lv_base *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_fxval *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_fxval_fast *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_fxnum *v, const std::string &name) override |
void | addTraceVal (const sc_dt::sc_fxnum_fast *v, const std::string &name) override |
void | addTraceVal (const sc_core::sc_event *v, const std::string &name) override |
void | addTraceVal (const sc_core::sc_time *v, const std::string &name) override |
void | addTraceVal (const unsigned char *v, const std::string &name, int width) override |
void | addTraceVal (const char *v, const std::string &name, int width) override |
void | addTraceVal (const unsigned short *v, const std::string &name, int width) override |
void | addTraceVal (const short *v, const std::string &name, int width) override |
void | addTraceVal (const unsigned int *v, const std::string &name, int width) override |
void | addTraceVal (const int *v, const std::string &name, int width) override |
void | addTraceVal (const unsigned long *v, const std::string &name, int width) override |
void | addTraceVal (const long *v, const std::string &name, int width) override |
void | addTraceVal (const sc_dt::int64 *v, const std::string &name, int width) override |
void | addTraceVal (const sc_dt::uint64 *v, const std::string &name, int width) override |
void | addTraceVal (const unsigned int *, const std::string &name, const char **literals) override |
void | writeComment (const std::string &comment) override |
Public Member Functions inherited from sc_gem5::TraceFile | |
~TraceFile () | |
void | traceDeltas (bool on) |
void | set_time_unit (double, ::sc_core::sc_time_unit) override |
void | finalizeTime () |
Public Member Functions inherited from sc_core::sc_trace_file | |
virtual | ~sc_trace_file () |
virtual void | set_time_unit (double, sc_time_unit)=0 |
Private Member Functions | |
std::string | nextSignalName () |
void | initialize () |
Private Attributes | |
gem5::Tick | lastPrintedTime |
uint64_t | deltasAtNow |
char | _nextName [NextNameChars+1] |
bool | initialized |
std::vector< VcdTraceValBase * > | traceVals |
VcdTraceScope | topScope |
Static Private Attributes | |
static const int | NextNameChars = 5 |
Additional Inherited Members | |
Protected Member Functions inherited from sc_gem5::TraceFile | |
TraceFile (const std::string &name) | |
std::ostream & | stream () |
Protected Member Functions inherited from sc_core::sc_trace_file | |
sc_trace_file () | |
Protected Attributes inherited from sc_gem5::TraceFile | |
gem5::OutputStream * | _os |
uint64_t | timeUnitTicks |
double | timeUnitValue |
::sc_core::sc_time_unit | timeUnitUnit |
bool | _traceDeltas |
|
inline |
Definition at line 69 of file vcd.hh.
References _nextName, and NextNameChars.
sc_gem5::VcdTraceFile::~VcdTraceFile | ( | ) |
Definition at line 272 of file vcd.cc.
References gem5::ccprintf(), sc_gem5::Scheduler::getCurTick(), sc_gem5::scheduler, sc_gem5::TraceFile::stream(), sc_gem5::TraceFile::timeUnitTicks, and traceVals.
|
inline |
Definition at line 83 of file vcd.hh.
References sc_gem5::VcdTraceScope::addValue(), name(), nextSignalName(), topScope, and traceVals.
Referenced by addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), addTraceVal(), and addTraceVal().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 339 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 629 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 365 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 360 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 651 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 662 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 553 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 589 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 668 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 465 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 524 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 529 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 492 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 497 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 420 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 387 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 470 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 433 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 426 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 438 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 674 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 640 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 623 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 681 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 645 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 656 of file vcd.cc.
References addNewTraceVal(), and name().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 634 of file vcd.cc.
References addNewTraceVal(), and name().
|
private |
Definition at line 223 of file vcd.cc.
References gem5::csprintf(), sc_gem5::TraceFile::finalizeTime(), sc_core::sc_time::from_value(), sc_gem5::Scheduler::getCurTick(), initialized, lastPrintedTime, sc_gem5::VcdTraceScope::output(), gem5::sim_clock::as_float::s, sc_core::sc_version(), sc_gem5::scheduler, sc_gem5::TraceFile::stream(), sc_gem5::TraceFile::timeUnitTicks, topScope, traceVals, and writeComment().
Referenced by trace().
|
private |
Definition at line 205 of file vcd.cc.
References _nextName, name(), and NextNameChars.
Referenced by addNewTraceVal().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 285 of file vcd.cc.
References sc_gem5::TraceFile::_traceDeltas, gem5::ccprintf(), deltasAtNow, sc_gem5::Scheduler::getCurTick(), initialize(), initialized, lastPrintedTime, sc_gem5::scheduler, sc_gem5::TraceFile::stream(), sc_gem5::TraceFile::timeUnitTicks, and traceVals.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 696 of file vcd.cc.
References sc_gem5::TraceFile::stream().
Referenced by initialize().
|
private |
Definition at line 59 of file vcd.hh.
Referenced by nextSignalName(), and VcdTraceFile().
|
private |
|
private |
Definition at line 62 of file vcd.hh.
Referenced by initialize(), and trace().
|
private |
Definition at line 55 of file vcd.hh.
Referenced by initialize(), and trace().
|
staticprivate |
Definition at line 58 of file vcd.hh.
Referenced by nextSignalName(), and VcdTraceFile().
|
private |
Definition at line 66 of file vcd.hh.
Referenced by addNewTraceVal(), and initialize().
|
private |
Definition at line 65 of file vcd.hh.
Referenced by addNewTraceVal(), initialize(), trace(), and ~VcdTraceFile().