sc_trace.h File Reference

#include <cstdio>
#include "sysc/datatypes/int/sc_nbdefs.h"
#include "sysc/kernel/sc_time.h"

Include dependency graph for sc_trace.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sc_dt
namespace  sc_core

Classes

class  sc_core::sc_trace_file

Defines

#define DECL_TRACE_METHOD_A(tp)
#define DECL_TRACE_METHOD_B(tp)
#define DECL_TRACE_FUNC_REF_A(tp)
#define DECL_TRACE_FUNC_PTR_A(tp)
#define DECL_TRACE_FUNC_A(tp)
#define DEFN_TRACE_FUNC_REF_A(tp)
#define DEFN_TRACE_FUNC_PTR_A(tp)
#define DEFN_TRACE_FUNC_A(tp)
#define DEFN_TRACE_FUNC_REF_B(tp)
#define DEFN_TRACE_FUNC_PTR_B(tp)
#define DEFN_TRACE_FUNC_B(tp)

Functions

void sc_core::put_error_message (const char *msg, bool just_warning)
template<class T>
void sc_core::sc_trace (sc_trace_file *tf, const sc_signal_in_if< T > &object, const std::string &name)
template<class T>
void sc_core::sc_trace (sc_trace_file *tf, const sc_signal_in_if< T > &object, const char *name)
void sc_core::sc_trace (sc_trace_file *tf, const sc_signal_in_if< char > &object, const std::string &name, int width)
void sc_core::sc_trace (sc_trace_file *tf, const sc_signal_in_if< short > &object, const std::string &name, int width)
void sc_core::sc_trace (sc_trace_file *tf, const sc_signal_in_if< int > &object, const std::string &name, int width)
void sc_core::sc_trace (sc_trace_file *tf, const sc_signal_in_if< long > &object, const std::string &name, int width)
void sc_core::sc_trace (sc_trace_file *tf, const unsigned int &object, const std::string &name, const char **enum_literals)
void sc_core::sc_trace (sc_trace_file *, const void *, const std::string &name)
void sc_core::sc_trace_delta_cycles (sc_trace_file *tf, bool on=true)
void sc_core::sc_write_comment (sc_trace_file *tf, const std::string &comment)
void sc_core::tprintf (sc_trace_file *tf, const char *format,...)
void sc_core::double_to_special_int64 (double in, unsigned *high, unsigned *low)


Define Documentation

#define DECL_TRACE_FUNC_A ( tp   ) 

Value:

Definition at line 197 of file sc_trace.h.

#define DECL_TRACE_FUNC_PTR_A ( tp   ) 

Value:

void                                  \
sc_trace( sc_trace_file* tf,          \
      const tp* object,               \
      const std::string& name );        \

Definition at line 191 of file sc_trace.h.

#define DECL_TRACE_FUNC_REF_A ( tp   ) 

Value:

void                                  \
sc_trace( sc_trace_file* tf,          \
      const tp& object,               \
      const std::string& name );

Definition at line 185 of file sc_trace.h.

#define DECL_TRACE_METHOD_A ( tp   ) 

Value:

virtual void trace( const tp& object,                                     \
            const std::string& name ) = 0;

Definition at line 98 of file sc_trace.h.

#define DECL_TRACE_METHOD_B ( tp   ) 

Value:

virtual void trace( const tp& object,                                     \
            const std::string& name,                                     \
            int width ) = 0;

Definition at line 102 of file sc_trace.h.

#define DEFN_TRACE_FUNC_A ( tp   ) 

Value:

Definition at line 241 of file sc_trace.h.

#define DEFN_TRACE_FUNC_B ( tp   ) 

Value:

Definition at line 269 of file sc_trace.h.

#define DEFN_TRACE_FUNC_PTR_A ( tp   ) 

Value:

inline                                                                        \
void                                                                          \
sc_trace( sc_trace_file* tf, const tp* object, const std::string& name ) \
{                                                                             \
    if( tf ) {                                                                \
    tf->trace( *object, name );                                           \
    }                                                                         \
}

Definition at line 231 of file sc_trace.h.

#define DEFN_TRACE_FUNC_PTR_B ( tp   ) 

Value:

inline                                                                        \
void                                                                          \
sc_trace( sc_trace_file* tf, const tp* object, const std::string& name,  \
          int width = 8 * sizeof( tp ) )                                      \
{                                                                             \
    if( tf ) {                                                                \
    tf->trace( *object, name, width );                                    \
    }                                                                         \
}

Definition at line 257 of file sc_trace.h.

#define DEFN_TRACE_FUNC_REF_A ( tp   ) 

Value:

inline                                                                        \
void                                                                          \
sc_trace( sc_trace_file* tf, const tp& object, const std::string& name ) \
{                                                                             \
    if( tf ) {                                                                \
    tf->trace( object, name );                                            \
    }                                                                         \
}

Definition at line 221 of file sc_trace.h.

#define DEFN_TRACE_FUNC_REF_B ( tp   ) 

Value:

inline                                                                        \
void                                                                          \
sc_trace( sc_trace_file* tf, const tp& object, const std::string& name,  \
          int width = 8 * sizeof( tp ) )                                      \
{                                                                             \
    if( tf ) {                                                                \
    tf->trace( object, name, width );                                     \
    }                                                                         \
}

Definition at line 246 of file sc_trace.h.


Generated on Wed Jan 21 15:32:11 2009 for SystemC by  doxygen 1.5.5