gem5 v24.0.0.0
|
#include <event.hh>
Public Member Functions | |
Event (sc_core::sc_event *_sc_event, bool internal=false) | |
Event (sc_core::sc_event *_sc_event, const char *_basename, bool internal=false) | |
~Event () | |
sc_core::sc_event * | sc_event () |
const std::string & | name () const |
const std::string & | basename () const |
bool | inHierarchy () const |
sc_core::sc_object * | getParentObject () const |
void | notify (StaticSensitivities &senses) |
void | notify (DynamicSensitivities &senses) |
void | notify () |
void | notify (const sc_core::sc_time &t) |
void | notify (double d, sc_core::sc_time_unit &u) |
void | notifyDelayed (const sc_core::sc_time &t) |
void | cancel () |
bool | triggered () const |
uint64_t | triggeredStamp () const |
void | addSensitivity (StaticSensitivity *s) const |
void | delSensitivity (StaticSensitivity *s) const |
void | addSensitivity (DynamicSensitivity *s) const |
void | delSensitivity (DynamicSensitivity *s) const |
void | clearParent () |
Static Public Member Functions | |
static Event * | getFromScEvent (sc_core::sc_event *e) |
static const Event * | getFromScEvent (const sc_core::sc_event *e) |
Private Attributes | |
sc_core::sc_event * | _sc_event |
std::string | _basename |
std::string | _name |
bool | _inHierarchy |
sc_core::sc_object * | parent |
ScEvent | delayedNotify |
uint64_t | _triggeredStamp |
StaticSensitivities | staticSenseMethod |
StaticSensitivities | staticSenseThread |
DynamicSensitivities | dynamicSenseMethod |
DynamicSensitivities | dynamicSenseThread |
sc_gem5::Event::Event | ( | sc_core::sc_event * | _sc_event, |
bool | internal = false ) |
sc_gem5::Event::Event | ( | sc_core::sc_event * | _sc_event, |
const char * | _basename, | ||
bool | internal = false ) |
sc_gem5::Event::~Event | ( | ) |
Definition at line 91 of file event.cc.
References _name, _sc_event, sc_gem5::allEvents, delayedNotify, sc_gem5::Object::delChildEvent(), sc_gem5::Scheduler::deschedule(), sc_gem5::findEvent(), sc_gem5::Object::getFromScObject(), inHierarchy(), parent, sc_gem5::ScEvent::scheduled(), sc_gem5::scheduler, and sc_gem5::topLevelEvents.
|
inline |
Definition at line 123 of file event.hh.
References dynamicSenseMethod, and dynamicSenseThread.
|
inline |
Definition at line 103 of file event.hh.
References staticSenseMethod, and staticSenseThread.
Referenced by sc_gem5::DynamicSensitivity::addToEvent(), and sc_gem5::StaticSensitivity::addToEvent().
const std::string & sc_gem5::Event::basename | ( | ) | const |
Definition at line 119 of file event.cc.
References _basename.
Referenced by sc_core::sc_event::basename().
void sc_gem5::Event::cancel | ( | ) |
Definition at line 195 of file event.cc.
References delayedNotify, sc_gem5::Scheduler::deschedule(), sc_gem5::ScEvent::scheduled(), and sc_gem5::scheduler.
Referenced by sc_core::sc_event::cancel().
void sc_gem5::Event::clearParent | ( | ) |
Definition at line 208 of file event.cc.
References sc_gem5::Object::delChildEvent(), sc_gem5::Object::getFromScObject(), parent, sc_event(), and sc_gem5::topLevelEvents.
Referenced by sc_gem5::Object::~Object().
|
inline |
Definition at line 129 of file event.hh.
References dynamicSenseMethod, and dynamicSenseThread.
|
inline |
Definition at line 111 of file event.hh.
References staticSenseMethod, and staticSenseThread.
Referenced by sc_gem5::DynamicSensitivity::delFromEvent(), and sc_gem5::StaticSensitivity::delFromEvent().
|
inlinestatic |
|
inlinestatic |
Definition at line 91 of file event.hh.
Referenced by sc_gem5::DynamicSensitivity::addToEvent(), sc_gem5::StaticSensitivity::addToEvent(), sc_gem5::DynamicSensitivity::delFromEvent(), sc_gem5::StaticSensitivity::delFromEvent(), and sc_gem5::Object::~Object().
sc_core::sc_object * sc_gem5::Event::getParentObject | ( | ) | const |
Definition at line 131 of file event.cc.
References parent.
Referenced by sc_core::sc_event::get_parent_object().
bool sc_gem5::Event::inHierarchy | ( | ) | const |
Definition at line 125 of file event.cc.
References _inHierarchy.
Referenced by sc_core::sc_event::in_hierarchy(), and ~Event().
const std::string & sc_gem5::Event::name | ( | ) | const |
void sc_gem5::Event::notify | ( | ) |
Definition at line 158 of file event.cc.
References _triggeredStamp, sc_gem5::Scheduler::changeStamp(), delayedNotify, sc_gem5::Scheduler::deschedule(), dynamicSenseMethod, dynamicSenseThread, sc_gem5::Scheduler::inUpdate(), notify(), sc_core::SC_ID_IMMEDIATE_NOTIFICATION_, SC_REPORT_ERROR, sc_gem5::ScEvent::scheduled(), sc_gem5::scheduler, staticSenseMethod, and staticSenseThread.
Referenced by Event(), notify(), notify(), notify(), and notifyDelayed().
void sc_gem5::Event::notify | ( | const sc_core::sc_time & | t | ) |
Definition at line 175 of file event.cc.
References sc_gem5::Scheduler::delayed(), delayedNotify, sc_gem5::Scheduler::deschedule(), sc_gem5::Scheduler::schedule(), sc_gem5::ScEvent::scheduled(), sc_gem5::scheduler, and sc_gem5::ScEvent::when().
|
inline |
void sc_gem5::Event::notify | ( | DynamicSensitivities & | senses | ) |
void sc_gem5::Event::notify | ( | StaticSensitivities & | senses | ) |
Definition at line 137 of file event.cc.
Referenced by sc_core::sc_event::notify(), sc_core::sc_event::notify(), and sc_core::sc_event::notify().
void sc_gem5::Event::notifyDelayed | ( | const sc_core::sc_time & | t | ) |
Definition at line 187 of file event.cc.
References delayedNotify, notify(), sc_core::SC_ID_NOTIFY_DELAYED_, SC_REPORT_ERROR, and sc_gem5::ScEvent::scheduled().
Referenced by sc_core::sc_event::notify_delayed(), and sc_core::sc_event::notify_delayed().
|
inline |
bool sc_gem5::Event::triggered | ( | ) | const |
Definition at line 202 of file event.cc.
References _triggeredStamp, sc_gem5::Scheduler::changeStamp(), and sc_gem5::scheduler.
Referenced by sc_core::sc_event::triggered().
|
inline |
Definition at line 88 of file event.hh.
References _triggeredStamp.
|
private |
Definition at line 146 of file event.hh.
Referenced by basename().
|
private |
Definition at line 148 of file event.hh.
Referenced by inHierarchy().
|
private |
|
private |
Definition at line 144 of file event.hh.
Referenced by sc_event(), and ~Event().
|
mutableprivate |
Definition at line 153 of file event.hh.
Referenced by notify(), triggered(), and triggeredStamp().
|
private |
|
mutableprivate |
Definition at line 157 of file event.hh.
Referenced by addSensitivity(), delSensitivity(), and notify().
|
mutableprivate |
Definition at line 158 of file event.hh.
Referenced by addSensitivity(), delSensitivity(), and notify().
|
private |
Definition at line 150 of file event.hh.
Referenced by clearParent(), getParentObject(), and ~Event().
|
mutableprivate |
Definition at line 155 of file event.hh.
Referenced by addSensitivity(), delSensitivity(), and notify().
|
mutableprivate |
Definition at line 156 of file event.hh.
Referenced by addSensitivity(), delSensitivity(), and notify().