40 #ifndef SC_TRACE_FILE_BASE_H_INCLUDED_ 41 #define SC_TRACE_FILE_BASE_H_INCLUDED_ 46 #if defined( SC_ENABLE_SIMULATION_PHASE_CALLBACKS_TRACING ) 47 # define SC_TRACING_PHASE_CALLBACKS_ 1 50 # define SC_TRACING_PHASE_CALLBACKS_ 0 56 #if defined(_MSC_VER) && !defined(SC_WIN_DLL_WARN) 58 #pragma warning(disable: 4251) // DLL import for std::string 66 #if SC_TRACING_PHASE_CALLBACKS_ 74 {
return filename_.c_str(); }
77 {
return trace_delta_cycles_; }
80 virtual void delta_cycles(
bool flag);
93 virtual void do_initialize() = 0;
97 bool add_trace_check(
const std::string& name )
const;
100 bool has_low_units()
const;
103 int low_units_len()
const;
106 void timestamp_in_trace_units(unit_type &high, unit_type &low)
const;
115 #if SC_TRACING_PHASE_CALLBACKS_ 117 virtual void simulation_phase_callback();
118 #endif // SC_TRACING_PHASE_CALLBACKS_ 128 std::string filename_;
130 bool trace_delta_cycles_;
132 static bool tracing_initialized_;
148 #if defined(_MSC_VER) && !defined(SC_WIN_DLL_WARN) 162 #endif // SC_TRACE_FILE_BASE_H_INCLUDED_ sc_time::value_type unit_type
SC_API std::string localtime_string()
Abstract base class of all SystemC `simulation' objects.
bool timescale_set_by_user
Report ids for the tracing code.
const char * filename() const
Abstract base class of all SystemC `simulation' objects.
bool delta_cycles() const
class SC_API sc_trace_file_base
sc_time_unit
Enumeration of time units.