18 virtual sc_core::sc_time time_to_sync()
override
20 if (status != RUNNING)
return sc_core::SC_ZERO_TIME;
22 sc_core::sc_time m_quantum = tlm_utils::tlm_quantumkeeper::get_global_quantum();
23 sc_core::sc_time sct = sc_core::sc_time_stamp();
24 sc_core::sc_time rmt = get_current_time();
28 if (rmt > sct && rmt <= sct + m_quantum) {
31 if (rmt > sct + m_quantum && rmt <= sct + (2 * m_quantum)) {
32 return m_quantum * 0.5;
34 return sc_core::SC_ZERO_TIME;
38 virtual bool need_sync()
override {
return time_to_sync() == sc_core::SC_ZERO_TIME; }