Go to the documentation of this file.
44 #include "debug/ExternalPort.hh"
50 std::map<std::string, ExternalMaster::Handler *>
56 portName(params.
name +
".port"),
57 portType(params.port_type),
58 portData(params.port_data),
59 id(params.
system->getRequestorId(this))
65 if (if_name ==
"port") {
79 fatal(
"%s: Can't find external port type: %s"
93 fatal(
"ExternalMaster %s: externalPort not set!\n",
name());
95 fatal(
"ExternalMaster %s is unconnected!\n",
name());
#define fatal(...)
This implements a cprintf based fatal() function.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
std::string portName
Name of the bound port.
virtual Port & getPort(const std::string &if_name, PortID idx=InvalidPortID)
Get a port with a given name and index.
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Port interface.
std::string portData
Handler-specific port configuration.
static std::map< std::string, Handler * > portHandlers
Registered handlers.
virtual std::string name() const
static void registerHandler(const std::string &handler_name, Handler *handler)
Register a handler which can provide ports with port_type == handler_name.
bool isConnected() const
Is this port currently connected to a peer?
Abstract superclass for simulation objects.
Derive from this class to create an external port interface.
const std::string & name()
ExternalMaster(const ExternalMasterParams ¶ms)
Ports are used to interface objects to each other.
std::string portType
Key to select a port handler.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
ExternalPort * externalPort
The peer port for the gem5 port "port".
Generated on Sun Jul 30 2023 01:56:58 for gem5 by doxygen 1.8.17