gem5  v20.1.0.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tlm_utils::tlm_quantumkeeper Class Reference

#include <tlm_quantumkeeper.h>

Public Member Functions

 tlm_quantumkeeper ()
 
virtual ~tlm_quantumkeeper ()
 
virtual void inc (const sc_core::sc_time &t)
 
virtual void set (const sc_core::sc_time &t)
 
virtual bool need_sync () const
 
virtual void sync ()
 
void set_and_sync (const sc_core::sc_time &t)
 
virtual void reset ()
 
virtual sc_core::sc_time get_current_time () const
 
virtual sc_core::sc_time get_local_time () const
 

Static Public Member Functions

static void set_global_quantum (const sc_core::sc_time &t)
 
static const sc_core::sc_timeget_global_quantum ()
 

Protected Member Functions

virtual sc_core::sc_time compute_local_quantum ()
 

Protected Attributes

sc_core::sc_time m_next_sync_point
 
sc_core::sc_time m_local_time
 

Detailed Description

Definition at line 50 of file tlm_quantumkeeper.h.

Constructor & Destructor Documentation

◆ tlm_quantumkeeper()

tlm_utils::tlm_quantumkeeper::tlm_quantumkeeper ( )
inline

Definition at line 90 of file tlm_quantumkeeper.h.

◆ ~tlm_quantumkeeper()

virtual tlm_utils::tlm_quantumkeeper::~tlm_quantumkeeper ( )
inlinevirtual

Definition at line 94 of file tlm_quantumkeeper.h.

References need_sync(), set(), sync(), and ArmISA::t.

Member Function Documentation

◆ compute_local_quantum()

virtual sc_core::sc_time tlm_utils::tlm_quantumkeeper::compute_local_quantum ( )
inlineprotectedvirtual

Definition at line 174 of file tlm_quantumkeeper.h.

Referenced by set().

◆ get_current_time()

virtual sc_core::sc_time tlm_utils::tlm_quantumkeeper::get_current_time ( ) const
inlinevirtual

Definition at line 151 of file tlm_quantumkeeper.h.

◆ get_global_quantum()

static const sc_core::sc_time& tlm_utils::tlm_quantumkeeper::get_global_quantum ( )
inlinestatic

Definition at line 84 of file tlm_quantumkeeper.h.

References m_local_time, reset(), and sc_core::wait().

◆ get_local_time()

virtual sc_core::sc_time tlm_utils::tlm_quantumkeeper::get_local_time ( ) const
inlinevirtual

Definition at line 160 of file tlm_quantumkeeper.h.

◆ inc()

virtual void tlm_utils::tlm_quantumkeeper::inc ( const sc_core::sc_time t)
inlinevirtual

Definition at line 99 of file tlm_quantumkeeper.h.

◆ need_sync()

virtual bool tlm_utils::tlm_quantumkeeper::need_sync ( ) const
inlinevirtual

Definition at line 110 of file tlm_quantumkeeper.h.

Referenced by ~tlm_quantumkeeper().

◆ reset()

virtual void tlm_utils::tlm_quantumkeeper::reset ( )
inlinevirtual

◆ set()

virtual void tlm_utils::tlm_quantumkeeper::set ( const sc_core::sc_time t)
inlinevirtual

◆ set_and_sync()

void tlm_utils::tlm_quantumkeeper::set_and_sync ( const sc_core::sc_time t)
inline

Definition at line 128 of file tlm_quantumkeeper.h.

◆ set_global_quantum()

static void tlm_utils::tlm_quantumkeeper::set_global_quantum ( const sc_core::sc_time t)
inlinestatic

Definition at line 78 of file tlm_quantumkeeper.h.

◆ sync()

virtual void tlm_utils::tlm_quantumkeeper::sync ( )
inlinevirtual

Definition at line 119 of file tlm_quantumkeeper.h.

Referenced by ~tlm_quantumkeeper().

Member Data Documentation

◆ m_local_time

sc_core::sc_time tlm_utils::tlm_quantumkeeper::m_local_time
protected

Definition at line 181 of file tlm_quantumkeeper.h.

Referenced by get_global_quantum(), and set().

◆ m_next_sync_point

sc_core::sc_time tlm_utils::tlm_quantumkeeper::m_next_sync_point
protected

Definition at line 180 of file tlm_quantumkeeper.h.

Referenced by set().


The documentation for this class was generated from the following file:

Generated on Wed Sep 30 2020 14:03:14 for gem5 by doxygen 1.8.17