gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ReqPacketQueue Class Reference

#include <packet_queue.hh>

Inheritance diagram for gem5::ReqPacketQueue:
gem5::PacketQueue gem5::Drainable gem5::BaseCache::CacheReqPacketQueue

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.
 
virtual ~ReqPacketQueue ()
 
const std::string name () const
 Provide a name to simplify debugging.
 
bool sendTiming (PacketPtr pkt)
 Send a packet using the appropriate method for the specific subclass (request, response or snoop response).
 
- Public Member Functions inherited from gem5::PacketQueue
size_t size () const
 Get the size of the queue.
 
Tick deferredPacketReadyTime () const
 Get the next packet ready time.
 
bool checkConflict (const PacketPtr pkt, const int blk_size) const
 Check if a packet corresponding to the same address exists in the queue.
 
bool trySatisfyFunctional (PacketPtr pkt)
 Check the list of buffered packets against the supplied functional request.
 
void schedSendEvent (Tick when)
 Schedule a send event if we are not already waiting for a retry.
 
void schedSendTiming (PacketPtr pkt, Tick when)
 Add a packet to the transmit list, and schedule a send event.
 
void retry ()
 Retry sending a packet from the queue.
 
void disableSanityCheck ()
 This allows a user to explicitly disable the sanity check on the size of the transmitList, which is enabled by default.
 
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.
 
- 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.
 

Static Protected Member Functions

static const std::string name (const RequestPort &memSidePort, const std::string &label)
 

Protected Attributes

RequestPortmemSidePort
 
- Protected Attributes inherited from gem5::PacketQueue
const std::string label
 Label to use for print request packets label stack.
 
bool waitingOnRetry
 Remember whether we're awaiting a retry.
 

Additional Inherited Members

- Protected Member Functions inherited from gem5::PacketQueue
bool deferredPacketReady () const
 Check whether we have a packet ready to go on the transmit list.
 
virtual void sendDeferredPacket ()
 Attempt to send a packet.
 
 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.
 
virtual ~PacketQueue ()
 Virtual desctructor since the class may be used as a base class.
 
- 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.
 

Detailed Description

Definition at line 226 of file packet_queue.hh.

Constructor & Destructor Documentation

◆ ReqPacketQueue()

gem5::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.

Parameters
_emEvent manager used for scheduling this queue
_mem_side_portMem_side port used to send the packets
_labelLabel to push on the label stack for print request packets

Definition at line 238 of file packet_queue.cc.

◆ ~ReqPacketQueue()

virtual gem5::ReqPacketQueue::~ReqPacketQueue ( )
inlinevirtual

Definition at line 253 of file packet_queue.hh.

Member Function Documentation

◆ name() [1/2]

const std::string gem5::ReqPacketQueue::name ( ) const
inlinevirtual

Provide a name to simplify debugging.

Returns
A complete name, appended to module and port

Implements gem5::PacketQueue.

Definition at line 255 of file packet_queue.hh.

References gem5::PacketQueue::label, memSidePort, and name().

Referenced by name().

◆ name() [2/2]

static const std::string gem5::ReqPacketQueue::name ( const RequestPort & memSidePort,
const std::string & label )
inlinestaticprotected

Definition at line 235 of file packet_queue.hh.

References gem5::PacketQueue::label, memSidePort, and gem5::Port::name().

◆ sendTiming()

bool gem5::ReqPacketQueue::sendTiming ( PacketPtr pkt)
virtual

Send a packet using the appropriate method for the specific subclass (request, response or snoop response).

Implements gem5::PacketQueue.

Definition at line 246 of file packet_queue.cc.

References memSidePort, and gem5::RequestPort::sendTimingReq().

Member Data Documentation

◆ memSidePort

RequestPort& gem5::ReqPacketQueue::memSidePort
protected

Definition at line 231 of file packet_queue.hh.

Referenced by name(), name(), and sendTiming().


The documentation for this class was generated from the following files:

Generated on Tue Jun 18 2024 16:24:14 for gem5 by doxygen 1.11.0