gem5  v20.1.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sc_gem5::TraceFile Class Referenceabstract

#include <tracefile.hh>

Inheritance diagram for sc_gem5::TraceFile:
sc_core::sc_trace_file sc_gem5::VcdTraceFile

Public Member Functions

 ~TraceFile ()
 
void traceDeltas (bool on)
 
void set_time_unit (double, ::sc_core::sc_time_unit) override
 
void finalizeTime ()
 
virtual void trace (bool delta)=0
 
virtual void addTraceVal (const bool *v, const std::string &name)=0
 
virtual void addTraceVal (const float *v, const std::string &name)=0
 
virtual void addTraceVal (const double *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_logic *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_int_base *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_uint_base *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_signed *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_unsigned *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_bv_base *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_lv_base *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_fxval *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_fxval_fast *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_fxnum *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_dt::sc_fxnum_fast *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_core::sc_event *v, const std::string &name)=0
 
virtual void addTraceVal (const sc_core::sc_time *v, const std::string &name)=0
 
virtual void addTraceVal (const unsigned char *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const char *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const unsigned short *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const short *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const unsigned int *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const int *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const unsigned long *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const long *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const sc_dt::int64 *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const sc_dt::uint64 *v, const std::string &name, int width)=0
 
virtual void addTraceVal (const unsigned int *, const std::string &name, const char **literals)=0
 
virtual void writeComment (const std::string &comment)=0
 
- Public Member Functions inherited from sc_core::sc_trace_file
virtual ~sc_trace_file ()
 
virtual void set_time_unit (double, sc_time_unit)=0
 

Protected Member Functions

 TraceFile (const std::string &name)
 
std::ostream & stream ()
 
- Protected Member Functions inherited from sc_core::sc_trace_file
 sc_trace_file ()
 

Protected Attributes

OutputStream_os
 
uint64_t timeUnitTicks
 
double timeUnitValue
 
::sc_core::sc_time_unit timeUnitUnit
 
bool _traceDeltas
 

Detailed Description

Definition at line 190 of file tracefile.hh.

Constructor & Destructor Documentation

◆ TraceFile()

sc_gem5::TraceFile::TraceFile ( const std::string &  name)
protected

Definition at line 43 of file tracefile.cc.

◆ ~TraceFile()

sc_gem5::TraceFile::~TraceFile ( )

Definition at line 48 of file tracefile.cc.

References _os, OutputDirectory::close(), and simout.

Member Function Documentation

◆ addTraceVal() [1/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const bool *  v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [2/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const char *  v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [3/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const double *  v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [4/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const float *  v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [5/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const int *  v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [6/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const long *  v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [7/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_core::sc_event v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [8/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_core::sc_time v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [9/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::int64 v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [10/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_bv_base v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [11/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_fxnum v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [12/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_fxnum_fast v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [13/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_fxval v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [14/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_fxval_fast v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [15/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_int_base v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [16/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_logic v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [17/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_lv_base v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [18/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_signed v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [19/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_uint_base v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [20/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::sc_unsigned v,
const std::string &  name 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [21/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const sc_dt::uint64 v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [22/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const short *  v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [23/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const unsigned char *  v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [24/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const unsigned int *  ,
const std::string &  name,
const char **  literals 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [25/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const unsigned int *  v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [26/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const unsigned long *  v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ addTraceVal() [27/27]

virtual void sc_gem5::TraceFile::addTraceVal ( const unsigned short *  v,
const std::string &  name,
int  width 
)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ finalizeTime()

void sc_gem5::TraceFile::finalizeTime ( )

◆ set_time_unit()

void sc_gem5::TraceFile::set_time_unit ( double  d,
::sc_core::sc_time_unit  tu 
)
override

◆ stream()

std::ostream & sc_gem5::TraceFile::stream ( )
protected

◆ trace()

virtual void sc_gem5::TraceFile::trace ( bool  delta)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

◆ traceDeltas()

void sc_gem5::TraceFile::traceDeltas ( bool  on)
inline

Definition at line 207 of file tracefile.hh.

References _traceDeltas, and MipsISA::on.

◆ writeComment()

virtual void sc_gem5::TraceFile::writeComment ( const std::string &  comment)
pure virtual

Implemented in sc_gem5::VcdTraceFile.

Member Data Documentation

◆ _os

OutputStream* sc_gem5::TraceFile::_os
protected

Definition at line 193 of file tracefile.hh.

Referenced by set_time_unit(), stream(), and ~TraceFile().

◆ _traceDeltas

bool sc_gem5::TraceFile::_traceDeltas
protected

Definition at line 198 of file tracefile.hh.

Referenced by sc_gem5::VcdTraceFile::trace(), and traceDeltas().

◆ timeUnitTicks

uint64_t sc_gem5::TraceFile::timeUnitTicks
protected

◆ timeUnitUnit

::sc_core::sc_time_unit sc_gem5::TraceFile::timeUnitUnit
protected

Definition at line 196 of file tracefile.hh.

Referenced by finalizeTime(), and set_time_unit().

◆ timeUnitValue

double sc_gem5::TraceFile::timeUnitValue
protected

Definition at line 195 of file tracefile.hh.

Referenced by finalizeTime(), and set_time_unit().


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:03:10 for gem5 by doxygen 1.8.17