Go to the documentation of this file.
56 #ifndef __MEM_EXTERNAL_MASTER_HH__
57 #define __MEM_EXTERNAL_MASTER_HH__
60 #include "params/ExternalMaster.hh"
95 const std::string &port_data) = 0;
129 void init()
override;
135 #endif //__MEM_EXTERNAL_MASTER_HH__
ExternalMaster(ExternalMasterParams *params)
const PortID InvalidPortID
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Port interface.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
virtual ExternalPort * getExternalPort(const std::string &name, ExternalMaster &owner, const std::string &port_data)=0
Create or find an external port which can be bound.
ExternalPort(const std::string &name_, ExternalMaster &owner_)
std::string portName
Name of the bound port.
std::string portData
Handler-specific port configuration.
std::string portType
Key to select a port handler.
Ports are used to interface objects to each other.
ExternalPort * externalPort
The peer port for the gem5 port "port".
static void registerHandler(const std::string &handler_name, Handler *handler)
Register a handler which can provide ports with port_type == handler_name.
A RequestPort is a specialisation of a Port, which implements the default protocol for the three diff...
const Params * params() const
Derive from this class to create an external port interface.
virtual const std::string name() const
static std::map< std::string, Handler * > portHandlers
Registered handlers.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17