gem5
v20.0.0.2
|
#include <sc_port_wrapper.hh>
Public Types | |
using | ScExport = sc_core::sc_export< IF > |
Public Member Functions | |
ScExportWrapper (ScExport &p, const std::string &name, PortID id) | |
ScExport & | port () |
void | unbind () override |
Dettach from a peer port. More... | |
void | bind (::Port &peer) override |
![]() | |
virtual | ~Port () |
Virtual destructor due to inheritance. More... | |
Port & | getPeer () |
Return a reference to this port's peer. More... | |
const std::string | name () const |
Return port name (for DPRINTF). More... | |
PortID | getId () const |
Get the port id. More... | |
virtual void | bind (Port &peer) |
Attach to a peer port. More... | |
bool | isConnected () const |
Is this port currently connected to a peer? More... | |
void | takeOverFrom (Port *old) |
A utility function to make it easier to swap out ports. More... | |
Private Attributes | |
ScExport & | port_ |
Additional Inherited Members | |
![]() | |
Port (const std::string &_name, PortID _id) | |
Abstract base class for ports. More... | |
![]() | |
const PortID | id |
A numeric identifier to distinguish ports in a vector, and set to InvalidPortID in case this port is not part of a vector. More... | |
Port * | _peer |
A pointer to this port's peer. More... | |
bool | _connected |
Whether this port is currently connected to a peer port. More... | |
Definition at line 49 of file sc_port_wrapper.hh.
using sc_gem5::ScExportWrapper< IF >::ScExport = sc_core::sc_export<IF> |
Definition at line 136 of file sc_port_wrapper.hh.
|
inline |
Definition at line 138 of file sc_port_wrapper.hh.
|
inlineoverride |
Definition at line 155 of file sc_port_wrapper.hh.
References sc_core::sc_port_b< IF >::bind(), sc_gem5::Port::bind(), fatal_if, Port::name(), and sc_gem5::ScPortWrapper< IF >::port_.
|
inline |
Definition at line 143 of file sc_port_wrapper.hh.
References sc_gem5::ScPortWrapper< IF >::port_.
|
inlineoverridevirtual |
Dettach from a peer port.
Reimplemented from Port.
Definition at line 149 of file sc_port_wrapper.hh.
References panic.
|
private |
Definition at line 167 of file sc_port_wrapper.hh.