gem5
v20.1.0.0
|
#include <sc_time.hh>
Public Member Functions | |
sc_time () | |
sc_time (double, sc_time_unit) | |
sc_time (const sc_time &) | |
sc_time (double, const char *) | |
sc_time (double, bool) | |
sc_time (sc_dt::uint64, bool) | |
sc_time & | operator= (const sc_time &) |
sc_dt::uint64 | value () const |
double | to_double () const |
double | to_seconds () const |
const std::string | to_string () const |
bool | operator== (const sc_time &) const |
bool | operator!= (const sc_time &) const |
bool | operator< (const sc_time &) const |
bool | operator<= (const sc_time &) const |
bool | operator> (const sc_time &) const |
bool | operator>= (const sc_time &) const |
sc_time & | operator+= (const sc_time &) |
sc_time & | operator-= (const sc_time &) |
sc_time & | operator*= (double) |
sc_time & | operator/= (double) |
void | print (std::ostream &=std::cout) const |
Static Public Member Functions | |
static sc_time | from_value (sc_dt::uint64) |
static sc_time | from_seconds (double) |
static sc_time | from_string (const char *str) |
Private Attributes | |
uint64_t | val |
Definition at line 49 of file sc_time.hh.
sc_core::sc_time::sc_time | ( | ) |
Definition at line 64 of file sc_time.cc.
Referenced by from_string().
sc_core::sc_time::sc_time | ( | double | d, |
sc_time_unit | tu | ||
) |
Definition at line 66 of file sc_time.cc.
References ArmISA::d, MipsISA::tu, and val.
sc_core::sc_time::sc_time | ( | const sc_time & | t | ) |
Definition at line 72 of file sc_time.cc.
sc_core::sc_time::sc_time | ( | double | d, |
const char * | unit | ||
) |
Definition at line 77 of file sc_time.cc.
References ArmISA::d, sc_core::SC_FS, sc_core::SC_ID_TIME_CONVERSION_FAILED_, SC_REPORT_ERROR, sc_core::SC_SEC, sc_gem5::TimeUnitConstantNames, sc_gem5::TimeUnitNames, MipsISA::tu, and val.
sc_core::sc_time::sc_time | ( | double | d, |
bool | scale | ||
) |
Definition at line 95 of file sc_time.cc.
References ArmISA::d, SimClock::Float::Hz, sc_core::SC_SEC, and X86ISA::scale.
sc_core::sc_time::sc_time | ( | sc_dt::uint64 | v, |
bool | scale | ||
) |
Definition at line 101 of file sc_time.cc.
References SimClock::Float::Hz, sc_core::SC_SEC, X86ISA::scale, and ArmISA::v.
|
static |
Definition at line 220 of file sc_time.cc.
References ArmISA::d, sc_core::SC_SEC, and ArmISA::t.
|
static |
Definition at line 228 of file sc_time.cc.
References ArmISA::d, sc_core::SC_ID_TIME_CONVERSION_FAILED_, SC_REPORT_ERROR, sc_time(), and sc_core::SC_ZERO_TIME.
|
static |
Definition at line 210 of file sc_time.cc.
References fixClockFrequency(), ArmISA::t, and ArmISA::u.
Referenced by sc_gem5::VcdTraceFile::initialize(), sc_core::operator*(), sc_core::operator+(), sc_core::operator-(), sc_core::operator/(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvTimingReq(), sc_gem5::TlmToGem5Bridge< BITWIDTH >::recvTimingResp(), sc_core::sc_report_handler::report(), sc_core::sc_get_time_resolution(), sc_core::sc_max_time(), sc_core::sc_start(), sc_core::sc_time_stamp(), and sc_core::sc_time_to_pending_activity().
bool sc_core::sc_time::operator!= | ( | const sc_time & | t | ) | const |
Definition at line 146 of file sc_time.cc.
sc_time & sc_core::sc_time::operator*= | ( | double | d | ) |
Definition at line 190 of file sc_time.cc.
Definition at line 176 of file sc_time.cc.
Definition at line 183 of file sc_time.cc.
sc_time & sc_core::sc_time::operator/= | ( | double | d | ) |
Definition at line 197 of file sc_time.cc.
bool sc_core::sc_time::operator< | ( | const sc_time & | t | ) | const |
Definition at line 152 of file sc_time.cc.
bool sc_core::sc_time::operator<= | ( | const sc_time & | t | ) | const |
Definition at line 158 of file sc_time.cc.
Definition at line 108 of file sc_time.cc.
bool sc_core::sc_time::operator== | ( | const sc_time & | t | ) | const |
Definition at line 140 of file sc_time.cc.
bool sc_core::sc_time::operator> | ( | const sc_time & | t | ) | const |
Definition at line 164 of file sc_time.cc.
bool sc_core::sc_time::operator>= | ( | const sc_time & | t | ) | const |
Definition at line 170 of file sc_time.cc.
void sc_core::sc_time::print | ( | std::ostream & | os = std::cout | ) | const |
Definition at line 204 of file sc_time.cc.
References X86ISA::os, and sc_core::sc_time_tuple::to_string().
Referenced by to_string().
double sc_core::sc_time::to_double | ( | ) | const |
double sc_core::sc_time::to_seconds | ( | ) | const |
Definition at line 126 of file sc_time.cc.
References SimClock::Float::Hz, and to_double().
const std::string sc_core::sc_time::to_string | ( | ) | const |
Definition at line 132 of file sc_time.cc.
References print(), and ArmISA::ss.
Referenced by sc_core::sc_report_compose_message().
sc_dt::uint64 sc_core::sc_time::value | ( | ) | const |
Definition at line 115 of file sc_time.cc.
References val.
Referenced by sc_gem5::TraceFile::finalizeTime(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::nb_transport_bw(), sc_gem5::VcdTraceValTime::output(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvAtomic(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvAtomicBackdoor(), and sc_core::sc_start().
|
private |
Definition at line 90 of file sc_time.hh.
Referenced by operator!=(), operator*=(), operator+=(), operator-=(), operator/=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), sc_time(), to_double(), and value().