gem5
|
A BaseSlavePort is a protocol-agnostic slave port, responsible only for the structural connection to a master port. More...
#include <port.hh>
Public Member Functions | |
BaseMasterPort & | getMasterPort () const |
bool | isConnected () const |
Public Member Functions inherited from Port | |
const std::string | name () const |
Return port name (for DPRINTF). More... | |
PortID | getId () const |
Get the port id. More... | |
Protected Member Functions | |
BaseSlavePort (const std::string &name, MemObject *owner, PortID id=InvalidPortID) | |
virtual | ~BaseSlavePort () |
Protected Member Functions inherited from Port | |
Port (const std::string &_name, MemObject &_owner, PortID _id) | |
Abstract base class for ports. More... | |
virtual | ~Port () |
Virtual destructor due to inheritance. More... | |
Protected Attributes | |
BaseMasterPort * | _baseMasterPort |
Protected Attributes inherited from Port | |
const PortID | id |
A numeric identifier to distinguish ports in a vector, and set to InvalidPortID in case this port is not part of a vector. More... | |
MemObject & | owner |
A reference to the MemObject that owns this port. More... | |
A BaseSlavePort is a protocol-agnostic slave port, responsible only for the structural connection to a master port.
|
protected |
BaseMasterPort & BaseSlavePort::getMasterPort | ( | ) | const |
Definition at line 100 of file port.cc.
References _baseMasterPort, Port::name(), and panic.
Referenced by MessageSlavePort::recvAtomic().
bool BaseSlavePort::isConnected | ( | ) | const |
Definition at line 110 of file port.cc.
References _baseMasterPort.
Referenced by CxxConfigManager::bindPort(), AddrMapper::init(), MemCheckerMonitor::init(), CommMonitor::init(), PioDevice::init(), ExternalSlave::init(), SimpleMemory::init(), DRAMSim2::init(), SerialLink::init(), Bridge::init(), BaseCache::init(), and DRAMCtrl::init().
|
protected |
Definition at line 144 of file port.hh.
Referenced by SlavePort::bind(), getMasterPort(), isConnected(), and SlavePort::unbind().