60 #ifndef __MEM_EXTERNAL_MASTER_HH__ 61 #define __MEM_EXTERNAL_MASTER_HH__ 64 #include "params/ExternalMaster.hh" 99 const std::string &port_data) = 0;
133 void init()
override;
139 #endif //__MEM_EXTERNAL_MASTER_HH__ A MasterPort is a specialisation of a BaseMasterPort, which implements the default protocol for the t...
Ports are used to interface objects to each other.
const PortID InvalidPortID
std::string portType
Key to select a port handler.
static void registerHandler(const std::string &handler_name, Handler *handler)
Register a handler which can provide ports with port_type == handler_name.
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Port interface.
const Params * params() const
Derive from this class to create an external port interface.
std::string portName
Name of the bound port.
ExternalMaster(ExternalMasterParams *params)
ExternalPort * externalPort
The peer port for the gem5 port "port".
std::string portData
Handler-specific port configuration.
static std::map< std::string, Handler * > portHandlers
Registered handlers.
ExternalPort(const std::string &name_, ExternalMaster &owner_)
const std::string name() const
Return port name (for DPRINTF).
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
Abstract superclass for simulation objects.