SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_core::wif_trace_file Class Referenceabstract

#include <sysc/tracing/sc_wif_trace.h>

Inheritance diagram for sc_core::wif_trace_file:
Collaboration diagram for sc_core::wif_trace_file:

Public Types

enum  wif_enum { WIF_BIT =0, WIF_MVL =1, WIF_REAL =2, WIF_LAST }
 
typedef sc_time::value_type unit_type
 

Public Member Functions

 wif_trace_file (const char *name)
 
 ~wif_trace_file ()
 
std::string obtain_name ()
 
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)
 
virtual void trace (const unsigned int &object, const std::string &name, const char **enum_literals)=0
 
virtual void space (int n)
 

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)
 
bool initialize ()
 
void open_fp ()
 
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
 
const sc_dt::uint64event_trigger_stamp (const sc_event &event) const
 

Static Protected Member Functions

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

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 Typedef Documentation

◆ unit_type

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

◆ add_trace_check()

bool sc_core::sc_trace_file_base::add_trace_check ( const std::string &  name) const
protectedinherited

◆ cycle()

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

◆ delta_cycles() [1/2]

bool sc_core::sc_trace_file_base::delta_cycles ( ) const
inlineinherited

Definition at line 76 of file sc_trace_file_base.h.

◆ delta_cycles() [2/2]

virtual void sc_core::sc_trace_file_base::delta_cycles ( bool  flag)
virtualinherited

Reimplemented from sc_core::sc_trace_file.

◆ event_trigger_stamp()

const sc_dt::uint64& sc_core::sc_trace_file::event_trigger_stamp ( const sc_event event) const
protectedinherited

◆ filename()

const char* sc_core::sc_trace_file_base::filename ( ) const
inlineinherited

Definition at line 73 of file sc_trace_file_base.h.

◆ fs_unit_to_str()

static std::string sc_core::sc_trace_file_base::fs_unit_to_str ( sc_trace_file_base::unit_type  tu)
staticprotectedinherited

◆ has_low_units()

bool sc_core::sc_trace_file_base::has_low_units ( ) const
protectedinherited

◆ initialize()

bool sc_core::sc_trace_file_base::initialize ( )
protectedinherited

◆ low_units_len()

int sc_core::sc_trace_file_base::low_units_len ( ) const
protectedinherited

◆ obtain_name()

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

◆ open_fp()

void sc_core::sc_trace_file_base::open_fp ( )
protectedinherited

◆ set_time_unit()

virtual void sc_core::sc_trace_file_base::set_time_unit ( double  v,
sc_time_unit  tu 
)
virtualinherited

◆ space()

virtual void sc_core::sc_trace_file::space ( int  n)
virtualinherited

◆ timestamp_in_trace_units()

void sc_core::sc_trace_file_base::timestamp_in_trace_units ( unit_type high,
unit_type low 
) const
protectedinherited

◆ trace() [1/29]

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

◆ trace() [2/29]

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

◆ trace() [3/29]

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

◆ trace() [4/29]

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

◆ trace() [5/29]

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

◆ trace() [6/29]

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

◆ trace() [7/29]

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

◆ trace() [8/29]

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

◆ trace() [9/29]

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

◆ trace() [10/29]

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

◆ trace() [11/29]

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

◆ trace() [12/29]

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

◆ trace() [13/29]

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

◆ trace() [14/29]

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

◆ trace() [15/29]

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

◆ trace() [16/29]

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

◆ trace() [17/29]

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

◆ trace() [18/29]

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

◆ trace() [19/29]

virtual void sc_core::sc_trace_file::trace ( const unsigned int &  object,
const std::string &  name,
const char **  enum_literals 
)
pure virtualinherited

◆ trace() [20/29]

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

◆ trace() [21/29]

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

◆ trace() [22/29]

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

◆ trace() [23/29]

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

◆ trace() [24/29]

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

◆ trace() [25/29]

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

◆ trace() [26/29]

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

◆ trace() [27/29]

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

◆ trace() [28/29]

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

◆ trace() [29/29]

void sc_core::wif_trace_file::trace ( const unsigned &  object,
const std::string &  name,
const char **  enum_literals 
)
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.

◆ unit_to_fs()

static sc_time::value_type sc_core::sc_trace_file_base::unit_to_fs ( sc_time_unit  tu)
staticprotectedinherited

◆ write_comment()

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

Member Data Documentation

◆ fp

FILE* sc_core::sc_trace_file_base::fp
protectedinherited

Definition at line 121 of file sc_trace_file_base.h.

◆ kernel_unit_fs

unit_type sc_core::sc_trace_file_base::kernel_unit_fs
protectedinherited

Definition at line 124 of file sc_trace_file_base.h.

◆ timescale_set_by_user

bool sc_core::sc_trace_file_base::timescale_set_by_user
protectedinherited

Definition at line 125 of file sc_trace_file_base.h.

◆ trace_unit_fs

unit_type sc_core::sc_trace_file_base::trace_unit_fs
protectedinherited

Definition at line 123 of file sc_trace_file_base.h.

◆ traces

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

Definition at line 219 of file sc_wif_trace.h.


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