SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
sc_core::wif_trace_file Class Reference

#include <sysc/tracing/sc_wif_trace.h>

Inheritance diagram for sc_core::wif_trace_file:
Inheritance graph
[legend]
Collaboration diagram for sc_core::wif_trace_file:
Collaboration graph
[legend]

Public Types

enum  wif_enum { WIF_BIT =0 , WIF_MVL =1 , WIF_REAL =2 , WIF_LAST }
 
- Public Types inherited from sc_core::sc_trace_file_base
typedef sc_time::value_type unit_type
 

Public Member Functions

 wif_trace_file (const char *name)
 
 ~wif_trace_file ()
 
std::string obtain_name ()
 
- Public Member Functions inherited from sc_core::sc_trace_file_base
const char * filename () const
 
bool delta_cycles () const
 
virtual void delta_cycles (bool flag)
 
virtual void set_time_unit (double v, sc_time_unit tu)
 
- Public Member Functions inherited from sc_core::sc_trace_file
 sc_trace_file ()
 
virtual void trace (const unsigned int &object, const std::string &name, const char **enum_literals)=0
 
virtual void write_comment (const std::string &comment)=0
 
virtual void space (int n)
 
virtual void delta_cycles (bool flag)
 
virtual void set_time_unit (double v, sc_time_unit tu)=0
 

Public Attributes

std::vector< wif_trace * > traces
 

Protected Member Functions

virtual void trace (const sc_time &object, const std::string &name)
 
virtual void trace (const sc_event &object, const std::string &name)
 
void trace (const bool &object, const std::string &name)
 
void trace (const sc_dt::sc_bit &object, const std::string &name)
 
void trace (const sc_dt::sc_logic &object, const std::string &name)
 
void trace (const unsigned char &object, const std::string &name, int width)
 
void trace (const unsigned short &object, const std::string &name, int width)
 
void trace (const unsigned int &object, const std::string &name, int width)
 
void trace (const unsigned long &object, const std::string &name, int width)
 
void trace (const char &object, const std::string &name, int width)
 
void trace (const short &object, const std::string &name, int width)
 
void trace (const int &object, const std::string &name, int width)
 
void trace (const long &object, const std::string &name, int width)
 
void trace (const sc_dt::int64 &object, const std::string &name, int width)
 
void trace (const sc_dt::uint64 &object, const std::string &name, int width)
 
void trace (const float &object, const std::string &name)
 
void trace (const double &object, const std::string &name)
 
void trace (const sc_dt::sc_unsigned &object, const std::string &name)
 
void trace (const sc_dt::sc_signed &object, const std::string &name)
 
void trace (const sc_dt::sc_uint_base &object, const std::string &name)
 
void trace (const sc_dt::sc_int_base &object, const std::string &name)
 
void trace (const sc_dt::sc_fxval &object, const std::string &name)
 
void trace (const sc_dt::sc_fxval_fast &object, const std::string &name)
 
void trace (const sc_dt::sc_fxnum &object, const std::string &name)
 
void trace (const sc_dt::sc_fxnum_fast &object, const std::string &name)
 
template<class T >
void traceT (const T &object, const std::string &name, wif_enum type)
 
virtual void trace (const sc_dt::sc_bv_base &object, const std::string &name)
 
virtual void trace (const sc_dt::sc_lv_base &object, const std::string &name)
 
void trace (const unsigned &object, const std::string &name, const char **enum_literals)
 
void write_comment (const std::string &comment)
 
void cycle (bool delta_cycle)
 
- Protected Member Functions inherited from sc_core::sc_trace_file_base
 sc_trace_file_base (const char *name, const char *extension)
 
bool is_initialized () const
 
bool initialize ()
 
void open_fp ()
 
virtual void do_initialize ()=0
 
bool add_trace_check (const std::string &name) const
 
bool has_low_units () const
 
int low_units_len () const
 
void timestamp_in_trace_units (unit_type &high, unit_type &low) const
 
virtual ~sc_trace_file_base ()
 
- Protected Member Functions inherited from sc_core::sc_trace_file
virtual void cycle (bool delta_cycle)=0
 
const sc_dt::uint64event_trigger_stamp (const sc_event &event) const
 
virtual ~sc_trace_file ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from sc_core::sc_trace_file_base
static sc_time::value_type unit_to_fs (sc_time_unit tu)
 
static std::string fs_unit_to_str (sc_trace_file_base::unit_type tu)
 
- Protected Attributes inherited from sc_core::sc_trace_file_base
FILE * fp
 
unit_type trace_unit_fs
 
unit_type kernel_unit_fs
 
bool timescale_set_by_user
 

Detailed Description

Definition at line 71 of file sc_wif_trace.h.

Member Enumeration Documentation

