31 #ifndef __SIM_CORE_HH__ 32 #define __SIM_CORE_HH__ void doExitCleanup()
Do C++ simulator exit processing.
void setClockFrequency(Tick ticksPerSecond)
Tick curTick()
The universal simulation clock.
double s
These variables equal the number of ticks in the unit of time they're named after in a double...
Tick Frequency
The simulated frequency of curTick(). (In ticks per second)
bool clockFrequencyFixed()
void registerExitCallback(Callback *callback)
Register an exit callback.
These are variables that are set based on the simulator frequency.
uint64_t Tick
Tick count type.
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
__thread EventQueue * _curEventQueue
The current event queue for the running thread.
double Hz
These variables the inverse of above.
void setOutputDir(const std::string &dir)
Tick getCurTick() const
While curTick() is useful for any object assigned to this event queue, if an object that is assigned ...