Go to the documentation of this file.
41 #ifndef __MEM_PACKET_QUEUE_HH__
42 #define __MEM_PACKET_QUEUE_HH__
142 const std::string& _sendEventName,
143 bool force_order =
false,
144 bool disable_sanity_check =
false);
158 virtual const std::string
name()
const = 0;
232 const std::string&
label)
247 const std::string _label =
"ReqPacketQueue");
268 const std::string&
label)
284 bool force_order =
false,
285 const std::string _label =
"SnoopRespPacketQueue");
306 const std::string&
label)
322 bool force_order =
false,
323 const std::string _label =
"RespPacketQueue");
334 #endif // __MEM_PACKET_QUEUE_HH__
virtual void sendDeferredPacket()
Attempt to send a packet.
DeferredPacketList transmitList
A list of outgoing packets.
size_t size() const
Get the size of the queue.
A ResponsePort is a specialization of a port.
std::list< DeferredPacket > DeferredPacketList
bool sendTiming(PacketPtr pkt)
Send a packet using the appropriate method for the specific subclass (request, response or snoop resp...
EventFunctionWrapper sendEvent
Event used to call processSendEvent.
Tick tick
The tick when the packet is ready to transmit.
PacketPtr pkt
Pointer to the packet to transmit.
RequestPort & memSidePort
A packet queue is a class that holds deferred packets and later sends them using the associated CPU-s...
SnoopRespPacketQueue(EventManager &_em, RequestPort &_mem_side_port, bool force_order=false, const std::string _label="SnoopRespPacketQueue")
Create a snoop response packet queue, linked to an event manager, a memory-side port,...
bool waitingOnRetry
Remember whether we're awaiting a retry.
virtual ~ReqPacketQueue()
uint64_t Tick
Tick count type.
const std::string name() const
Provide a name to simplify debugging.
void schedSendEvent(Tick when)
Schedule a send event if we are not already waiting for a retry.
virtual ~RespPacketQueue()
bool forceOrder
if true, inserted packets have to be unconditionally scheduled after the last packet in the queue tha...
RequestPort & memSidePort
void schedSendTiming(PacketPtr pkt, Tick when)
Add a packet to the transmit list, and schedule a send event.
virtual bool sendTiming(PacketPtr pkt)=0
Send a packet using the appropriate method for the specific subclass (request, response or snoop resp...
EventManager & em
The manager which is used for the event queue.
DrainState
Object drain/handover states.
bool sendTiming(PacketPtr pkt)
Send a packet using the appropriate method for the specific subclass (request, response or snoop resp...
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 ...
static const std::string name(const ResponsePort &cpuSidePort, const std::string &label)
Interface for objects that might require draining before checkpointing.
bool sendTiming(PacketPtr pkt)
Send a packet using the appropriate method for the specific subclass (request, response or snoop resp...
void processSendEvent()
Used to schedule sending of deferred packets.
bool deferredPacketReady() const
Check whether we have a packet ready to go on the transmit list.
A RequestPort is a specialisation of a Port, which implements the default protocol for the three diff...
virtual const std::string name() const =0
Provide a name to simplify debugging.
const std::string name() const
Return port name (for DPRINTF).
const std::string name() const
Provide a name to simplify debugging.
A deferred packet, buffered to transmit later.
bool trySatisfyFunctional(PacketPtr pkt)
Check the list of buffered packets against the supplied functional request.
virtual ~SnoopRespPacketQueue()
static const std::string name(const RequestPort &memSidePort, const std::string &label)
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
virtual ~PacketQueue()
Virtual desctructor since the class may be used as a base class.
const std::string name() const
Provide a name to simplify debugging.
RespPacketQueue(EventManager &_em, ResponsePort &_cpu_side_port, bool force_order=false, const std::string _label="RespPacketQueue")
Create a response packet queue, linked to an event manager, a CPU-side port, and a label that will be...
const std::string label
Label to use for print request packets label stack.
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.
ResponsePort & cpuSidePort
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...
DeferredPacket(Tick t, PacketPtr p)
static const std::string name(const RequestPort &memSidePort, const std::string &label)
void disableSanityCheck()
This allows a user to explicitly disable the sanity check on the size of the transmitList,...
DrainState drain() override
Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are pa...
void retry()
Retry sending a packet from the queue.
Tick curTick()
The current simulated tick.
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17