◆ wif_enum

Enumerator
WIF_BIT 
WIF_MVL 
WIF_REAL 
WIF_LAST 

Definition at line 75 of file sc_wif_trace.h.

Constructor & Destructor Documentation

◆ wif_trace_file()

sc_core::wif_trace_file::wif_trace_file ( const char *  name)
explicit

◆ ~wif_trace_file()

sc_core::wif_trace_file::~wif_trace_file ( )

Member Function Documentation

◆ cycle()

void sc_core::wif_trace_file::cycle ( bool  delta_cycle)
protectedvirtual

◆ obtain_name()

std::string sc_core::wif_trace_file::obtain_name ( )

◆ trace() [1/28]

void sc_core::wif_trace_file::trace ( const bool &  object,
const std::string &  name 
)
protected

◆ trace() [2/28]

void sc_core::wif_trace_file::trace ( const char &  object,
const std::string &  name,
int  width 
)
protected

◆ trace() [3/28]

void sc_core::wif_trace_file::trace ( const double &  object,
const std::string &  name 
)
protected

◆ trace() [4/28]

void sc_core::wif_trace_file::trace ( const float &  object,
const std::string &  name 
)
protected

◆ trace() [5/28]

void sc_core::wif_trace_file::trace ( const int &  object,
const std::string &  name,
int  width 
)
protected

◆ trace() [6/28]

void sc_core::wif_trace_file::trace ( const long &  object,
const std::string &  name,
int  width 
)
protected

◆ trace() [7/28]

void sc_core::wif_trace_file::trace ( const sc_dt::int64 object,
const std::string &  name,
int  width 
)
protected

◆ trace() [8/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_bit object,
const std::string &  name 
)
protected

◆ trace() [9/28]

virtual void sc_core::wif_trace_file::trace ( const sc_dt::sc_bv_base object,
const std::string &  name 
)
protectedvirtual

◆ trace() [10/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_fxnum object,
const std::string &  name 
)
protected

◆ trace() [11/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_fxnum_fast object,
const std::string &  name 
)
protected

◆ trace() [12/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_fxval object,
const std::string &  name 
)
protected

◆ trace() [13/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_fxval_fast object,
const std::string &  name 
)
protected

◆ trace() [14/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_int_base object,
const std::string &  name 
)
protected

◆ trace() [15/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_logic object,
const std::string &  name 
)
protected

◆ trace() [16/28]

virtual void sc_core::wif_trace_file::trace ( const sc_dt::sc_lv_base object,
const std::string &  name 
)
protectedvirtual

◆ trace() [17/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_signed object,
const std::string &  name 
)
protected

◆ trace() [18/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_uint_base object,
const std::string &  name 
)
protected

◆ trace() [19/28]

void sc_core::wif_trace_file::trace ( const sc_dt::sc_unsigned object,
const std::string &  name 
)
protected

◆ trace() [20/28]

void sc_core::wif_trace_file::trace ( const sc_dt::uint64 object,
const std::string &  name,
int  width 
)
protected

◆ trace() [21/28]

virtual void sc_core::wif_trace_file::trace ( const sc_event object,
const std::string &  name 
)
protectedvirtual

◆ trace() [22/28]

virtual void sc_core::wif_trace_file::trace ( const sc_time object,
const std::string &  name 
)
protectedvirtual

◆ trace() [23/28]

void sc_core::wif_trace_file::trace ( const short &  object,
const std::string &  name,
int  width 
)
protected

◆ trace() [24/28]

void sc_core::wif_trace_file::trace ( const unsigned &  object,
const std::string &  name,
const char **  enum_literals 
)
protected

◆ trace() [25/28]

void sc_core::wif_trace_file::trace ( const unsigned char &  object,
const std::string &  name,
int  width 
)
protected

◆ trace() [26/28]

void sc_core::wif_trace_file::trace ( const unsigned int &  object,
const std::string &  name,
int  width 
)
protected

◆ trace() [27/28]

void sc_core::wif_trace_file::trace ( const unsigned long &  object,
const std::string &  name,
int  width 
)
protected

◆ trace() [28/28]

void sc_core::wif_trace_file::trace ( const unsigned short &  object,
const std::string &  name,
int  width 
)
protected

◆ traceT()

template<class T >
void sc_core::wif_trace_file::traceT ( const T &  object,
const std::string &  name,
wif_enum  type 
)
inlineprotected

Definition at line 172 of file sc_wif_trace.h.

◆ write_comment()

void sc_core::wif_trace_file::write_comment ( const std::string &  comment)
protectedvirtual

Member Data Documentation

◆ traces

std::vector<wif_trace*> sc_core::wif_trace_file::traces

Definition at line 216 of file sc_wif_trace.h.


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