SystemC  Recoding Infrastructure for SystemC v0.6.2 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Public Attributes | List of all members
sc_core::sc_timestamp Class Reference

A time stamp combining timed cycles and delta cycles. More...

#include <sysc/kernel/sc_process.h>

Collaboration diagram for sc_core::sc_timestamp:
Collaboration graph
[legend]

Public Types

typedef sc_dt::uint64 value_type
 The data type of delta cycles. More...
 

Public Member Functions

 sc_timestamp ()
 
 sc_timestamp (sc_time, value_type)
 
 sc_timestamp (long long, int)
 
 sc_timestamp (const sc_timestamp &)
 
sc_timestampoperator= (const sc_timestamp &)
 Overload assignment operator. More...
 
bool operator== (const sc_timestamp &) const
 Overload == operator. More...
 
bool operator!= (const sc_timestamp &) const
 Overload != operator. More...
 
bool operator< (const sc_timestamp &) const
 Overload < operator. More...
 
bool operator<= (const sc_timestamp &) const
 Overload <= operator. More...
 
bool operator> (const sc_timestamp &) const
 Overload > operator. More...
 
bool operator>= (const sc_timestamp &) const
 Overload >= operator. More...
 
sc_timestamp operator+ (const sc_timestamp &)
 Overload + operator. More...
 
const sc_timeget_time_count () const
 Get the value of timed cycles. More...
 
value_type get_delta_count () const
 Get the value of delta cycles. More...
 
bool get_infinite () const
 Check whether the time stamp is infinite. More...
 
void show () const
 
std::string to_string () const
 

Public Attributes

sc_time m_time_count
 The value of timed cycles. More...
 
value_type m_delta_count
 The value of delta cycles. More...
 

Detailed Description

A time stamp combining timed cycles and delta cycles.

This class implements the time stamp of a process which contains both timed cycle counts and delta cycle counts. It records the local time of a process and is used in the Out-of-Order simulation.

Definition at line 434 of file sc_process.h.

Member Typedef Documentation

The data type of delta cycles.

Definition at line 441 of file sc_process.h.

Constructor & Destructor Documentation

sc_core::sc_timestamp::sc_timestamp ( )
sc_core::sc_timestamp::sc_timestamp ( sc_time  ,
value_type   
)
sc_core::sc_timestamp::sc_timestamp ( long  long,
int   
)
sc_core::sc_timestamp::sc_timestamp ( const sc_timestamp )

Member Function Documentation

value_type sc_core::sc_timestamp::get_delta_count ( ) const

Get the value of delta cycles.

bool sc_core::sc_timestamp::get_infinite ( ) const

Check whether the time stamp is infinite.

const sc_time& sc_core::sc_timestamp::get_time_count ( ) const

Get the value of timed cycles.

bool sc_core::sc_timestamp::operator!= ( const sc_timestamp ) const

Overload != operator.

sc_timestamp sc_core::sc_timestamp::operator+ ( const sc_timestamp )

Overload + operator.

bool sc_core::sc_timestamp::operator< ( const sc_timestamp ) const

Overload < operator.

bool sc_core::sc_timestamp::operator<= ( const sc_timestamp ) const

Overload <= operator.

sc_timestamp& sc_core::sc_timestamp::operator= ( const sc_timestamp )

Overload assignment operator.

bool sc_core::sc_timestamp::operator== ( const sc_timestamp ) const

Overload == operator.

bool sc_core::sc_timestamp::operator> ( const sc_timestamp ) const

Overload > operator.

bool sc_core::sc_timestamp::operator>= ( const sc_timestamp ) const

Overload >= operator.

void sc_core::sc_timestamp::show ( ) const
std::string sc_core::sc_timestamp::to_string ( ) const

Member Data Documentation

value_type sc_core::sc_timestamp::m_delta_count

The value of delta cycles.

Definition at line 523 of file sc_process.h.

sc_time sc_core::sc_timestamp::m_time_count

The value of timed cycles.

Definition at line 518 of file sc_process.h.


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