60 #ifndef __MEM_EXTERNAL_MASTER__
61 #define __MEM_EXTERNAL_MASTER__
64 #include "params/ExternalMaster.hh"
76 Port(
const std::string &name_,
98 const std::string &port_data) = 0;
138 #endif // __MEM_EXTERNAL_MASTER__
A MasterPort is a specialisation of a BaseMasterPort, which implements the default protocol for the t...
void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
const PortID InvalidPortID
virtual Port * getExternalPort(const std::string &name, ExternalMaster &owner, const std::string &port_data)=0
Create or find an external port which can be bound.
std::string portType
Key to select a port handler.
const Params * params() const
static void registerHandler(const std::string &handler_name, Handler *handler)
Register a handler which can provide ports with port_type == handler_name.
Derive from this class to create an external port interface.
Port(const std::string &name_, ExternalMaster &owner_)
std::string portName
Name of the bound port.
~Port()
Virtual destructor due to inheritance.
Port * externalPort
The peer port for the gem5 port "port".
ExternalMaster(ExternalMasterParams *params)
virtual const std::string name() const
std::string portData
Handler-specific port configuration.
static std::map< std::string, Handler * > portHandlers
Registered handlers.
The MemObject class extends the ClockedObject with accessor functions to get its master and slave por...
A BaseMasterPort is a protocol-agnostic master port, responsible only for the structural connection t...
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
BaseMasterPort & getMasterPort(const std::string &if_name, PortID idx=InvalidPortID)
MasterPort interface.