60 #ifndef __MEM_EXTERNAL_SLAVE_HH__ 61 #define __MEM_EXTERNAL_SLAVE_HH__ 64 #include "params/ExternalSlave.hh" 101 const std::string &port_data) = 0;
139 void init()
override;
143 #endif //__MEM_EXTERNAL_SLAVE_HH__ ExternalPort(const std::string &name_, ExternalSlave &owner_)
Ports are used to interface objects to each other.
Derive from this class to create an external port interface.
const PortID InvalidPortID
static void registerHandler(const std::string &handler_name, Handler *handler)
Register a handler which can provide ports with port_type == handler_name.
AddrRangeList addrRanges
The Range of addresses supported by the devices on the external side of this port.
std::string portData
Handler-specific port configuration.
std::string portName
Name of the bound port.
A SlavePort is a specialisation of a port.
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
const Params * params() const
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Port interface.
std::string portType
Key to select a port handler.
static std::map< std::string, Handler * > portHandlers
Registered handlers.
ExternalPort * externalPort
The peer port for the gem5 port "port".
ExternalSlave(ExternalSlaveParams *params)
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.
Abstract superclass for simulation objects.
AddrRangeList getAddrRanges() const
Any or all of recv...