Go to the documentation of this file.
32 #include "debug/HelloExample.hh"
40 bandwidth(params.write_bandwidth), bufferSize(params.buffer_size),
41 buffer(
nullptr), bufferUsed(0)
43 buffer =
new char[bufferSize]();
44 DPRINTF(HelloExample,
"Created the goodbye object\n");
55 DPRINTF(HelloExample,
"Processing the event!\n");
64 DPRINTF(HelloExample,
"Saying goodbye to %s\n", other_name);
66 message =
"Goodbye " + other_name +
"!! ";
91 DPRINTF(HelloExample,
"Scheduling another fillBuffer in %d ticks\n",
95 DPRINTF(HelloExample,
"Goodbye done copying!\n");
GoodbyeObject(const GoodbyeObjectParams &p)
Tick curTick()
The universal simulation clock.
EventFunctionWrapper event
An event that wraps the above function.
float bandwidth
The bytes processed per tick.
void fillBuffer()
Fills the buffer for one iteration.
int bufferUsed
The amount of the buffer we've used so far.
void schedule(Event &event, Tick when)
void exitSimLoop(const std::string &message, int exit_code, Tick when, Tick repeat, bool serialize)
Schedule an event to exit the simulation loop (returning to Python) at the end of the current cycle (...
void processEvent()
Fill the buffer with the next chunk of data.
void sayGoodbye(std::string name)
Called by an outside object.
Abstract superclass for simulation objects.
const std::string & name()
int bufferSize
The size of the buffer we are going to fill.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
std::string message
The message to put into the buffer.
char * buffer
The buffer we are putting our message in.
Generated on Sun Jul 30 2023 01:56:57 for gem5 by doxygen 1.8.17