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

sc_vcd_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_vcd_trace.h"
#include "systemc/utils/sc_string.h"

Include dependency graph for sc_vcd_trace.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

class  vcd_bool_trace
class  vcd_double_trace
class  vcd_enum_trace
class  vcd_float_trace
class  vcd_int64_trace
class  vcd_sc_bit_trace
class  vcd_sc_fxnum_fast_trace
class  vcd_sc_fxnum_trace
class  vcd_sc_fxval_fast_trace
class  vcd_sc_fxval_trace
class  vcd_sc_int_base_trace
class  vcd_sc_logic_trace
class  vcd_sc_signed_trace
class  vcd_sc_uint_base_trace
class  vcd_sc_unsigned_trace
class  vcd_signed_char_trace
class  vcd_signed_int_trace
class  vcd_signed_long_trace
class  vcd_signed_short_trace
class  vcd_T_trace
class  vcd_trace
class  vcd_uint64_trace
class  vcd_unsigned_char_trace
class  vcd_unsigned_int_trace
class  vcd_unsigned_long_trace
class  vcd_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 vcd_T_trace< sc_bv_base > vcd_sc_bv_trace
typedef vcd_T_trace< sc_lv_base > vcd_sc_lv_trace

Functions

void vcd_put_error_message (const char *msg, bool just_warning)
sc_trace_filesc_create_vcd_trace_file (const char *name)
void sc_close_vcd_trace_file (sc_trace_file *tf)

Variables

const char * vcd_types [vcd_trace_file::VCD_LAST] = {"wire","real"}


Define Documentation

#define DEFN_TRACE_METHOD tp   
 

Value:

void                                                                          \
vcd_trace_file::trace( const tp& object_, const sc_string& name_ )            \
{                                                                             \
    if( initialized ) {                                                       \
        vcd_put_error_message(                                                \
      "No traces can be added once simulation has started.\n"           \
            "To add traces, create a new vcd trace file.", false );           \
    }                                                                         \
    sc_string temp_vcd_name;                                                  \
    create_vcd_name( &temp_vcd_name );                                        \
    traces.push_back( new vcd_ ## tp ## _trace( object_,                      \
            name_,                        \
            temp_vcd_name ) );            \
}

Definition at line 1850 of file sc_vcd_trace.cpp.

#define DEFN_TRACE_METHOD_LONG_LONG tp   
 

Value:

void                                                                          \
vcd_trace_file::trace( const tp& object_,                                     \
                       const sc_string&   name_,                              \
                       int                width_ )                            \
{                                                                             \
    if( initialized ) {                                                       \
        vcd_put_error_message(                                                \
      "No traces can be added once simulation has started.\n"           \
            "To add traces, create a new vcd trace file.", false );           \
    }                                                                         \
    sc_string temp_vcd_name;                                                  \
    create_vcd_name( &temp_vcd_name );                                        \
    traces.push_back( new vcd_ ## tp ## _trace( object_,                      \
                                 name_,               \
                     temp_vcd_name,       \
                                                         width_ ) );          \
}

Definition at line 1937 of file sc_vcd_trace.cpp.

#define DEFN_TRACE_METHOD_SIGNED tp   
 

Value:

void                                                                          \
vcd_trace_file::trace( const tp&        object_,                              \
                       const sc_string& name_,                                \
                       int              width_ )                              \
{                                                                             \
    if( initialized ) {                                                       \
        vcd_put_error_message(                                                \
      "No traces can be added once simulation has started.\n"           \
            "To add traces, create a new vcd trace file.", false );           \
    }                                                                         \
    sc_string temp_vcd_name;                                                  \
    create_vcd_name( &temp_vcd_name );                                        \
    traces.push_back( new vcd_signed_ ## tp ## _trace( object_,               \
                         name_,                 \
                   temp_vcd_name,         \
                                                       width_ ) );            \
}

Definition at line 1886 of file sc_vcd_trace.cpp.

#define DEFN_TRACE_METHOD_UNSIGNED tp   
 

Value:

void                                                                          \
vcd_trace_file::trace( const unsigned tp& object_,                            \
                       const sc_string&   name_,                              \
                       int                width_ )                            \
{                                                                             \
    if( initialized ) {                                                       \
        vcd_put_error_message(                                                \
      "No traces can be added once simulation has started.\n"           \
            "To add traces, create a new vcd trace file.", false );           \
    }                                                                         \
    sc_string temp_vcd_name;                                                  \
    create_vcd_name( &temp_vcd_name );                                        \
    traces.push_back( new vcd_unsigned_ ## tp ## _trace( object_,             \
                                 name_,               \
                     temp_vcd_name,       \
                                                         width_ ) );          \
}

Definition at line 1905 of file sc_vcd_trace.cpp.


Typedef Documentation

typedef vcd_T_trace<sc_bv_base> vcd_sc_bv_trace
 

Definition at line 281 of file sc_vcd_trace.cpp.

typedef vcd_T_trace<sc_lv_base> vcd_sc_lv_trace
 

Definition at line 282 of file sc_vcd_trace.cpp.


Function Documentation

void sc_close_vcd_trace_file sc_trace_file   tf
 

Definition at line 2280 of file sc_vcd_trace.cpp.

sc_trace_file* sc_create_vcd_trace_file const char *    name
 

Definition at line 2270 of file sc_vcd_trace.cpp.

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

void vcd_put_error_message const char *    msg,
bool    just_warning
 

Definition at line 2228 of file sc_vcd_trace.cpp.

Referenced by vcd_trace_file::cycle(), vcd_trace::print_variable_declaration_line(), vcd_trace_file::sc_set_vcd_time_unit(), vcd_trace_file::trace(), and vcd_trace_file::traceT().


Variable Documentation

const char* vcd_types[vcd_trace_file::VCD_LAST] = {"wire","real"}
 

Definition at line 79 of file sc_vcd_trace.cpp.

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


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