C:/systemc-2.1.v1/src/sysc/tracing/sc_wif_trace.cpp

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

ネームスペース

namespace  sc_core

構成

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

マクロ定義

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

型定義

typedef wif_T_trace
< sc_dt::sc_bv_base
sc_core::wif_sc_bv_trace
typedef wif_T_trace
< sc_dt::sc_lv_base
sc_core::wif_sc_lv_trace

関数

static char sc_core::map_sc_logic_state_to_wif_state (char in_char)
void sc_core::wif_put_error_message (const char *msg, bool just_warning)
sc_trace_file * sc_core::sc_create_wif_trace_file (const char *name)
void sc_core::sc_close_wif_trace_file (sc_trace_file *tf)

変数

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

マクロ定義

#define DEFN_TRACE_METHOD ( tp   ) 

値:

void                                                                          \
wif_trace_file::trace(const sc_dt::tp& object_, const std::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 );           \
    }                                                                         \
    std::string temp_wif_name;                                           \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_ ## tp ## _trace( object_,                      \
                                                name_,                        \
                                                temp_wif_name ) );            \
}

#define DEFN_TRACE_METHOD ( tp   ) 

値:

void                                                                          \
wif_trace_file::trace( const tp& object_, const std::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 );           \
    }                                                                         \
    std::string temp_wif_name;                                           \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_ ## tp ## _trace( object_,                      \
                                                name_,                        \
                                                temp_wif_name ) );            \
}

#define DEFN_TRACE_METHOD_LONG_LONG ( tp   ) 

値:

void                                                                          \
wif_trace_file::trace( const sc_dt::tp& object_,                              \
                       const std::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 );           \
    }                                                                         \
    std::string temp_wif_name;                                           \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_ ## tp ## _trace( object_,                      \
                                                name_,                        \
                                                temp_wif_name,                \
                                                width_ ) );                   \
}

#define DEFN_TRACE_METHOD_SIGNED ( tp   ) 

値:

void                                                                          \
wif_trace_file::trace( const tp&        object_,                              \
                       const std::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 );           \
    }                                                                         \
    std::string temp_wif_name;                                           \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_signed_ ## tp ## _trace( object_,               \
                                                       name_,                 \
                                                       temp_wif_name,         \
                                                       width_ ) );            \
}

#define DEFN_TRACE_METHOD_UNSIGNED ( tp   ) 

値:

void                                                                          \
wif_trace_file::trace( const unsigned tp& object_,                            \
                       const std::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 );           \
    }                                                                         \
    std::string temp_wif_name;                                           \
    create_wif_name( &temp_wif_name );                                        \
    traces.push_back( new wif_unsigned_ ## tp ## _trace( object_,             \
                                                         name_,               \
                                                         temp_wif_name,       \
                                                         width_ ) );          \
}


SystemCに対してFri Jun 6 07:39:54 2008に生成されました。  doxygen 1.5.6