79 template <
class T>
class sc_signal_in_if;
96 #define DECL_TRACE_METHOD_A(tp) \ 97 virtual void trace( const tp& object, \ 98 const std::string& name ) = 0; 100 #define DECL_TRACE_METHOD_B(tp) \ 101 virtual void trace( const tp& object, \ 102 const std::string& name, \ 140 #undef DECL_TRACE_METHOD_A 141 #undef DECL_TRACE_METHOD_B 146 virtual void trace(
const unsigned int&
object,
147 const std::string& name,
148 const char** enum_literals ) = 0;
151 virtual void write_comment(
const std::string& comment ) = 0;
155 virtual void space(
int n );
158 virtual void delta_cycles(
bool flag );
161 virtual void set_time_unit(
double v,
sc_time_unit tu )=0;
166 virtual void cycle(
bool delta_cycle ) = 0;
183 #define DECL_TRACE_FUNC_REF_A(tp) \ 185 sc_trace( sc_trace_file* tf, \ 187 const std::string& name ); 189 #define DECL_TRACE_FUNC_PTR_A(tp) \ 191 sc_trace( sc_trace_file* tf, \ 193 const std::string& name ); \ 195 #define DECL_TRACE_FUNC_A(tp) \ 196 DECL_TRACE_FUNC_REF_A(tp) \ 197 DECL_TRACE_FUNC_PTR_A(tp) 199 #define DECL_TRACE_FUNC_REF_B(tp) \ 201 sc_trace( sc_trace_file* tf, const tp& object, const std::string& name, \ 202 int width = 8 * sizeof( tp ) ); 205 #define DECL_TRACE_FUNC_PTR_B(tp) \ 207 sc_trace( sc_trace_file* tf, const tp* object, const std::string& name, \ 208 int width = 8 * sizeof( tp ) ); 211 #define DECL_TRACE_FUNC_B(tp) \ 212 DECL_TRACE_FUNC_REF_B(tp) \ 213 DECL_TRACE_FUNC_PTR_B(tp) 252 #undef DECL_TRACE_FUNC_REF_A 253 #undef DECL_TRACE_FUNC_PTR_A 254 #undef DECL_TRACE_FUNC_A 257 #undef DECL_TRACE_FUNC_REF_B 258 #undef DECL_TRACE_FUNC_PTR_B 259 #undef DECL_TRACE_FUNC_B 267 const std::string& name )
269 sc_trace( tf,
object.read(), name );
279 sc_trace( tf,
object.read(), name );
287 const std::string& name,
292 const std::string& name,
297 const std::string& name,
302 const std::string& name,
317 const unsigned int&
object,
318 const std::string& name,
319 const char** enum_literals );
326 const std::string& name );
Base class for the fixed-point types; limited precision.
The sc_signal<T> input interface class.
Fixed-point value types; limited precision.
SC_API void sc_trace(sc_trace_file *tf, const void *object, const std::string &name)
Arbitrary precision signed number.
#define DECL_TRACE_FUNC_A(tp)
Arbitrary precision unsigned number.
SC_API void sc_trace_delta_cycles(sc_trace_file *tf, bool on=true)
Base class for the fixed-point types; arbitrary precision.
#define DECL_TRACE_METHOD_B(tp)
Fixed-point value type; arbitrary precision.
Arbitrary size logic vector base class.
SC_API sc_trace_file * sc_create_wif_trace_file(const char *name)
class SC_API sc_trace_file
SC_API void tprintf(sc_trace_file *tf, const char *format,...)
SC_API void sc_write_comment(sc_trace_file *tf, const std::string &comment)
#define DECL_TRACE_FUNC_B(tp)
virtual void write_comment(const std::string &comment)=0
SC_API void sc_close_wif_trace_file(sc_trace_file *tf)
virtual void delta_cycles(bool flag)
Top level header file for arbitrary precision signed/unsigned.
Arbitrary size bit vector base class.
SC_API sc_trace_file * sc_create_vcd_trace_file(const char *name)
#define DECL_TRACE_METHOD_A(tp)
sc_time_unit
Enumeration of time units.
SC_API void sc_close_vcd_trace_file(sc_trace_file *tf)