gem5
v20.1.0.0
|
#include <timing.hh>
Protected Member Functions | |
bool | sendResp (TimingRequestProtocol *peer, PacketPtr pkt) |
Attempt to send a timing response to the peer by calling its corresponding receive function. More... | |
void | sendSnoopReq (TimingRequestProtocol *peer, PacketPtr pkt) |
Attempt to send a timing snoop request packet to the peer by calling its corresponding receive function. More... | |
void | sendRetryReq (TimingRequestProtocol *peer) |
Send a retry to the peer that previously attempted a sendTimingReq to this protocol and failed. More... | |
void | sendRetrySnoopResp (TimingRequestProtocol *peer) |
Send a retry to the peer that previously attempted a sendTimingSnoopResp to this peer and failed. More... | |
virtual bool | recvTimingReq (PacketPtr pkt)=0 |
Receive a timing request from the peer. More... | |
virtual bool | tryTiming (PacketPtr pkt)=0 |
Availability request from the peer. More... | |
virtual bool | recvTimingSnoopResp (PacketPtr pkt)=0 |
Receive a timing snoop response from the peer. More... | |
virtual void | recvRespRetry ()=0 |
Called by the peer if sendTimingResp was called on this protocol (causing recvTimingResp to be called on the peer) and was unsuccessful. More... | |
Friends | |
class | TimingRequestProtocol |
|
protectedpure virtual |
Called by the peer if sendTimingResp was called on this protocol (causing recvTimingResp to be called on the peer) and was unsuccessful.
Implemented in SimpleCache::CPUSidePort, sc_gem5::Gem5ToTlmBridge< BITWIDTH >::BridgeResponsePort, SimpleMemobj::CPUSidePort, TokenResponsePort, SimpleMemory::MemoryPort, X86ISA::GpuTLB::CpuSidePort, CommMonitor::MonitorResponsePort, Bridge::BridgeResponsePort, LdsState::CuSidePort, AddrMapper::MapperResponsePort, SerialLink::SerialLinkResponsePort, MemCheckerMonitor::MonitorResponsePort, TLBCoalescer::CpuSidePort, DRAMsim3::MemoryPort, DRAMSim2::MemoryPort, StubSlavePort, and QueuedResponsePort.
Referenced by TimingRequestProtocol::sendRetryResp().
|
protectedpure virtual |
Receive a timing request from the peer.
Implemented in MemCtrl::MemoryPort, GPUCoalescer::GMTokenPort, BaseCache::CpuSidePort, SimpleCache::CPUSidePort, SimpleMemobj::CPUSidePort, sc_gem5::Gem5ToTlmBridge< BITWIDTH >::BridgeResponsePort, CoherentXBar::CoherentXBarResponsePort, MemDelay::ResponsePort, NoncoherentXBar::NoncoherentXBarResponsePort, SimpleMemory::MemoryPort, X86ISA::GpuTLB::CpuSidePort, CommMonitor::MonitorResponsePort, Bridge::BridgeResponsePort, SerialLink::SerialLinkResponsePort, AddrMapper::MapperResponsePort, MemCheckerMonitor::MonitorResponsePort, LdsState::CuSidePort, TLBCoalescer::CpuSidePort, SMMUATSDevicePort, RubyPort::PioResponsePort, QoS::MemSinkCtrl::MemoryPort, RubyPort::MemResponsePort, SMMUDevicePort, DRAMsim3::MemoryPort, DRAMSim2::MemoryPort, SimpleTimingPort, and StubSlavePort.
Referenced by TimingRequestProtocol::sendReq().
|
protectedpure virtual |
Receive a timing snoop response from the peer.
Implemented in ResponsePort, BaseCache::CpuSidePort, sc_gem5::Gem5ToTlmBridge< BITWIDTH >::BridgeResponsePort, CoherentXBar::CoherentXBarResponsePort, MemDelay::ResponsePort, CommMonitor::MonitorResponsePort, AddrMapper::MapperResponsePort, MemCheckerMonitor::MonitorResponsePort, and StubSlavePort.
Referenced by TimingRequestProtocol::sendSnoopResp().
|
protected |
Attempt to send a timing response to the peer by calling its corresponding receive function.
If the send does not succeed, as indicated by the return value, then the sender must wait for a recvRespRetry at which point it can re-issue a sendTimingResp.
peer | Peer to send the packet to. |
pkt | Packet to send. |
Definition at line 77 of file timing.cc.
References Packet::isResponse(), and TimingRequestProtocol::recvTimingResp().
Referenced by ResponsePort::sendTimingResp().
|
protected |
Send a retry to the peer that previously attempted a sendTimingReq to this protocol and failed.
Definition at line 92 of file timing.cc.
References TimingRequestProtocol::recvReqRetry().
Referenced by ResponsePort::sendRetryReq().
|
protected |
Send a retry to the peer that previously attempted a sendTimingSnoopResp to this peer and failed.
Definition at line 98 of file timing.cc.
References TimingRequestProtocol::recvRetrySnoopResp().
Referenced by ResponsePort::sendRetrySnoopResp().
|
protected |
Attempt to send a timing snoop request packet to the peer by calling its corresponding receive function.
Snoop requests always succeed and hence no return value is needed.
peer | Peer to send the packet to. |
pkt | Packet to send. |
Definition at line 84 of file timing.cc.
References Packet::isRequest(), and TimingRequestProtocol::recvTimingSnoopReq().
Referenced by ResponsePort::sendTimingSnoopReq().
|
protectedpure virtual |
Availability request from the peer.
Implemented in ResponsePort, BaseCache::CpuSidePort, sc_gem5::Gem5ToTlmBridge< BITWIDTH >::BridgeResponsePort, MemDelay::ResponsePort, and CommMonitor::MonitorResponsePort.
Referenced by TimingRequestProtocol::trySend().
|
friend |