sysc/tracing/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.

Classes

class  sc_core::sc_trace_file

Namespaces

namespace  sc_dt
namespace  sc_core

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

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 *tf, const void *object, 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,...)
sc_trace_file * sc_core::sc_create_vcd_trace_file (const char *name)
void sc_core::sc_close_vcd_trace_file (sc_trace_file *tf)
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)

Define Documentation

#define DECL_TRACE_FUNC_A ( tp   ) 
Value:

Definition at line 187 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 181 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 175 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 94 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 98 of file sc_trace.h.

#define DEFN_TRACE_FUNC_A ( tp   ) 
Value:

Definition at line 231 of file sc_trace.h.

#define DEFN_TRACE_FUNC_B ( tp   ) 
Value:

Definition at line 259 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 221 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 247 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 211 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 236 of file sc_trace.h.


Generated on 30 Sep 2015 for SystemC by  doxygen 1.6.1