Shivani Parekh has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/32314 )
Change subject: mem: Update port terminology
......................................................................
mem: Update port terminology
Change-Id: Ib4fc8cad7139d4971e74930295a69e576f6da3cf
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32314
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/mem/AddrMapper.py
M src/mem/Bridge.py
M src/mem/CommMonitor.py
M src/mem/ExternalMaster.py
M src/mem/MemChecker.py
M src/mem/MemDelay.py
M src/mem/SerialLink.py
M src/mem/XBar.py
M src/mem/addr_mapper.hh
M src/mem/bridge.cc
M src/mem/bridge.hh
M src/mem/cache/Cache.py
M src/mem/cache/base.hh
M src/mem/coherent_xbar.cc
M src/mem/coherent_xbar.hh
M src/mem/comm_monitor.hh
M src/mem/external_master.hh
M src/mem/hmc_controller.cc
M src/mem/mem_checker_monitor.hh
M src/mem/mem_delay.cc
M src/mem/mem_delay.hh
M src/mem/noncoherent_xbar.cc
M src/mem/noncoherent_xbar.hh
M src/mem/packet_queue.cc
M src/mem/packet_queue.hh
M src/mem/port_proxy.hh
M src/mem/qos/QoSMemSinkCtrl.py
M src/mem/qport.hh
M src/mem/ruby/network/MessageBuffer.py
M src/mem/ruby/slicc_interface/AbstractController.cc
M src/mem/ruby/slicc_interface/AbstractController.hh
M src/mem/ruby/slicc_interface/Controller.py
M src/mem/ruby/system/Sequencer.py
M src/mem/serial_link.cc
M src/mem/serial_link.hh
M src/mem/snoop_filter.cc
M src/mem/snoop_filter.hh
M src/mem/token_port.cc
M src/mem/token_port.hh
M src/mem/xbar.cc
M src/mem/xbar.hh
41 files changed, 155 insertions(+), 153 deletions(-)
Approvals:
Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/mem/AddrMapper.py b/src/mem/AddrMapper.py
index 1e8dfea..52d7ef8 100644
--- a/src/mem/AddrMapper.py
+++ b/src/mem/AddrMapper.py
@@ -48,8 +48,8 @@
abstract = True
# one port in each direction
- master = MasterPort("Master port")
- slave = SlavePort("Slave port")
+ master = RequestPort("Master port")
+ slave = ResponsePort("Slave port")
# Range address mapper that maps a set of original ranges to a set of
diff --git a/src/mem/Bridge.py b/src/mem/Bridge.py
index 95caa0c..a89e7f9 100644
--- a/src/mem/Bridge.py
+++ b/src/mem/Bridge.py
@@ -42,8 +42,8 @@
class Bridge(ClockedObject):
type = 'Bridge'
cxx_header = "mem/bridge.hh"
- slave = SlavePort('Slave port')
- master = MasterPort('Master port')
+ slave = ResponsePort('Slave port')
+ master = RequestPort('Master port')
req_size = Param.Unsigned(16, "The number of requests to buffer")
resp_size = Param.Unsigned(16, "The number of responses to buffer")
delay = Param.Latency('0ns', "The latency of this bridge")
diff --git a/src/mem/CommMonitor.py b/src/mem/CommMonitor.py
index b1229c7..0fd884d 100644
--- a/src/mem/CommMonitor.py
+++ b/src/mem/CommMonitor.py
@@ -47,8 +47,8 @@
system = Param.System(Parent.any, "System that the monitor belongs
to.")
# one port in each direction
- master = MasterPort("Master port")
- slave = SlavePort("Slave port")
+ master = RequestPort("Master port")
+ slave = ResponsePort("Slave port")
# control the sample period window length of this monitor
sample_period = Param.Clock("1ms", "Sample period for histograms")
diff --git a/src/mem/ExternalMaster.py b/src/mem/ExternalMaster.py
index bcc3836..6d8b5df 100644
--- a/src/mem/ExternalMaster.py
+++ b/src/mem/ExternalMaster.py
@@ -41,7 +41,7 @@
type = 'ExternalMaster'
cxx_header = "mem/external_master.hh"
- port = MasterPort("Master port")
+ port = RequestPort("Master port")
port_type = Param.String('stub', 'Registered external port handler'
' to pass this port to in instantiation')
diff --git a/src/mem/MemChecker.py b/src/mem/MemChecker.py
index 0671962..714ea79 100644
--- a/src/mem/MemChecker.py
+++ b/src/mem/MemChecker.py
@@ -46,10 +46,10 @@
cxx_header = "mem/mem_checker_monitor.hh"
# one port in each direction
- master = MasterPort("Master port")
- slave = SlavePort("Slave port")
- cpu_side = SlavePort("Alias for slave")
- mem_side = MasterPort("Alias for master")
+ master = RequestPort("Master port")
+ slave = ResponsePort("Slave port")
+ cpu_side = ResponsePort("Alias for slave")
+ mem_side = RequestPort("Alias for master")
warn_only = Param.Bool(False, "Warn about violations only")
memchecker = Param.MemChecker("Instance shared with other monitors")
diff --git a/src/mem/MemDelay.py b/src/mem/MemDelay.py
index fdc0350..7ffb608 100644
--- a/src/mem/MemDelay.py
+++ b/src/mem/MemDelay.py
@@ -41,8 +41,8 @@
cxx_header = 'mem/mem_delay.hh'
abstract = True
- master = MasterPort("Master port")
- slave = SlavePort("Slave port")
+ master = RequestPort("Master port")
+ slave = ResponsePort("Slave port")
class SimpleMemDelay(MemDelay):
type = 'SimpleMemDelay'
diff --git a/src/mem/SerialLink.py b/src/mem/SerialLink.py
index 254c623..2174bc7 100644
--- a/src/mem/SerialLink.py
+++ b/src/mem/SerialLink.py
@@ -46,8 +46,8 @@
class SerialLink(ClockedObject):
type = 'SerialLink'
cxx_header = "mem/serial_link.hh"
- slave = SlavePort('Slave port')
- master = MasterPort('Master port')
+ slave = ResponsePort('Slave port')
+ master = RequestPort('Master port')
req_size = Param.Unsigned(16, "The number of requests to buffer")
resp_size = Param.Unsigned(16, "The number of responses to buffer")
delay = Param.Latency('0ns', "The latency of this serial_link")
diff --git a/src/mem/XBar.py b/src/mem/XBar.py
index 84aae99..af13587 100644
--- a/src/mem/XBar.py
+++ b/src/mem/XBar.py
@@ -78,7 +78,7 @@
# The default port can be left unconnected, or be used to connect
# a default slave port
- default = MasterPort("Port for connecting an optional default slave")
+ default = RequestPort("Port for connecting an optional default slave")
# The default port can be used unconditionally, or based on
# address range, in which case it may overlap with other
diff --git a/src/mem/addr_mapper.hh b/src/mem/addr_mapper.hh
index 7736b26..5e680a8 100644
--- a/src/mem/addr_mapper.hh
+++ b/src/mem/addr_mapper.hh
@@ -98,13 +98,13 @@
};
- class MapperMasterPort : public MasterPort
+ class MapperMasterPort : public RequestPort
{
public:
MapperMasterPort(const std::string& _name, AddrMapper& _mapper)
- : MasterPort(_name, &_mapper), mapper(_mapper)
+ : RequestPort(_name, &_mapper), mapper(_mapper)
{ }
protected:
@@ -153,13 +153,13 @@
/** Instance of master port, facing the memory side */
MapperMasterPort masterPort;
- class MapperSlavePort : public SlavePort
+ class MapperSlavePort : public ResponsePort
{
public:
MapperSlavePort(const std::string& _name, AddrMapper& _mapper)
- : SlavePort(_name, &_mapper), mapper(_mapper)
+ : ResponsePort(_name, &_mapper), mapper(_mapper)
{ }
protected:
diff --git a/src/mem/bridge.cc b/src/mem/bridge.cc
index fea5a4b..3cf61f5 100644
--- a/src/mem/bridge.cc
+++ b/src/mem/bridge.cc
@@ -55,7 +55,7 @@
BridgeMasterPort& _masterPort,
Cycles _delay, int _resp_limit,
std::vector<AddrRange> _ranges)
- : SlavePort(_name, &_bridge), bridge(_bridge), masterPort(_masterPort),
+ : ResponsePort(_name, &_bridge), bridge(_bridge),
masterPort(_masterPort),
delay(_delay), ranges(_ranges.begin(), _ranges.end()),
outstandingResponses(0), retryReq(false),
respQueueLimit(_resp_limit),
sendEvent([this]{ trySendTiming(); }, _name)
@@ -66,7 +66,7 @@
Bridge& _bridge,
BridgeSlavePort& _slavePort,
Cycles _delay, int _req_limit)
- : MasterPort(_name, &_bridge), bridge(_bridge), slavePort(_slavePort),
+ : RequestPort(_name, &_bridge), bridge(_bridge), slavePort(_slavePort),
delay(_delay), reqQueueLimit(_req_limit),
sendEvent([this]{ trySendTiming(); }, _name)
{
diff --git a/src/mem/bridge.hh b/src/mem/bridge.hh
index de4cb8d..dca863d 100644
--- a/src/mem/bridge.hh
+++ b/src/mem/bridge.hh
@@ -96,7 +96,7 @@
* is responsible for. The slave port also has a buffer for the
* responses not yet sent.
*/
- class BridgeSlavePort : public SlavePort
+ class BridgeSlavePort : public ResponsePort
{
private:
@@ -216,7 +216,7 @@
* responses. The master port has a buffer for the requests not
* yet sent.
*/
- class BridgeMasterPort : public MasterPort
+ class BridgeMasterPort : public RequestPort
{
private:
diff --git a/src/mem/cache/Cache.py b/src/mem/cache/Cache.py
index 4f4e445..9b20b65 100644
--- a/src/mem/cache/Cache.py
+++ b/src/mem/cache/Cache.py
@@ -107,8 +107,8 @@
sequential_access = Param.Bool(False,
"Whether to access tags and data sequentially")
- cpu_side = SlavePort("Upstream port closer to the CPU and/or device")
- mem_side = MasterPort("Downstream port closer to memory")
+ cpu_side = ResponsePort("Upstream port closer to the CPU and/or
device")
+ mem_side = RequestPort("Downstream port closer to memory")
addr_ranges = VectorParam.AddrRange([AllMemory],
"Address range for the CPU-side port (to allow striping)")
diff --git a/src/mem/cache/base.hh b/src/mem/cache/base.hh
index d30de3f..c129661 100644
--- a/src/mem/cache/base.hh
+++ b/src/mem/cache/base.hh
@@ -79,7 +79,7 @@
class Base;
}
class MSHR;
-class MasterPort;
+class RequestPort;
class QueueEntry;
struct BaseCacheParams;
@@ -166,7 +166,7 @@
public:
- CacheReqPacketQueue(BaseCache &cache, MasterPort &port,
+ CacheReqPacketQueue(BaseCache &cache, RequestPort &port,
SnoopRespPacketQueue &snoop_resp_queue,
const std::string &label) :
ReqPacketQueue(cache, port, label), cache(cache),
diff --git a/src/mem/coherent_xbar.cc b/src/mem/coherent_xbar.cc
index 7fb9c34..c5778fb 100644
--- a/src/mem/coherent_xbar.cc
+++ b/src/mem/coherent_xbar.cc
@@ -68,7 +68,7 @@
// are enumerated starting from zero
for (int i = 0; i < p->port_master_connection_count; ++i) {
std::string portName = csprintf("%s.master[%d]", name(), i);
- MasterPort* bp = new CoherentXBarMasterPort(portName, *this, i);
+ RequestPort* bp = new CoherentXBarMasterPort(portName, *this, i);
masterPorts.push_back(bp);
reqLayers.push_back(new ReqLayer(*bp, *this,
csprintf("reqLayer%d", i)));
@@ -81,7 +81,7 @@
if (p->port_default_connection_count) {
defaultPortID = masterPorts.size();
std::string portName = name() + ".default";
- MasterPort* bp = new CoherentXBarMasterPort(portName, *this,
+ RequestPort* bp = new CoherentXBarMasterPort(portName, *this,
defaultPortID);
masterPorts.push_back(bp);
reqLayers.push_back(new ReqLayer(*bp, *this, csprintf("reqLayer%d",
@@ -142,7 +142,7 @@
CoherentXBar::recvTimingReq(PacketPtr pkt, PortID slave_port_id)
{
// determine the source port based on the id
- SlavePort *src_port = slavePorts[slave_port_id];
+ ResponsePort *src_port = slavePorts[slave_port_id];
// remember if the packet is an express snoop
bool is_express_snoop = pkt->isExpressSnoop();
@@ -439,7 +439,7 @@
CoherentXBar::recvTimingResp(PacketPtr pkt, PortID master_port_id)
{
// determine the source port based on the id
- MasterPort *src_port = masterPorts[master_port_id];
+ RequestPort *src_port = masterPorts[master_port_id];
// determine the destination
const auto route_lookup = routeTo.find(pkt->req);
@@ -561,7 +561,7 @@
CoherentXBar::recvTimingSnoopResp(PacketPtr pkt, PortID slave_port_id)
{
// determine the source port based on the id
- SlavePort* src_port = slavePorts[slave_port_id];
+ ResponsePort* src_port = slavePorts[slave_port_id];
// get the destination
const auto route_lookup = routeTo.find(pkt->req);
@@ -589,7 +589,7 @@
}
} else {
// get the master port that mirrors this slave port internally
- MasterPort* snoop_port = snoopRespPorts[slave_port_id];
+ RequestPort* snoop_port = snoopRespPorts[slave_port_id];
assert(dest_port_id < respLayers.size());
if (!respLayers[dest_port_id]->tryTiming(snoop_port)) {
DPRINTF(CoherentXBar, "%s: src %s packet %s BUSY\n", __func__,
diff --git a/src/mem/coherent_xbar.hh b/src/mem/coherent_xbar.hh
index c70f7c1..300fc0c 100644
--- a/src/mem/coherent_xbar.hh
+++ b/src/mem/coherent_xbar.hh
@@ -146,7 +146,7 @@
* instantiated for each of the slave interfaces connecting to the
* crossbar.
*/
- class CoherentXBarMasterPort : public MasterPort
+ class CoherentXBarMasterPort : public RequestPort
{
private:
/** A reference to the crossbar to which this port belongs. */
@@ -156,7 +156,7 @@
CoherentXBarMasterPort(const std::string &_name,
CoherentXBar &_xbar, PortID _id)
- : MasterPort(_name, &_xbar, _id), xbar(_xbar)
+ : RequestPort(_name, &_xbar, _id), xbar(_xbar)
{ }
protected:
@@ -203,7 +203,7 @@
* from a slave port and forwarding it through an outgoing slave
* port. It is effectively a dangling master port.
*/
- class SnoopRespPort : public MasterPort
+ class SnoopRespPort : public RequestPort
{
private:
@@ -217,7 +217,7 @@
* Create a snoop response port that mirrors a given slave port.
*/
SnoopRespPort(QueuedSlavePort& slave_port, CoherentXBar& _xbar) :
- MasterPort(slave_port.name() + ".snoopRespPort", &_xbar),
+ RequestPort(slave_port.name() + ".snoopRespPort", &_xbar),
slavePort(slave_port) { }
/**
diff --git a/src/mem/comm_monitor.hh b/src/mem/comm_monitor.hh
index 309077a..33cf4d8 100644
--- a/src/mem/comm_monitor.hh
+++ b/src/mem/comm_monitor.hh
@@ -117,13 +117,13 @@
* send function of the slave port is called. Besides this, these
* functions can also perform actions for capturing statistics.
*/
- class MonitorMasterPort : public MasterPort
+ class MonitorMasterPort : public RequestPort
{
public:
MonitorMasterPort(const std::string& _name, CommMonitor& _mon)
- : MasterPort(_name, &_mon), mon(_mon)
+ : RequestPort(_name, &_mon), mon(_mon)
{ }
protected:
@@ -183,13 +183,13 @@
* send function of the master port is called. Besides this, these
* functions can also perform actions for capturing statistics.
*/
- class MonitorSlavePort : public SlavePort
+ class MonitorSlavePort : public ResponsePort
{
public:
MonitorSlavePort(const std::string& _name, CommMonitor& _mon)
- : SlavePort(_name, &_mon), mon(_mon)
+ : ResponsePort(_name, &_mon), mon(_mon)
{ }
protected:
diff --git a/src/mem/external_master.hh b/src/mem/external_master.hh
index 1988c9b..d7aec11 100644
--- a/src/mem/external_master.hh
+++ b/src/mem/external_master.hh
@@ -48,9 +48,9 @@
* port which is to be bound to. A port handler will usually construct a
* bridge object in the external system to accomodate the port-to-port
* mapping but this bridge is not exposed to gem5 other than be the
- * presentation of the MasterPort which can be bound.
+ * presentation of the RequestPort which can be bound.
*
- * The external port must provide a gem5 MasterPort interface.
+ * The external port must provide a gem5 RequestPort interface.
*/
#ifndef __MEM_EXTERNAL_MASTER_HH__
@@ -64,7 +64,7 @@
{
public:
/** Derive from this class to create an external port interface */
- class ExternalPort : public MasterPort
+ class ExternalPort : public RequestPort
{
protected:
ExternalMaster &owner;
@@ -72,7 +72,7 @@
public:
ExternalPort(const std::string &name_,
ExternalMaster &owner_) :
- MasterPort(name_, &owner_), owner(owner_)
+ RequestPort(name_, &owner_), owner(owner_)
{ }
~ExternalPort() { }
@@ -83,7 +83,7 @@
/* Handlers are specific to *types* of port not specific port
* instantiations. A handler will typically build a bridge to the
- * external port from gem5 and provide gem5 with a MasterPort that can
be
+ * external port from gem5 and provide gem5 with a RequestPort that
can be
* bound to for each call to Handler::getExternalPort.*/
class Handler
{
diff --git a/src/mem/hmc_controller.cc b/src/mem/hmc_controller.cc
index b706098..e7b3f6a 100644
--- a/src/mem/hmc_controller.cc
+++ b/src/mem/hmc_controller.cc
@@ -43,7 +43,7 @@
bool HMCController::recvTimingReq(PacketPtr pkt, PortID slave_port_id)
{
// determine the source port based on the id
- SlavePort *src_port = slavePorts[slave_port_id];
+ ResponsePort *src_port = slavePorts[slave_port_id];
// we should never see express snoops on a non-coherent component
assert(!pkt->isExpressSnoop());
diff --git a/src/mem/mem_checker_monitor.hh b/src/mem/mem_checker_monitor.hh
index 2bef3e5..c2fb80d 100644
--- a/src/mem/mem_checker_monitor.hh
+++ b/src/mem/mem_checker_monitor.hh
@@ -88,13 +88,13 @@
* send function of the slave port is called. Besides this, these
* functions can also perform actions for capturing statistics.
*/
- class MonitorMasterPort : public MasterPort
+ class MonitorMasterPort : public RequestPort
{
public:
MonitorMasterPort(const std::string& _name, MemCheckerMonitor&
_mon)
- : MasterPort(_name, &_mon), mon(_mon)
+ : RequestPort(_name, &_mon), mon(_mon)
{ }
protected:
@@ -149,13 +149,13 @@
* send function of the master port is called. Besides this, these
* functions can also perform actions for capturing statistics.
*/
- class MonitorSlavePort : public SlavePort
+ class MonitorSlavePort : public ResponsePort
{
public:
MonitorSlavePort(const std::string& _name, MemCheckerMonitor& _mon)
- : SlavePort(_name, &_mon), mon(_mon)
+ : ResponsePort(_name, &_mon), mon(_mon)
{ }
protected:
diff --git a/src/mem/mem_delay.cc b/src/mem/mem_delay.cc
index 9adc072..9b4e7b6 100644
--- a/src/mem/mem_delay.cc
+++ b/src/mem/mem_delay.cc
@@ -77,7 +77,7 @@
masterPort.trySatisfyFunctional(pkt);
}
-MemDelay::MasterPort::MasterPort(const std::string &_name, MemDelay
&_parent)
+MemDelay::RequestPort::RequestPort(const std::string &_name, MemDelay
&_parent)
: QueuedMasterPort(_name, &_parent,
_parent.reqQueue, _parent.snoopRespQueue),
parent(_parent)
@@ -85,7 +85,7 @@
}
bool
-MemDelay::MasterPort::recvTimingResp(PacketPtr pkt)
+MemDelay::RequestPort::recvTimingResp(PacketPtr pkt)
{
// technically the packet only reaches us after the header delay,
// and typically we also need to deserialise any payload
@@ -100,7 +100,7 @@
}
void
-MemDelay::MasterPort::recvFunctionalSnoop(PacketPtr pkt)
+MemDelay::RequestPort::recvFunctionalSnoop(PacketPtr pkt)
{
if (parent.trySatisfyFunctional(pkt)) {
pkt->makeResponse();
@@ -110,7 +110,7 @@
}
Tick
-MemDelay::MasterPort::recvAtomicSnoop(PacketPtr pkt)
+MemDelay::RequestPort::recvAtomicSnoop(PacketPtr pkt)
{
const Tick delay = parent.delaySnoopResp(pkt);
@@ -118,20 +118,21 @@
}
void
-MemDelay::MasterPort::recvTimingSnoopReq(PacketPtr pkt)
+MemDelay::RequestPort::recvTimingSnoopReq(PacketPtr pkt)
{
parent.slavePort.sendTimingSnoopReq(pkt);
}
-MemDelay::SlavePort::SlavePort(const std::string &_name, MemDelay &_parent)
+MemDelay::ResponsePort::
+ResponsePort(const std::string &_name, MemDelay &_parent)
: QueuedSlavePort(_name, &_parent, _parent.respQueue),
parent(_parent)
{
}
Tick
-MemDelay::SlavePort::recvAtomic(PacketPtr pkt)
+MemDelay::ResponsePort::recvAtomic(PacketPtr pkt)
{
const Tick delay = parent.delayReq(pkt) + parent.delayResp(pkt);
@@ -139,7 +140,7 @@
}
bool
-MemDelay::SlavePort::recvTimingReq(PacketPtr pkt)
+MemDelay::ResponsePort::recvTimingReq(PacketPtr pkt)
{
// technically the packet only reaches us after the header
// delay, and typically we also need to deserialise any
@@ -155,7 +156,7 @@
}
void
-MemDelay::SlavePort::recvFunctional(PacketPtr pkt)
+MemDelay::ResponsePort::recvFunctional(PacketPtr pkt)
{
if (parent.trySatisfyFunctional(pkt)) {
pkt->makeResponse();
@@ -165,7 +166,7 @@
}
bool
-MemDelay::SlavePort::recvTimingSnoopResp(PacketPtr pkt)
+MemDelay::ResponsePort::recvTimingSnoopResp(PacketPtr pkt)
{
const Tick when = curTick() + parent.delaySnoopResp(pkt);
diff --git a/src/mem/mem_delay.hh b/src/mem/mem_delay.hh
index d2125ae..d337b3d 100644
--- a/src/mem/mem_delay.hh
+++ b/src/mem/mem_delay.hh
@@ -71,10 +71,10 @@
Port &getPort(const std::string &if_name,
PortID idx=InvalidPortID) override;
- class MasterPort : public QueuedMasterPort
+ class RequestPort : public QueuedMasterPort
{
public:
- MasterPort(const std::string &_name, MemDelay &_parent);
+ RequestPort(const std::string &_name, MemDelay &_parent);
protected:
bool recvTimingResp(PacketPtr pkt) override;
@@ -97,10 +97,10 @@
MemDelay& parent;
};
- class SlavePort : public QueuedSlavePort
+ class ResponsePort : public QueuedSlavePort
{
public:
- SlavePort(const std::string &_name, MemDelay &_parent);
+ ResponsePort(const std::string &_name, MemDelay &_parent);
protected:
Tick recvAtomic(PacketPtr pkt) override;
@@ -122,8 +122,8 @@
bool trySatisfyFunctional(PacketPtr pkt);
- MasterPort masterPort;
- SlavePort slavePort;
+ RequestPort masterPort;
+ ResponsePort slavePort;
ReqPacketQueue reqQueue;
RespPacketQueue respQueue;
diff --git a/src/mem/noncoherent_xbar.cc b/src/mem/noncoherent_xbar.cc
index 7f8a05b..47be023 100644
--- a/src/mem/noncoherent_xbar.cc
+++ b/src/mem/noncoherent_xbar.cc
@@ -58,7 +58,7 @@
// are enumerated starting from zero
for (int i = 0; i < p->port_master_connection_count; ++i) {
std::string portName = csprintf("%s.master[%d]", name(), i);
- MasterPort* bp = new NoncoherentXBarMasterPort(portName, *this, i);
+ RequestPort* bp = new NoncoherentXBarMasterPort(portName, *this,
i);
masterPorts.push_back(bp);
reqLayers.push_back(new ReqLayer(*bp, *this,
csprintf("reqLayer%d", i)));
@@ -69,7 +69,7 @@
if (p->port_default_connection_count) {
defaultPortID = masterPorts.size();
std::string portName = name() + ".default";
- MasterPort* bp = new NoncoherentXBarMasterPort(portName, *this,
+ RequestPort* bp = new NoncoherentXBarMasterPort(portName, *this,
defaultPortID);
masterPorts.push_back(bp);
reqLayers.push_back(new ReqLayer(*bp, *this, csprintf("reqLayer%d",
@@ -98,7 +98,7 @@
NoncoherentXBar::recvTimingReq(PacketPtr pkt, PortID slave_port_id)
{
// determine the source port based on the id
- SlavePort *src_port = slavePorts[slave_port_id];
+ ResponsePort *src_port = slavePorts[slave_port_id];
// we should never see express snoops on a non-coherent crossbar
assert(!pkt->isExpressSnoop());
@@ -176,7 +176,7 @@
NoncoherentXBar::recvTimingResp(PacketPtr pkt, PortID master_port_id)
{
// determine the source port based on the id
- MasterPort *src_port = masterPorts[master_port_id];
+ RequestPort *src_port = masterPorts[master_port_id];
// determine the destination
const auto route_lookup = routeTo.find(pkt->req);
diff --git a/src/mem/noncoherent_xbar.hh b/src/mem/noncoherent_xbar.hh
index 86658d0..1d3541c 100644
--- a/src/mem/noncoherent_xbar.hh
+++ b/src/mem/noncoherent_xbar.hh
@@ -135,7 +135,7 @@
* instantiated for each of the slave ports connecting to the
* crossbar.
*/
- class NoncoherentXBarMasterPort : public MasterPort
+ class NoncoherentXBarMasterPort : public RequestPort
{
private:
@@ -146,7 +146,7 @@
NoncoherentXBarMasterPort(const std::string &_name,
NoncoherentXBar &_xbar, PortID _id)
- : MasterPort(_name, &_xbar, _id), xbar(_xbar)
+ : RequestPort(_name, &_xbar, _id), xbar(_xbar)
{ }
protected:
diff --git a/src/mem/packet_queue.cc b/src/mem/packet_queue.cc
index acf29dd..dab133c 100644
--- a/src/mem/packet_queue.cc
+++ b/src/mem/packet_queue.cc
@@ -232,7 +232,7 @@
}
}
-ReqPacketQueue::ReqPacketQueue(EventManager& _em, MasterPort& _masterPort,
+ReqPacketQueue::ReqPacketQueue(EventManager& _em, RequestPort& _masterPort,
const std::string _label)
: PacketQueue(_em, _label, name(_masterPort, _label)),
masterPort(_masterPort)
@@ -246,7 +246,7 @@
}
SnoopRespPacketQueue::SnoopRespPacketQueue(EventManager& _em,
- MasterPort& _masterPort,
+ RequestPort& _masterPort,
bool force_order,
const std::string _label)
: PacketQueue(_em, _label, name(_masterPort, _label), force_order),
@@ -260,7 +260,7 @@
return masterPort.sendTimingSnoopResp(pkt);
}
-RespPacketQueue::RespPacketQueue(EventManager& _em, SlavePort& _slavePort,
+RespPacketQueue::RespPacketQueue(EventManager& _em, ResponsePort&
_slavePort,
bool force_order,
const std::string _label)
: PacketQueue(_em, _label, name(_slavePort, _label), force_order),
diff --git a/src/mem/packet_queue.hh b/src/mem/packet_queue.hh
index a50c858..1fc92a2 100644
--- a/src/mem/packet_queue.hh
+++ b/src/mem/packet_queue.hh
@@ -224,11 +224,11 @@
protected:
- MasterPort& masterPort;
+ RequestPort& masterPort;
// Static definition so it can be called when constructing the parent
// without us being completely initialized.
- static const std::string name(const MasterPort& masterPort,
+ static const std::string name(const RequestPort& masterPort,
const std::string& label)
{ return masterPort.name() + "-" + label; }
@@ -243,7 +243,7 @@
* @param _masterPort Master port used to send the packets
* @param _label Label to push on the label stack for print request
packets
*/
- ReqPacketQueue(EventManager& _em, MasterPort& _masterPort,
+ ReqPacketQueue(EventManager& _em, RequestPort& _masterPort,
const std::string _label = "ReqPacketQueue");
virtual ~ReqPacketQueue() { }
@@ -260,11 +260,11 @@
protected:
- MasterPort& masterPort;
+ RequestPort& masterPort;
// Static definition so it can be called when constructing the parent
// without us being completely initialized.
- static const std::string name(const MasterPort& masterPort,
+ static const std::string name(const RequestPort& masterPort,
const std::string& label)
{ return masterPort.name() + "-" + label; }
@@ -280,7 +280,7 @@
* @param force_order Force insertion order for packets with same
address
* @param _label Label to push on the label stack for print request
packets
*/
- SnoopRespPacketQueue(EventManager& _em, MasterPort& _masterPort,
+ SnoopRespPacketQueue(EventManager& _em, RequestPort& _masterPort,
bool force_order = false,
const std::string _label
= "SnoopRespPacketQueue");
@@ -298,11 +298,11 @@
protected:
- SlavePort& slavePort;
+ ResponsePort& slavePort;
// Static definition so it can be called when constructing the parent
// without us being completely initialized.
- static const std::string name(const SlavePort& slavePort,
+ static const std::string name(const ResponsePort& slavePort,
const std::string& label)
{ return slavePort.name() + "-" + label; }
@@ -318,7 +318,7 @@
* @param force_order Force insertion order for packets with same
address
* @param _label Label to push on the label stack for print request
packets
*/
- RespPacketQueue(EventManager& _em, SlavePort& _slavePort,
+ RespPacketQueue(EventManager& _em, ResponsePort& _slavePort,
bool force_order = false,
const std::string _label = "RespPacketQueue");
diff --git a/src/mem/port_proxy.hh b/src/mem/port_proxy.hh
index 88a150b..9f3945b 100644
--- a/src/mem/port_proxy.hh
+++ b/src/mem/port_proxy.hh
@@ -100,7 +100,7 @@
PortProxy(SendFunctionalFunc func, unsigned int cacheLineSize) :
sendFunctional(func), _cacheLineSize(cacheLineSize)
{}
- PortProxy(const MasterPort &port, unsigned int cacheLineSize) :
+ PortProxy(const RequestPort &port, unsigned int cacheLineSize) :
sendFunctional([&port](PacketPtr pkt)->void {
port.sendFunctional(pkt);
}), _cacheLineSize(cacheLineSize)
diff --git a/src/mem/qos/QoSMemSinkCtrl.py b/src/mem/qos/QoSMemSinkCtrl.py
index 572cad5..6c4f263 100644
--- a/src/mem/qos/QoSMemSinkCtrl.py
+++ b/src/mem/qos/QoSMemSinkCtrl.py
@@ -42,7 +42,7 @@
type = 'QoSMemSinkCtrl'
cxx_header = "mem/qos/mem_sink.hh"
cxx_class = "QoS::MemSinkCtrl"
- port = SlavePort("Slave ports")
+ port = ResponsePort("Response ports")
# the basic configuration of the controller architecture, note
# that each entry corresponds to a burst for the specific DRAM
diff --git a/src/mem/qport.hh b/src/mem/qport.hh
index 7651e2c..97a2065 100644
--- a/src/mem/qport.hh
+++ b/src/mem/qport.hh
@@ -55,7 +55,7 @@
* queue is a parameter to allow tailoring of the queue implementation
* (used in the cache).
*/
-class QueuedSlavePort : public SlavePort
+class QueuedSlavePort : public ResponsePort
{
protected:
@@ -76,7 +76,7 @@
*/
QueuedSlavePort(const std::string& name, SimObject* owner,
RespPacketQueue &resp_queue, PortID id =
InvalidPortID) :
- SlavePort(name, owner, id), respQueue(resp_queue)
+ ResponsePort(name, owner, id), respQueue(resp_queue)
{ }
virtual ~QueuedSlavePort() { }
@@ -103,7 +103,7 @@
* independent, and so each queue manages its own flow control
* (retries).
*/
-class QueuedMasterPort : public MasterPort
+class QueuedMasterPort : public RequestPort
{
protected:
@@ -131,7 +131,7 @@
ReqPacketQueue &req_queue,
SnoopRespPacketQueue &snoop_resp_queue,
PortID id = InvalidPortID) :
- MasterPort(name, owner, id), reqQueue(req_queue),
+ RequestPort(name, owner, id), reqQueue(req_queue),
snoopRespQueue(snoop_resp_queue)
{ }
diff --git a/src/mem/ruby/network/MessageBuffer.py
b/src/mem/ruby/network/MessageBuffer.py
index 689ec62..c796960 100644
--- a/src/mem/ruby/network/MessageBuffer.py
+++ b/src/mem/ruby/network/MessageBuffer.py
@@ -40,5 +40,5 @@
random delays if RubySystem \
randomization flag is True)")
- master = MasterPort("Master port to MessageBuffer receiver")
- slave = SlavePort("Slave port from MessageBuffer sender")
+ master = RequestPort("Master port to MessageBuffer receiver")
+ slave = ResponsePort("Slave port from MessageBuffer sender")
diff --git a/src/mem/ruby/slicc_interface/AbstractController.cc
b/src/mem/ruby/slicc_interface/AbstractController.cc
index 599a54b..dd3a9e7 100644
--- a/src/mem/ruby/slicc_interface/AbstractController.cc
+++ b/src/mem/ruby/slicc_interface/AbstractController.cc
@@ -373,6 +373,6 @@
AbstractController::MemoryPort::MemoryPort(const std::string &_name,
AbstractController *_controller,
PortID id)
- : MasterPort(_name, _controller, id), controller(_controller)
+ : RequestPort(_name, _controller, id), controller(_controller)
{
}
diff --git a/src/mem/ruby/slicc_interface/AbstractController.hh
b/src/mem/ruby/slicc_interface/AbstractController.hh
index 4820e5c..daa52da 100644
--- a/src/mem/ruby/slicc_interface/AbstractController.hh
+++ b/src/mem/ruby/slicc_interface/AbstractController.hh
@@ -218,7 +218,7 @@
* Port that forwards requests and receives responses from the
* memory controller.
*/
- class MemoryPort : public MasterPort
+ class MemoryPort : public RequestPort
{
private:
// Controller that operates this port.
diff --git a/src/mem/ruby/slicc_interface/Controller.py
b/src/mem/ruby/slicc_interface/Controller.py
index ae4263c..2c6c655 100644
--- a/src/mem/ruby/slicc_interface/Controller.py
+++ b/src/mem/ruby/slicc_interface/Controller.py
@@ -66,5 +66,5 @@
Param.Cycles(1, "Default latency for requests added to the " \
"mandatory queue on top-level controllers")
- memory = MasterPort("Port for attaching a memory controller")
+ memory = RequestPort("Port for attaching a memory controller")
system = Param.System(Parent.any, "system object parameter")
diff --git a/src/mem/ruby/system/Sequencer.py
b/src/mem/ruby/system/Sequencer.py
index 781f77c..f97224d 100644
--- a/src/mem/ruby/system/Sequencer.py
+++ b/src/mem/ruby/system/Sequencer.py
@@ -36,10 +36,10 @@
slave = VectorSlavePort("CPU slave port")
master = VectorMasterPort("CPU master port")
- pio_master_port = MasterPort("Ruby mem master port")
- mem_master_port = MasterPort("Ruby mem master port")
- pio_slave_port = SlavePort("Ruby pio slave port")
- mem_slave_port = SlavePort("Ruby memory port")
+ pio_master_port = RequestPort("Ruby mem master port")
+ mem_master_port = RequestPort("Ruby mem master port")
+ pio_slave_port = ResponsePort("Ruby pio slave port")
+ mem_slave_port = ResponsePort("Ruby memory port")
using_ruby_tester = Param.Bool(False, "")
no_retry_on_stall = Param.Bool(False, "")
diff --git a/src/mem/serial_link.cc b/src/mem/serial_link.cc
index ca73ffd..d05328e 100644
--- a/src/mem/serial_link.cc
+++ b/src/mem/serial_link.cc
@@ -57,7 +57,7 @@
Cycles _delay, int _resp_limit,
const std::vector<AddrRange>&
_ranges)
- : SlavePort(_name, &_serial_link), serial_link(_serial_link),
+ : ResponsePort(_name, &_serial_link), serial_link(_serial_link),
masterPort(_masterPort), delay(_delay),
ranges(_ranges.begin(), _ranges.end()),
outstandingResponses(0), retryReq(false),
@@ -70,7 +70,7 @@
_name, SerialLink& _serial_link,
SerialLinkSlavePort& _slavePort,
Cycles _delay, int _req_limit)
- : MasterPort(_name, &_serial_link), serial_link(_serial_link),
+ : RequestPort(_name, &_serial_link), serial_link(_serial_link),
slavePort(_slavePort), delay(_delay), reqQueueLimit(_req_limit),
sendEvent([this]{ trySendTiming(); }, _name)
{
diff --git a/src/mem/serial_link.hh b/src/mem/serial_link.hh
index 4183004..7f047ef 100644
--- a/src/mem/serial_link.hh
+++ b/src/mem/serial_link.hh
@@ -91,7 +91,7 @@
* is responsible for. The slave port also has a buffer for the
* responses not yet sent.
*/
- class SerialLinkSlavePort : public SlavePort
+ class SerialLinkSlavePort : public ResponsePort
{
private:
@@ -207,7 +207,7 @@
* responses. The master port has a buffer for the requests not
* yet sent.
*/
- class SerialLinkMasterPort : public MasterPort
+ class SerialLinkMasterPort : public RequestPort
{
private:
diff --git a/src/mem/snoop_filter.cc b/src/mem/snoop_filter.cc
index 26a2f70..d9ac521 100644
--- a/src/mem/snoop_filter.cc
+++ b/src/mem/snoop_filter.cc
@@ -61,7 +61,7 @@
}
std::pair<SnoopFilter::SnoopList, Cycles>
-SnoopFilter::lookupRequest(const Packet* cpkt, const SlavePort& slave_port)
+SnoopFilter::lookupRequest(const Packet* cpkt, const ResponsePort&
slave_port)
{
DPRINTF(SnoopFilter, "%s: src %s packet %s\n", __func__,
slave_port.name(), cpkt->print());
@@ -240,8 +240,8 @@
void
SnoopFilter::updateSnoopResponse(const Packet* cpkt,
- const SlavePort& rsp_port,
- const SlavePort& req_port)
+ const ResponsePort& rsp_port,
+ const ResponsePort& req_port)
{
DPRINTF(SnoopFilter, "%s: rsp %s req %s packet %s\n",
__func__, rsp_port.name(), req_port.name(), cpkt->print());
@@ -297,7 +297,7 @@
void
SnoopFilter::updateSnoopForward(const Packet* cpkt,
- const SlavePort& rsp_port, const MasterPort& req_port)
+ const ResponsePort& rsp_port, const RequestPort& req_port)
{
DPRINTF(SnoopFilter, "%s: rsp %s req %s packet %s\n",
__func__, rsp_port.name(), req_port.name(), cpkt->print());
@@ -333,7 +333,7 @@
}
void
-SnoopFilter::updateResponse(const Packet* cpkt, const SlavePort&
slave_port)
+SnoopFilter::updateResponse(const Packet* cpkt, const ResponsePort&
slave_port)
{
DPRINTF(SnoopFilter, "%s: src %s packet %s\n",
__func__, slave_port.name(), cpkt->print());
diff --git a/src/mem/snoop_filter.hh b/src/mem/snoop_filter.hh
index f45bfeb..62d764e 100644
--- a/src/mem/snoop_filter.hh
+++ b/src/mem/snoop_filter.hh
@@ -135,7 +135,7 @@
* @return Pair of a vector of snoop target ports and lookup latency.
*/
std::pair<SnoopList, Cycles> lookupRequest(const Packet* cpkt,
- const SlavePort&
slave_port);
+ const ResponsePort&
slave_port);
/**
* For an un-successful request, revert the change to the snoop
@@ -154,8 +154,8 @@
* additional steering thanks to the snoop filter.
*
* @param cpkt Pointer to const Packet containing the snoop.
- * @return Pair with a vector of SlavePorts that need snooping and a
lookup
- * latency.
+ * @return Pair with a vector of ResponsePorts that need snooping and a
+ * lookup latency.
*/
std::pair<SnoopList, Cycles> lookupSnoop(const Packet* cpkt);
@@ -165,12 +165,12 @@
* will update the corresponding state in the filter.
*
* @param cpkt Pointer to const Packet holding the snoop response.
- * @param rsp_port SlavePort that sends the response.
- * @param req_port SlavePort that made the original request and is the
+ * @param rsp_port ResponsePort that sends the response.
+ * @param req_port ResponsePort that made the original request and is
the
* destination of the snoop response.
*/
- void updateSnoopResponse(const Packet *cpkt, const SlavePort& rsp_port,
- const SlavePort& req_port);
+ void updateSnoopResponse(const Packet *cpkt, const ResponsePort&
rsp_port,
+ const ResponsePort& req_port);
/**
* Pass snoop responses that travel downward through the snoop
@@ -178,11 +178,11 @@
* additional routing happens.
*
* @param cpkt Pointer to const Packet holding the snoop response.
- * @param rsp_port SlavePort that sends the response.
- * @param req_port MasterPort through which the response is forwarded.
+ * @param rsp_port ResponsePort that sends the response.
+ * @param req_port RequestPort through which the response is forwarded.
*/
- void updateSnoopForward(const Packet *cpkt, const SlavePort& rsp_port,
- const MasterPort& req_port);
+ void updateSnoopForward(const Packet *cpkt, const ResponsePort&
rsp_port,
+ const RequestPort& req_port);
/**
* Update the snoop filter with a response from below (outer /
@@ -190,10 +190,10 @@
* the snoop filter.
*
* @param cpkt Pointer to const Packet holding the snoop
response.
- * @param slave_port SlavePort that made the original request and
+ * @param slave_port ResponsePort that made the original request and
* is the target of this response.
*/
- void updateResponse(const Packet *cpkt, const SlavePort& slave_port);
+ void updateResponse(const Packet *cpkt, const ResponsePort&
slave_port);
virtual void regStats();
@@ -206,7 +206,7 @@
typedef std::bitset<SNOOP_MASK_SIZE> SnoopMask;
/**
- * Per cache line item tracking a bitmask of SlavePorts who have an
+ * Per cache line item tracking a bitmask of ResponsePorts who have an
* outstanding request to this line (requested) or already share a
* cache line with this address (holder).
*/
@@ -239,14 +239,14 @@
/**
* Convert a single port to a corresponding, one-hot bitmask
- * @param port SlavePort that should be converted.
+ * @param port ResponsePort that should be converted.
* @return One-hot bitmask corresponding to the port.
*/
- SnoopMask portToMask(const SlavePort& port) const;
+ SnoopMask portToMask(const ResponsePort& port) const;
/**
* Converts a bitmask of ports into the corresponing list of ports
* @param ports SnoopMask of the requested ports
- * @return SnoopList containing all the requested SlavePorts
+ * @return SnoopList containing all the requested ResponsePorts
*/
SnoopList maskToPortList(SnoopMask ports) const;
@@ -320,7 +320,7 @@
};
inline SnoopFilter::SnoopMask
-SnoopFilter::portToMask(const SlavePort& port) const
+SnoopFilter::portToMask(const ResponsePort& port) const
{
assert(port.getId() != InvalidPortID);
// if this is not a snooping port, return a zero mask
diff --git a/src/mem/token_port.cc b/src/mem/token_port.cc
index 46d9116..648d041 100644
--- a/src/mem/token_port.cc
+++ b/src/mem/token_port.cc
@@ -42,7 +42,7 @@
void
TokenMasterPort::bind(Port &peer)
{
- MasterPort::bind(peer);
+ RequestPort::bind(peer);
}
void
@@ -88,10 +88,10 @@
TokenSlavePort::bind(Port& peer)
{
// TokenSlavePort is allowed to bind to either TokenMasterPort or a
- // MasterPort as fallback. If the type is a MasterPort, tokenMasterPort
+ // RequestPort as fallback. If the type is a RequestPort,
tokenMasterPort
// is set to nullptr to indicate tokens should not be exchanged.
auto *token_master_port = dynamic_cast<TokenMasterPort*>(&peer);
- auto *master_port = dynamic_cast<MasterPort*>(&peer);
+ auto *master_port = dynamic_cast<RequestPort*>(&peer);
if (!token_master_port && !master_port) {
fatal("Attempt to bind port %s to unsupported slave port %s.",
name(), peer.name());
@@ -109,7 +109,7 @@
void
TokenSlavePort::unbind()
{
- SlavePort::responderUnbind();
+ ResponsePort::responderUnbind();
tokenMasterPort = nullptr;
}
@@ -121,7 +121,7 @@
"Attempted to retry a response when no retry was queued!\n");
PacketPtr pkt = respQueue.front();
- bool success = SlavePort::sendTimingResp(pkt);
+ bool success = ResponsePort::sendTimingResp(pkt);
if (success) {
respQueue.pop_front();
@@ -131,7 +131,7 @@
bool
TokenSlavePort::sendTimingResp(PacketPtr pkt)
{
- bool success = SlavePort::sendTimingResp(pkt);
+ bool success = ResponsePort::sendTimingResp(pkt);
if (!success) {
respQueue.push_back(pkt);
diff --git a/src/mem/token_port.hh b/src/mem/token_port.hh
index 7112a41..358ee03 100644
--- a/src/mem/token_port.hh
+++ b/src/mem/token_port.hh
@@ -40,7 +40,7 @@
class TokenManager;
class TokenSlavePort;
-class TokenMasterPort : public MasterPort
+class TokenMasterPort : public RequestPort
{
private:
/* Manager to track tokens between this token port pair. */
@@ -49,7 +49,7 @@
public:
TokenMasterPort(const std::string& name, SimObject* owner,
PortID id = InvalidPortID) :
- MasterPort(name, owner, id), tokenManager(nullptr)
+ RequestPort(name, owner, id), tokenManager(nullptr)
{ }
/**
@@ -87,7 +87,7 @@
void setTokenManager(TokenManager *_tokenManager);
};
-class TokenSlavePort : public SlavePort
+class TokenSlavePort : public ResponsePort
{
private:
TokenMasterPort *tokenMasterPort;
@@ -99,7 +99,7 @@
public:
TokenSlavePort(const std::string& name, ClockedObject *owner,
PortID id = InvalidPortID) :
- SlavePort(name, owner, id), tokenMasterPort(nullptr)
+ ResponsePort(name, owner, id), tokenMasterPort(nullptr)
{ }
~TokenSlavePort() { }
diff --git a/src/mem/xbar.cc b/src/mem/xbar.cc
index f0b4ba3..5e2c28c 100644
--- a/src/mem/xbar.cc
+++ b/src/mem/xbar.cc
@@ -592,8 +592,8 @@
/**
* Crossbar layer template instantiations. Could be removed with _impl.hh
- * file, but since there are only two given options (MasterPort and
- * SlavePort) it seems a bit excessive at this point.
+ * file, but since there are only two given options (RequestPort and
+ * ResponsePort) it seems a bit excessive at this point.
*/
-template class BaseXBar::Layer<SlavePort, MasterPort>;
-template class BaseXBar::Layer<MasterPort, SlavePort>;
+template class BaseXBar::Layer<ResponsePort, RequestPort>;
+template class BaseXBar::Layer<RequestPort, ResponsePort>;
diff --git a/src/mem/xbar.hh b/src/mem/xbar.hh
index 086d7f4..535277a 100644
--- a/src/mem/xbar.hh
+++ b/src/mem/xbar.hh
@@ -165,7 +165,7 @@
/**
* Sending the actual retry, in a manner specific to the
- * individual layers. Note that for a MasterPort, there is
+ * individual layers. Note that for a RequestPort, there is
* both a RequestLayer and a SnoopResponseLayer using the same
* port, but using different functions for the flow control.
*/
@@ -231,7 +231,7 @@
};
- class ReqLayer : public Layer<SlavePort, MasterPort>
+ class ReqLayer : public Layer<ResponsePort, RequestPort>
{
public:
/**
@@ -241,19 +241,20 @@
* @param _xbar the crossbar this layer belongs to
* @param _name the layer's name
*/
- ReqLayer(MasterPort& _port, BaseXBar& _xbar, const std::string&
_name) :
+ ReqLayer(RequestPort& _port, BaseXBar& _xbar,
+ const std::string& _name) :
Layer(_port, _xbar, _name)
{}
protected:
void
- sendRetry(SlavePort* retry_port) override
+ sendRetry(ResponsePort* retry_port) override
{
retry_port->sendRetryReq();
}
};
- class RespLayer : public Layer<MasterPort, SlavePort>
+ class RespLayer : public Layer<RequestPort, ResponsePort>
{
public:
/**
@@ -263,20 +264,20 @@
* @param _xbar the crossbar this layer belongs to
* @param _name the layer's name
*/
- RespLayer(SlavePort& _port, BaseXBar& _xbar,
+ RespLayer(ResponsePort& _port, BaseXBar& _xbar,
const std::string& _name) :
Layer(_port, _xbar, _name)
{}
protected:
void
- sendRetry(MasterPort* retry_port) override
+ sendRetry(RequestPort* retry_port) override
{
retry_port->sendRetryResp();
}
};
- class SnoopRespLayer : public Layer<SlavePort, MasterPort>
+ class SnoopRespLayer : public Layer<ResponsePort, RequestPort>
{
public:
/**
@@ -286,7 +287,7 @@
* @param _xbar the crossbar this layer belongs to
* @param _name the layer's name
*/
- SnoopRespLayer(MasterPort& _port, BaseXBar& _xbar,
+ SnoopRespLayer(RequestPort& _port, BaseXBar& _xbar,
const std::string& _name) :
Layer(_port, _xbar, _name)
{}
@@ -294,7 +295,7 @@
protected:
void
- sendRetry(SlavePort* retry_port) override
+ sendRetry(ResponsePort* retry_port) override
{
retry_port->sendRetrySnoopResp();
}
@@ -373,7 +374,7 @@
/** The master and slave ports of the crossbar */
std::vector<QueuedSlavePort*> slavePorts;
- std::vector<MasterPort*> masterPorts;
+ std::vector<RequestPort*> masterPorts;
/** Port that handles requests that don't match any of the
interfaces.*/
PortID defaultPortID;
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/32314
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ib4fc8cad7139d4971e74930295a69e576f6da3cf
Gerrit-Change-Number: 32314
Gerrit-PatchSet: 5
Gerrit-Owner: Shivani Parekh <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Bradford Beckmann <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Matthew Poremba <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerrit-Reviewer: Shivani Parekh <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s