38 #ifndef SC_TRACE_FILE_BASE_H_INCLUDED_
39 #define SC_TRACE_FILE_BASE_H_INCLUDED_
44 #if defined( SC_ENABLE_SIMULATION_PHASE_CALLBACKS_TRACING )
45 # define SC_TRACING_PHASE_CALLBACKS_ 1
48 # define SC_TRACING_PHASE_CALLBACKS_ 0
59 #if SC_TRACING_PHASE_CALLBACKS_
65 {
return filename_.c_str(); }
68 {
return trace_delta_cycles_; }
93 #if SC_TRACING_PHASE_CALLBACKS_
95 virtual void simulation_phase_callback();
96 #endif // SC_TRACING_PHASE_CALLBACKS_
104 std::string filename_;
106 bool trace_delta_cycles_;
108 static bool tracing_initialized_;
137 #endif // SC_TRACE_FILE_BASE_H_INCLUDED_
const char * filename() const
virtual void do_initialize()=0
virtual ~sc_trace_file_base()
void double_to_special_int64(double in, unsigned *high, unsigned *low)
virtual void set_time_unit(double v, sc_time_unit tu)
bool add_trace_check(const std::string &name) const
bool timescale_set_by_user
std::string localtime_string()
sc_trace_file_base(const char *name, const char *extension)
bool delta_cycles() const
Abstract base class of all SystemC `simulation' objects.