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

#include <sysc/tracing/sc_trace_file_base.h>

Inheritance diagram for sc_core::sc_trace_file_base:
Collaboration diagram for sc_core::sc_trace_file_base:

Public Types

typedef sc_time::value_type unit_type
 

Public Member Functions

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 write_comment (const std::string &comment)=0
 
virtual void space (int n)
 

Protected Member Functions

 sc_trace_file_base (const char *name, const char *extension)
 
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 ()
 
virtual void cycle (bool delta_cycle)=0
 
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 64 of file sc_trace_file_base.h.

Member Typedef Documentation

◆ unit_type

Constructor & Destructor Documentation

◆ sc_trace_file_base()

sc_core::sc_trace_file_base::sc_trace_file_base ( const char *  name,
const char *  extension 
)
protected

◆ ~sc_trace_file_base()

virtual sc_core::sc_trace_file_base::~sc_trace_file_base ( )
protectedvirtual

Member Function Documentation

◆ add_trace_check()

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

◆ cycle()

virtual void sc_core::sc_trace_file::cycle ( bool  delta_cycle)
protectedpure virtualinherited

◆ delta_cycles() [1/2]

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

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)
virtual

Reimplemented from sc_core::sc_trace_file.

◆ do_initialize()

virtual void sc_core::sc_trace_file_base::do_initialize ( )
protectedpure virtual

◆ 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
inline

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)
staticprotected

◆ has_low_units()

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

◆ initialize()

bool sc_core::sc_trace_file_base::initialize ( )
protected

◆ low_units_len()

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

◆ open_fp()

void sc_core::sc_trace_file_base::open_fp ( )
protected

◆ set_time_unit()

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

◆ 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
protected

◆ trace()

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

◆ unit_to_fs()

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

◆ write_comment()

virtual void sc_core::sc_trace_file::write_comment ( const std::string &  comment)
pure virtualinherited

Member Data Documentation

◆ fp

FILE* sc_core::sc_trace_file_base::fp
protected

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
protected

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
protected

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
protected

Definition at line 123 of file sc_trace_file_base.h.


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