gem5
v20.1.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 | |
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 | |
OutputStream * | _os |
uint64_t | timeUnitTicks |
double | timeUnitValue |
::sc_core::sc_time_unit | timeUnitUnit |
bool | _traceDeltas |
|
inline |
Definition at line 68 of file vcd.hh.
References _nextName, ArmISA::i, and NextNameChars.
sc_gem5::VcdTraceFile::~VcdTraceFile | ( | ) |
Definition at line 271 of file vcd.cc.
References ccprintf(), sc_gem5::Scheduler::getCurTick(), sc_gem5::scheduler, sc_gem5::TraceFile::stream(), sc_gem5::TraceFile::timeUnitTicks, and traceVals.
|
inline |
Definition at line 82 of file vcd.hh.
References sc_gem5::VcdTraceScope::addValue(), name(), nextSignalName(), topScope, traceVals, ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 626 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 648 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 659 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 665 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 671 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 637 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 620 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 678 of file vcd.cc.
References bits(), X86ISA::count, name(), and ArmISA::v.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 642 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 653 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 631 of file vcd.cc.
References name(), ArmISA::v, and ArmISA::width.
|
private |
Definition at line 222 of file vcd.cc.
References csprintf(), sc_gem5::TraceFile::finalizeTime(), sc_core::sc_time::from_value(), sc_gem5::Scheduler::getCurTick(), initialized, lastPrintedTime, sc_gem5::VcdTraceScope::output(), SimClock::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 204 of file vcd.cc.
References _nextName, name(), and NextNameChars.
Referenced by addNewTraceVal().
|
overridevirtual |
Implements sc_gem5::TraceFile.
Definition at line 282 of file vcd.cc.
References sc_gem5::TraceFile::_traceDeltas, 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 693 of file vcd.cc.
References sc_gem5::TraceFile::stream().
Referenced by initialize().
|
private |
Definition at line 58 of file vcd.hh.
Referenced by nextSignalName(), and VcdTraceFile().
|
private |
|
private |
Definition at line 61 of file vcd.hh.
Referenced by initialize(), and trace().
|
private |
Definition at line 54 of file vcd.hh.
Referenced by initialize(), and trace().
|
staticprivate |
Definition at line 57 of file vcd.hh.
Referenced by nextSignalName(), and VcdTraceFile().
|
private |
Definition at line 65 of file vcd.hh.
Referenced by addNewTraceVal(), and initialize().
|
private |
Definition at line 64 of file vcd.hh.
Referenced by addNewTraceVal(), initialize(), trace(), and ~VcdTraceFile().