gem5
v20.1.0.0
|
#include <packet_queue.hh>
Public Member Functions | |
ReqPacketQueue (EventManager &_em, RequestPort &_mem_side_port, const std::string _label="ReqPacketQueue") | |
Create a request packet queue, linked to an event manager, a memory-side port, and a label that will be used for functional print request packets. More... | |
virtual | ~ReqPacketQueue () |
const std::string | name () const |
Provide a name to simplify debugging. More... | |
bool | sendTiming (PacketPtr pkt) |
Send a packet using the appropriate method for the specific subclass (request, response or snoop response). More... | |
Public Member Functions inherited from PacketQueue | |
size_t | size () const |
Get the size of the queue. More... | |
Tick | deferredPacketReadyTime () const |
Get the next packet ready time. More... | |
bool | checkConflict (const PacketPtr pkt, const int blk_size) const |
Check if a packet corresponding to the same address exists in the queue. More... | |
bool | trySatisfyFunctional (PacketPtr pkt) |
Check the list of buffered packets against the supplied functional request. More... | |
void | schedSendEvent (Tick when) |
Schedule a send event if we are not already waiting for a retry. More... | |
void | schedSendTiming (PacketPtr pkt, Tick when) |
Add a packet to the transmit list, and schedule a send event. More... | |
void | retry () |
Retry sending a packet from the queue. More... | |
void | disableSanityCheck () |
This allows a user to explicitly disable the sanity check on the size of the transmitList, which is enabled by default. More... | |
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. More... | |
Public Member Functions inherited from Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
Static Protected Member Functions | |
static const std::string | name (const RequestPort &memSidePort, const std::string &label) |
Protected Attributes | |
RequestPort & | memSidePort |
Protected Attributes inherited from PacketQueue | |
const std::string | label |
Label to use for print request packets label stack. More... | |
bool | waitingOnRetry |
Remember whether we're awaiting a retry. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from PacketQueue | |
bool | deferredPacketReady () const |
Check whether we have a packet ready to go on the transmit list. More... | |
virtual void | sendDeferredPacket () |
Attempt to send a packet. More... | |
PacketQueue (EventManager &_em, const std::string &_label, const std::string &_sendEventName, bool force_order=false, bool disable_sanity_check=false) | |
Create a packet queue, linked to an event manager, and a label that will be used for functional print request packets. More... | |
virtual | ~PacketQueue () |
Virtual desctructor since the class may be used as a base class. More... | |
Protected Member Functions inherited from Drainable | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. More... | |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
Definition at line 222 of file packet_queue.hh.
ReqPacketQueue::ReqPacketQueue | ( | EventManager & | _em, |
RequestPort & | _mem_side_port, | ||
const std::string | _label = "ReqPacketQueue" |
||
) |
Create a request packet queue, linked to an event manager, a memory-side port, and a label that will be used for functional print request packets.
_em | Event manager used for scheduling this queue |
_mem_side_port | Mem_side port used to send the packets |
_label | Label to push on the label stack for print request packets |
Definition at line 235 of file packet_queue.cc.
|
inlinevirtual |
Definition at line 249 of file packet_queue.hh.
|
inlinevirtual |
Provide a name to simplify debugging.
Implements PacketQueue.
Definition at line 251 of file packet_queue.hh.
References PacketQueue::label, and memSidePort.
|
inlinestaticprotected |
Definition at line 231 of file packet_queue.hh.
References PacketQueue::label, memSidePort, and Port::name().
|
virtual |
Send a packet using the appropriate method for the specific subclass (request, response or snoop response).
Implements PacketQueue.
Definition at line 243 of file packet_queue.cc.
References memSidePort, and RequestPort::sendTimingReq().
|
protected |
Definition at line 227 of file packet_queue.hh.
Referenced by name(), and sendTiming().