gem5 v24.0.0.0
|
The traffic generator is a module that generates stimuli for the memory system, based on a collection of simple generator behaviours that are either probabilistic or based on traces. More...
#include <base.hh>
Classes | |
struct | StatGroup |
class | TrafficGenPort |
Request port specialisation for the traffic generator. More... | |
Public Member Functions | |
BaseTrafficGen (const BaseTrafficGenParams &p) | |
~BaseTrafficGen () | |
Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
Get a port with a given name and index. | |
void | init () override |
init() is called after all C++ SimObjects have been created and all ports are connected. | |
DrainState | drain () override |
Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are partially executed or are partially in flight. | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. | |
std::shared_ptr< BaseGen > | createIdle (Tick duration) |
std::shared_ptr< BaseGen > | createExit (Tick duration) |
std::shared_ptr< BaseGen > | createLinear (Tick duration, Addr start_addr, Addr end_addr, Addr blocksize, Tick min_period, Tick max_period, uint8_t read_percent, Addr data_limit) |
std::shared_ptr< BaseGen > | createRandom (Tick duration, Addr start_addr, Addr end_addr, Addr blocksize, Tick min_period, Tick max_period, uint8_t read_percent, Addr data_limit) |
std::shared_ptr< BaseGen > | createDram (Tick duration, Addr start_addr, Addr end_addr, Addr blocksize, Tick min_period, Tick max_period, uint8_t read_percent, Addr data_limit, unsigned int num_seq_pkts, unsigned int page_size, unsigned int nbr_of_banks, unsigned int nbr_of_banks_util, enums::AddrMap addr_mapping, unsigned int nbr_of_ranks) |
std::shared_ptr< BaseGen > | createDramRot (Tick duration, Addr start_addr, Addr end_addr, Addr blocksize, Tick min_period, Tick max_period, uint8_t read_percent, Addr data_limit, unsigned int num_seq_pkts, unsigned int page_size, unsigned int nbr_of_banks, unsigned int nbr_of_banks_util, enums::AddrMap addr_mapping, unsigned int nbr_of_ranks, unsigned int max_seq_count_per_rank) |
std::shared_ptr< BaseGen > | createHybrid (Tick duration, Addr start_addr_dram, Addr end_addr_dram, Addr blocksize_dram, Addr start_addr_nvm, Addr end_addr_nvm, Addr blocksize_nvm, Tick min_period, Tick max_period, uint8_t read_percent, Addr data_limit, unsigned int num_seq_pkts_dram, unsigned int page_size_dram, unsigned int nbr_of_banks_dram, unsigned int nbr_of_banks_util_dram, unsigned int num_seq_pkts_nvm, unsigned int buffer_size_nvm, unsigned int nbr_of_banks_nvm, unsigned int nbr_of_banks_util_nvm, enums::AddrMap addr_mapping, unsigned int nbr_of_ranks_dram, unsigned int nbr_of_ranks_nvm, uint8_t nvm_percent) |
std::shared_ptr< BaseGen > | createNvm (Tick duration, Addr start_addr, Addr end_addr, Addr blocksize, Tick min_period, Tick max_period, uint8_t read_percent, Addr data_limit, unsigned int num_seq_pkts, unsigned int buffer_size, unsigned int nbr_of_banks, unsigned int nbr_of_banks_util, enums::AddrMap addr_mapping, unsigned int nbr_of_ranks) |
std::shared_ptr< BaseGen > | createStrided (Tick duration, Addr start_addr, Addr end_addr, Addr offset, Addr block_size, Addr superblock_size, Addr stride_size, Tick min_period, Tick max_period, uint8_t read_percent, Addr data_limit) |
std::shared_ptr< BaseGen > | createTrace (Tick duration, const std::string &trace_file, Addr addr_offset) |
Public Member Functions inherited from gem5::ClockedObject | |
ClockedObject (const ClockedObjectParams &p) | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. | |
Public Member Functions inherited from gem5::SimObject | |
const Params & | params () const |
SimObject (const Params &p) | |
virtual | ~SimObject () |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. | |
virtual void | regProbePoints () |
Register probe points for this object. | |
virtual void | regProbeListeners () |
Register probe listeners for this object. | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. | |
virtual void | startup () |
startup() is the final initialization call before simulation. | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. | |
Public Member Functions inherited from gem5::EventManager | |
EventQueue * | eventQueue () const |
void | schedule (Event &event, Tick when) |
void | deschedule (Event &event) |
void | reschedule (Event &event, Tick when, bool always=false) |
void | schedule (Event *event, Tick when) |
void | deschedule (Event *event) |
void | reschedule (Event *event, Tick when, bool always=false) |
void | wakeupEventQueue (Tick when=(Tick) -1) |
This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
Public Member Functions inherited from gem5::Serializable | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from gem5::Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. | |
virtual void | notifyFork () |
Notify a child process of a fork. | |
Public Member Functions inherited from gem5::statistics::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. | |
virtual void | resetStats () |
Callback to reset stats. | |
virtual void | preDumpStats () |
Callback before stats are dumped. | |
void | addStat (statistics::Info *info) |
Register a stat with this group. | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. | |
void | mergeStatGroup (Group *block) |
Merge the contents (stats & children) of a block to this block. | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Public Member Functions inherited from gem5::Named | |
Named (const std::string &name_) | |
virtual | ~Named ()=default |
virtual std::string | name () const |
Public Member Functions inherited from gem5::Clocked | |
void | updateClockPeriod () |
Update the tick to the current tick. | |
Tick | clockEdge (Cycles cycles=Cycles(0)) const |
Determine the tick when a cycle begins, by default the current one, but the argument also enables the caller to determine a future cycle. | |
Cycles | curCycle () const |
Determine the current cycle, corresponding to a tick aligned to a clock edge. | |
Tick | nextCycle () const |
Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future. | |
uint64_t | frequency () const |
Tick | clockPeriod () const |
double | voltage () const |
Cycles | ticksToCycles (Tick t) const |
Tick | cyclesToTicks (Cycles c) const |
Protected Member Functions | |
void | start () |
virtual std::shared_ptr< BaseGen > | nextGenerator ()=0 |
Protected Member Functions inherited from gem5::Drainable | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. | |
void | signalDrainDone () const |
Signal that an object is drained. | |
Protected Member Functions inherited from gem5::Clocked | |
Clocked (ClockDomain &clk_domain) | |
Create a clocked object and set the clock domain based on the parameters. | |
Clocked (Clocked &)=delete | |
Clocked & | operator= (Clocked &)=delete |
virtual | ~Clocked () |
Virtual destructor due to inheritance. | |
void | resetClock () const |
Reset the object's clock using the current global tick value. | |
virtual void | clockPeriodUpdated () |
A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. | |
Protected Attributes | |
System *const | system |
The system used to determine which mode we are currently operating in. | |
const bool | elasticReq |
Determine whether to add elasticity in the request injection, thus responding to backpressure by slowing things down. | |
const Tick | progressCheck |
Time to tolerate waiting for retries (not making progress), until we declare things broken. | |
std::unordered_map< RequestPtr, Tick > | waitingResp |
Reqs waiting for response. | |
gem5::BaseTrafficGen::StatGroup | stats |
const RequestorID | requestorId |
RequestorID used in generated requests. | |
std::shared_ptr< BaseGen > | activeGenerator |
Currently active generator. | |
std::unique_ptr< StreamGen > | streamGenerator |
Stream/SubstreamID Generator. | |
Protected Attributes inherited from gem5::SimObject | |
const SimObjectParams & | _params |
Cached copy of the object parameters. | |
Protected Attributes inherited from gem5::EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. | |
Private Member Functions | |
void | recvReqRetry () |
Receive a retry from the neighbouring port and attempt to resend the waiting packet. | |
void | retryReq () |
bool | recvTimingResp (PacketPtr pkt) |
void | transition () |
Transition to the next generator. | |
void | scheduleUpdate () |
Schedule the update event based on nextPacketTick and nextTransitionTick. | |
void | noProgress () |
Method to inform the user we have made no progress. | |
void | update () |
Schedules event for next update and generates a new packet or requests a new generatoir depending on the current time. | |
bool | allocateWaitingRespSlot (PacketPtr pkt) |
Puts this packet in the waitingResp list and returns true if we are above the maximum number of oustanding requests. | |
Private Attributes | |
EventFunctionWrapper | noProgressEvent |
Event to keep track of our progress, or lack thereof. | |
Tick | nextTransitionTick |
Time of next transition. | |
Tick | nextPacketTick |
Time of the next packet. | |
const int | maxOutstandingReqs |
TrafficGenPort | port |
The instance of request port used by the traffic generator. | |
PacketPtr | retryPkt |
Packet waiting to be sent. | |
Tick | retryPktTick |
Tick when the stalled packet was meant to be sent. | |
bool | blockedWaitingResp |
Set when we blocked waiting for outstanding reqs. | |
EventFunctionWrapper | updateEvent |
Event for scheduling updates. | |
Friends | |
class | BaseGen |
Additional Inherited Members | |
Public Types inherited from gem5::ClockedObject | |
using | Params = ClockedObjectParams |
Parameters of ClockedObject. | |
Public Types inherited from gem5::SimObject | |
typedef SimObjectParams | Params |
Static Public Member Functions inherited from gem5::SimObject | |
static void | serializeAll (const std::string &cpt_dir) |
Create a checkpoint by serializing all SimObjects in the system. | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. | |
static void | setSimObjectResolver (SimObjectResolver *resolver) |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
static SimObjectResolver * | getSimObjectResolver () |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
Static Public Member Functions inherited from gem5::Serializable | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. | |
Public Attributes inherited from gem5::ClockedObject | |
PowerState * | powerState |
The traffic generator is a module that generates stimuli for the memory system, based on a collection of simple generator behaviours that are either probabilistic or based on traces.
It can be used stand alone for creating test cases for interconnect and memory controllers, or function as a black box replacement for system components that are not yet modelled in detail, e.g. a video engine or baseband subsystem.
gem5::BaseTrafficGen::BaseTrafficGen | ( | const BaseTrafficGenParams & | p | ) |
Definition at line 70 of file base.cc.
References noProgress().
|
inlineprivate |
Puts this packet in the waitingResp list and returns true if we are above the maximum number of oustanding requests.
Definition at line 179 of file base.hh.
References gem5::curTick(), maxOutstandingReqs, gem5::Packet::needsResponse(), gem5::Packet::req, and waitingResp.
Referenced by update().
std::shared_ptr< BaseGen > gem5::BaseTrafficGen::createDram | ( | Tick | duration, |
Addr | start_addr, | ||
Addr | end_addr, | ||
Addr | blocksize, | ||
Tick | min_period, | ||
Tick | max_period, | ||
uint8_t | read_percent, | ||
Addr | data_limit, | ||
unsigned int | num_seq_pkts, | ||
unsigned int | page_size, | ||
unsigned int | nbr_of_banks, | ||
unsigned int | nbr_of_banks_util, | ||
enums::AddrMap | addr_mapping, | ||
unsigned int | nbr_of_ranks ) |
Definition at line 412 of file base.cc.
References gem5::System::cacheLineSize(), requestorId, and system.
Referenced by gem5::TrafficGen::parseConfig().
std::shared_ptr< BaseGen > gem5::BaseTrafficGen::createDramRot | ( | Tick | duration, |
Addr | start_addr, | ||
Addr | end_addr, | ||
Addr | blocksize, | ||
Tick | min_period, | ||
Tick | max_period, | ||
uint8_t | read_percent, | ||
Addr | data_limit, | ||
unsigned int | num_seq_pkts, | ||
unsigned int | page_size, | ||
unsigned int | nbr_of_banks, | ||
unsigned int | nbr_of_banks_util, | ||
enums::AddrMap | addr_mapping, | ||
unsigned int | nbr_of_ranks, | ||
unsigned int | max_seq_count_per_rank ) |
Definition at line 436 of file base.cc.
References gem5::System::cacheLineSize(), requestorId, and system.
Referenced by gem5::TrafficGen::parseConfig().
Definition at line 377 of file base.cc.
References requestorId.
Referenced by gem5::TrafficGen::parseConfig().
std::shared_ptr< BaseGen > gem5::BaseTrafficGen::createHybrid | ( | Tick | duration, |
Addr | start_addr_dram, | ||
Addr | end_addr_dram, | ||
Addr | blocksize_dram, | ||
Addr | start_addr_nvm, | ||
Addr | end_addr_nvm, | ||
Addr | blocksize_nvm, | ||
Tick | min_period, | ||
Tick | max_period, | ||
uint8_t | read_percent, | ||
Addr | data_limit, | ||
unsigned int | num_seq_pkts_dram, | ||
unsigned int | page_size_dram, | ||
unsigned int | nbr_of_banks_dram, | ||
unsigned int | nbr_of_banks_util_dram, | ||
unsigned int | num_seq_pkts_nvm, | ||
unsigned int | buffer_size_nvm, | ||
unsigned int | nbr_of_banks_nvm, | ||
unsigned int | nbr_of_banks_util_nvm, | ||
enums::AddrMap | addr_mapping, | ||
unsigned int | nbr_of_ranks_dram, | ||
unsigned int | nbr_of_ranks_nvm, | ||
uint8_t | nvm_percent ) |
Definition at line 463 of file base.cc.
References gem5::System::cacheLineSize(), requestorId, and system.
Definition at line 370 of file base.cc.
References requestorId.
Referenced by gem5::TrafficGen::parseConfig().
std::shared_ptr< BaseGen > gem5::BaseTrafficGen::createLinear | ( | Tick | duration, |
Addr | start_addr, | ||
Addr | end_addr, | ||
Addr | blocksize, | ||
Tick | min_period, | ||
Tick | max_period, | ||
uint8_t | read_percent, | ||
Addr | data_limit ) |
Definition at line 384 of file base.cc.
References gem5::System::cacheLineSize(), requestorId, and system.
Referenced by gem5::TrafficGen::parseConfig().
std::shared_ptr< BaseGen > gem5::BaseTrafficGen::createNvm | ( | Tick | duration, |
Addr | start_addr, | ||
Addr | end_addr, | ||
Addr | blocksize, | ||
Tick | min_period, | ||
Tick | max_period, | ||
uint8_t | read_percent, | ||
Addr | data_limit, | ||
unsigned int | num_seq_pkts, | ||
unsigned int | buffer_size, | ||
unsigned int | nbr_of_banks, | ||
unsigned int | nbr_of_banks_util, | ||
enums::AddrMap | addr_mapping, | ||
unsigned int | nbr_of_ranks ) |
Definition at line 506 of file base.cc.
References gem5::System::cacheLineSize(), requestorId, and system.
Referenced by gem5::TrafficGen::parseConfig().
std::shared_ptr< BaseGen > gem5::BaseTrafficGen::createRandom | ( | Tick | duration, |
Addr | start_addr, | ||
Addr | end_addr, | ||
Addr | blocksize, | ||
Tick | min_period, | ||
Tick | max_period, | ||
uint8_t | read_percent, | ||
Addr | data_limit ) |
Definition at line 398 of file base.cc.
References gem5::System::cacheLineSize(), requestorId, and system.
Referenced by gem5::TrafficGen::parseConfig().
std::shared_ptr< BaseGen > gem5::BaseTrafficGen::createStrided | ( | Tick | duration, |
Addr | start_addr, | ||
Addr | end_addr, | ||
Addr | offset, | ||
Addr | block_size, | ||
Addr | superblock_size, | ||
Addr | stride_size, | ||
Tick | min_period, | ||
Tick | max_period, | ||
uint8_t | read_percent, | ||
Addr | data_limit ) |
Definition at line 530 of file base.cc.
References gem5::System::cacheLineSize(), gem5::ArmISA::offset, requestorId, and system.
Referenced by gem5::TrafficGen::parseConfig().
std::shared_ptr< BaseGen > gem5::BaseTrafficGen::createTrace | ( | Tick | duration, |
const std::string & | trace_file, | ||
Addr | addr_offset ) |
Definition at line 547 of file base.cc.
References panic, and requestorId.
Referenced by gem5::TrafficGen::parseConfig().
|
overridevirtual |
Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are partially executed or are partially in flight.
Draining is mostly used before forking and creating a check point.
This function notifies an object that it needs to drain its state.
If the object does not need further simulation to drain internal buffers, it returns DrainState::Drained and automatically switches to the Drained state. If the object needs more simulation, it returns DrainState::Draining and automatically enters the Draining state. Other return values are invalid.
Implements gem5::Drainable.
Definition at line 113 of file base.cc.
References gem5::EventManager::deschedule(), gem5::Drained, gem5::Draining, gem5::MaxTick, nextPacketTick, nextTransitionTick, retryPkt, gem5::Event::scheduled(), and updateEvent.
|
overridevirtual |
Get a port with a given name and index.
This is used at binding time and returns a reference to a protocol-agnostic port.
gem5 has a request and response port interface. All memory objects are connected together via ports. These ports provide a rigid interface between these memory objects. These ports implement three different memory system modes: timing, atomic, and functional. The most important mode is the timing mode and here timing mode is used for conducting cycle-level timing experiments. The other modes are only used in special circumstances and should not be used to conduct cycle-level timing experiments. The other modes are only used in special circumstances. These ports allow SimObjects to communicate with each other.
if_name | Port name |
idx | Index in the case of a VectorPort |
Reimplemented from gem5::SimObject.
Definition at line 94 of file base.cc.
References gem5::SimObject::getPort(), and port.
|
overridevirtual |
init() is called after all C++ SimObjects have been created and all ports are connected.
Initializations that are independent of unserialization but rely on a fully instantiated and connected SimObject graph should be done here.
Reimplemented from gem5::SimObject.
Reimplemented in gem5::TrafficGen.
Definition at line 104 of file base.cc.
References fatal, gem5::SimObject::init(), gem5::Port::isConnected(), gem5::Named::name(), and port.
Referenced by gem5::TrafficGen::init().
|
protectedpure virtual |
Implemented in gem5::PyTrafficGen, and gem5::TrafficGen.
Referenced by transition().
|
private |
Method to inform the user we have made no progress.
Definition at line 329 of file base.cc.
References fatal, gem5::Named::name(), and progressCheck.
Referenced by BaseTrafficGen().
|
private |
Receive a retry from the neighbouring port and attempt to resend the waiting packet.
Definition at line 289 of file base.cc.
References DPRINTF, gem5::BaseTrafficGen::StatGroup::numRetries, retryReq(), and stats.
Referenced by gem5::BaseTrafficGen::TrafficGenPort::recvReqRetry().
|
private |
Definition at line 559 of file base.cc.
References blockedWaitingResp, gem5::BaseTrafficGen::StatGroup::bytesRead, gem5::BaseTrafficGen::StatGroup::bytesWritten, gem5::curTick(), gem5::Packet::isWrite(), panic_if, gem5::Packet::print(), gem5::Packet::req, retryReq(), stats, gem5::BaseTrafficGen::StatGroup::totalReadLatency, gem5::BaseTrafficGen::StatGroup::totalReads, gem5::BaseTrafficGen::StatGroup::totalWriteLatency, gem5::BaseTrafficGen::StatGroup::totalWrites, and waitingResp.
Referenced by gem5::BaseTrafficGen::TrafficGenPort::recvTimingResp().
|
private |
Definition at line 297 of file base.cc.
References activeGenerator, blockedWaitingResp, gem5::curTick(), gem5::Draining, gem5::Drainable::drainState(), elasticReq, gem5::MaxTick, nextPacketTick, nextTransitionTick, port, retryPkt, retryPktTick, gem5::BaseTrafficGen::StatGroup::retryTicks, scheduleUpdate(), gem5::RequestPort::sendTimingReq(), gem5::Drainable::signalDrainDone(), and stats.
Referenced by recvReqRetry(), and recvTimingResp().
|
private |
Schedule the update event based on nextPacketTick and nextTransitionTick.
Definition at line 258 of file base.cc.
References activeGenerator, gem5::curTick(), DPRINTF, gem5::MaxTick, nextPacketTick, nextTransitionTick, gem5::EventManager::schedule(), transition(), and updateEvent.
Referenced by retryReq(), start(), and update().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements gem5::Serializable.
Reimplemented in gem5::TrafficGen.
Definition at line 132 of file base.cc.
References DPRINTF, gem5::Named::name(), nextPacketTick, nextTransitionTick, gem5::Event::scheduled(), SERIALIZE_SCALAR, updateEvent, warn, and gem5::Event::when().
Referenced by gem5::TrafficGen::serialize().
|
protected |
Definition at line 282 of file base.cc.
References scheduleUpdate(), and transition().
Referenced by gem5::TrafficGen::initState(), and gem5::PyTrafficGen::start().
|
private |
Transition to the next generator.
Definition at line 230 of file base.cc.
References activeGenerator, gem5::curTick(), elasticReq, gem5::MaxTick, nextGenerator(), nextPacketTick, nextTransitionTick, gem5::Event::scheduled(), and updateEvent.
Referenced by gem5::TrafficGen::parseConfig(), scheduleUpdate(), start(), and update().
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements gem5::Serializable.
Reimplemented in gem5::TrafficGen.
Definition at line 152 of file base.cc.
References gem5::Named::name(), nextPacketTick, nextTransitionTick, gem5::EventManager::schedule(), UNSERIALIZE_SCALAR, updateEvent, and warn.
Referenced by gem5::TrafficGen::unserialize().
|
private |
Schedules event for next update and generates a new packet or requests a new generatoir depending on the current time.
Definition at line 169 of file base.cc.
References activeGenerator, allocateWaitingRespSlot(), blockedWaitingResp, gem5::Packet::cmdString(), gem5::curTick(), DPRINTF, elasticReq, gem5::Packet::getAddr(), gem5::System::isMemAddr(), gem5::Named::name(), nextPacketTick, nextTransitionTick, noProgressEvent, gem5::BaseTrafficGen::StatGroup::numPackets, gem5::BaseTrafficGen::StatGroup::numSuppressed, port, progressCheck, gem5::Packet::req, gem5::EventManager::reschedule(), retryPkt, retryPktTick, scheduleUpdate(), gem5::RequestPort::sendTimingReq(), stats, streamGenerator, system, transition(), gem5::statistics::ScalarBase< Derived, Stor >::value(), and warn.
|
protected |
Currently active generator.
Definition at line 343 of file base.hh.
Referenced by gem5::TrafficGen::nextGenerator(), retryReq(), scheduleUpdate(), transition(), and update().
|
private |
Set when we blocked waiting for outstanding reqs.
Definition at line 173 of file base.hh.
Referenced by recvTimingResp(), retryReq(), and update().
|
protected |
Determine whether to add elasticity in the request injection, thus responding to backpressure by slowing things down.
Definition at line 82 of file base.hh.
Referenced by retryReq(), transition(), and update().
|
private |
Definition at line 126 of file base.hh.
Referenced by allocateWaitingRespSlot().
|
private |
Time of the next packet.
Definition at line 124 of file base.hh.
Referenced by drain(), retryReq(), scheduleUpdate(), serialize(), transition(), unserialize(), and update().
|
private |
Time of next transition.
Definition at line 121 of file base.hh.
Referenced by drain(), retryReq(), scheduleUpdate(), serialize(), transition(), unserialize(), and update().
|
private |
|
private |
|
protected |
Time to tolerate waiting for retries (not making progress), until we declare things broken.
Definition at line 88 of file base.hh.
Referenced by noProgress(), and update().
|
protected |
RequestorID used in generated requests.
Definition at line 340 of file base.hh.
Referenced by createDram(), createDramRot(), createExit(), createHybrid(), createIdle(), createLinear(), createNvm(), createRandom(), createStrided(), and createTrace().
|
private |
|
private |
Tick when the stalled packet was meant to be sent.
Definition at line 170 of file base.hh.
Referenced by retryReq(), and update().
|
protected |
Referenced by recvReqRetry(), recvTimingResp(), retryReq(), and update().
|
protected |
|
protected |
The system used to determine which mode we are currently operating in.
Definition at line 76 of file base.hh.
Referenced by createDram(), createDramRot(), createHybrid(), createLinear(), createNvm(), createRandom(), createStrided(), gem5::TrafficGen::initState(), and update().
|
private |
Event for scheduling updates.
Definition at line 191 of file base.hh.
Referenced by drain(), scheduleUpdate(), serialize(), transition(), and unserialize().
|
protected |
Reqs waiting for response.
Definition at line 195 of file base.hh.
Referenced by allocateWaitingRespSlot(), and recvTimingResp().