Go to the documentation of this file.
33 #include "debug/HelloExample.hh"
43 goodbye(params.goodbye_object),
46 latency(params.time_to_wait),
47 timesLeft(params.number_of_fires)
49 DPRINTF(HelloExample,
"Created the hello object\n");
50 panic_if(!goodbye,
"HelloObject must have a non-null GoodbyeObject");
64 DPRINTF(HelloExample,
"Hello world! Processing the event! %d left\n",
68 DPRINTF(HelloExample,
"Done firing!\n");
Tick curTick()
The universal simulation clock.
void schedule(Event &event, Tick when)
const std::string myName
The name of this object in the Python config file.
void processEvent()
Example function to execute on an event trigger.
GoodbyeObject * goodbye
Pointer to the corresponding GoodbyeObject. Set via Python.
void sayGoodbye(std::string name)
Called by an outside object.
const Tick latency
Latency between calling the event (in ticks)
Abstract superclass for simulation objects.
EventFunctionWrapper event
An event that wraps the above function.
const std::string & name()
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
int timesLeft
Number of times left to fire the event before goodbye.
HelloObject(const HelloObjectParams &p)
void startup()
Part of a SimObject's initilaization.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Generated on Sun Jul 30 2023 01:56:57 for gem5 by doxygen 1.8.17