gem5
v20.0.0.3
|
#include <sc_port_wrapper.hh>
Public Types | |
using | ScPort = sc_core::sc_port_b< IF > |
Public Member Functions | |
ScPortWrapper (ScPort &p, const std::string &name, PortID id) | |
ScPort & | 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 | |
ScPort & | 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 45 of file sc_port_wrapper.hh.
using sc_gem5::ScPortWrapper< IF >::ScPort = sc_core::sc_port_b<IF> |
Definition at line 55 of file sc_port_wrapper.hh.
|
inline |
Definition at line 57 of file sc_port_wrapper.hh.
|
inlineoverride |
Definition at line 74 of file sc_port_wrapper.hh.
References sc_core::sc_port_b< IF >::bind(), sc_gem5::Port::bind(), fatal, Port::name(), and sc_gem5::ScPortWrapper< IF >::port_.
|
inline |
Definition at line 62 of file sc_port_wrapper.hh.
References sc_gem5::ScPortWrapper< IF >::port_.
|
inlineoverridevirtual |
Dettach from a peer port.
Reimplemented from Port.
Definition at line 68 of file sc_port_wrapper.hh.
References panic.
|
private |
Definition at line 90 of file sc_port_wrapper.hh.
Referenced by sc_gem5::ScPortWrapper< IF >::bind(), sc_gem5::ScExportWrapper< IF >::bind(), sc_gem5::ScPortWrapper< IF >::port(), and sc_gem5::ScExportWrapper< IF >::port().