Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_wif_trace.cpp File Reference

#include <assert.h>
#include <time.h>
#include <stdlib.h>
#include "systemc/kernel/sc_simcontext.h"
#include "systemc/kernel/sc_ver.h"
#include "systemc/datatypes/bit/sc_bit.h"
#include "systemc/datatypes/bit/sc_logic.h"
#include "systemc/datatypes/bit/sc_lv_base.h"
#include "systemc/datatypes/int/sc_signed.h"
#include "systemc/datatypes/int/sc_unsigned.h"
#include "systemc/datatypes/int/sc_int_base.h"
#include "systemc/datatypes/int/sc_uint_base.h"
#include "systemc/datatypes/fx/fx.h"
#include "systemc/tracing/sc_wif_trace.h"
#include "systemc/utils/sc_string.h"

Include dependency graph for sc_wif_trace.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

class  wif_bool_trace
class  wif_double_trace
class  wif_enum_trace
class  wif_float_trace
class  wif_int64_trace
class  wif_sc_bit_trace
class  wif_sc_fxnum_fast_trace
class  wif_sc_fxnum_trace
class  wif_sc_fxval_fast_trace
class  wif_sc_fxval_trace
class  wif_sc_int_base_trace
class  wif_sc_logic_trace
class  wif_sc_signed_trace
class  wif_sc_uint_base_trace
class  wif_sc_unsigned_trace
class  wif_signed_char_trace
class  wif_signed_int_trace
class  wif_signed_long_trace
class  wif_signed_short_trace
class  wif_T_trace
class  wif_trace
class  wif_uint64_trace
class  wif_unsigned_char_trace
class  wif_unsigned_int_trace
class  wif_unsigned_long_trace
class  wif_unsigned_short_trace

Defines

#define DEFN_TRACE_METHOD(tp)
#define DEFN_TRACE_METHOD_SIGNED(tp)
#define DEFN_TRACE_METHOD_UNSIGNED(tp)
#define DEFN_TRACE_METHOD_LONG_LONG(tp)

Typedefs

typedef wif_T_trace< sc_bv_base > wif_sc_bv_trace
typedef wif_T_trace< sc_lv_base > wif_sc_lv_trace

Functions

void wif_put_error_message (const char *msg, bool just_warning)
sc_trace_filesc_create_wif_trace_file (const char *name)
void sc_close_wif_trace_file (sc_trace_file *tf)

Variables

const char * wif_names [wif_trace_file::WIF_LAST] = {"BIT","MVL","real"}


Define Documentation

#define DEFN_TRACE_METHOD tp   
 

Value:

void                                                                          \
wif_trace_file::trace( const tp& object_, const sc_string& name_ )            \
{                                                                             \
    if( initialized ) {                                                       \
        wif_put_error_message(                                                \
      "No traces can be added once simulation has started.\n"           \
            "To add traces, create a new wif trace file.", false );           \
    }                                                                         \
    sc_string temp_wif_name;                                                  \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_ ## tp ## _trace( object_,                      \
            name_,                        \
            temp_wif_name ) );            \
}

Definition at line 1711 of file sc_wif_trace.cpp.

#define DEFN_TRACE_METHOD_LONG_LONG tp   
 

Value:

void                                                                          \
wif_trace_file::trace( const tp& object_,                                     \
                       const sc_string&   name_,                              \
                       int                width_ )                            \
{                                                                             \
    if( initialized ) {                                                       \
        wif_put_error_message(                                                \
      "No traces can be added once simulation has started.\n"           \
            "To add traces, create a new wif trace file.", false );           \
    }                                                                         \
    sc_string temp_wif_name;                                                  \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_ ## tp ## _trace( object_,                      \
            name_,                        \
            temp_wif_name,                \
                                                width_ ) );                   \
}

Definition at line 1799 of file sc_wif_trace.cpp.

#define DEFN_TRACE_METHOD_SIGNED tp   
 

Value:

void                                                                          \
wif_trace_file::trace( const tp&        object_,                              \
                       const sc_string& name_,                                \
                       int              width_ )                              \
{                                                                             \
    if( initialized ) {                                                       \
        wif_put_error_message(                                                \
      "No traces can be added once simulation has started.\n"           \
            "To add traces, create a new wif trace file.", false );           \
    }                                                                         \
    sc_string temp_wif_name;                                                  \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_signed_ ## tp ## _trace( object_,               \
                   name_,                 \
                   temp_wif_name,         \
                                                       width_ ) );            \
}

Definition at line 1747 of file sc_wif_trace.cpp.

#define DEFN_TRACE_METHOD_UNSIGNED tp   
 

Value:

void                                                                          \
wif_trace_file::trace( const unsigned tp& object_,                            \
                       const sc_string&   name_,                              \
                       int                width_ )                            \
{                                                                             \
    if( initialized ) {                                                       \
        wif_put_error_message(                                                \
      "No traces can be added once simulation has started.\n"           \
            "To add traces, create a new wif trace file.", false );           \
    }                                                                         \
    sc_string temp_wif_name;                                                  \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_unsigned_ ## tp ## _trace( object_,             \
                     name_,               \
                     temp_wif_name,       \
                                                         width_ ) );          \
}

Definition at line 1766 of file sc_wif_trace.cpp.


Typedef Documentation

typedef wif_T_trace<sc_bv_base> wif_sc_bv_trace
 

Definition at line 1551 of file sc_wif_trace.cpp.

typedef wif_T_trace<sc_lv_base> wif_sc_lv_trace
 

Definition at line 1552 of file sc_wif_trace.cpp.


Function Documentation

void sc_close_wif_trace_file sc_trace_file   tf
 

Definition at line 2013 of file sc_wif_trace.cpp.

sc_trace_file* sc_create_wif_trace_file const char *    name
 

Definition at line 2003 of file sc_wif_trace.cpp.

References sc_simcontext::add_trace_file(), and sc_get_curr_simcontext().

void wif_put_error_message const char *    msg,
bool    just_warning
 

Definition at line 1991 of file sc_wif_trace.cpp.

Referenced by wif_trace::print_variable_declaration_line(), wif_trace_file::sc_set_wif_time_unit(), wif_trace_file::trace(), wif_trace_file::traceT(), and wif_enum_trace::write().


Variable Documentation

const char* wif_names[wif_trace_file::WIF_LAST] = {"BIT","MVL","real"}
 

Definition at line 85 of file sc_wif_trace.cpp.

Referenced by wif_T_trace< T >::wif_T_trace().


Generated on Fri Jan 14 08:30:27 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18