gem5
v20.1.0.0
|
#include <port.hh>
Classes | |
struct | Binding |
struct | Sensitivity |
Public Member Functions | |
::sc_core::sc_port_base * | sc_port_base () |
Port (::sc_core::sc_port_base *port_base, int max) | |
~Port () | |
void | bind (::sc_core::sc_interface *interface) |
void | bind (::sc_core::sc_port_base *port) |
void | sensitive (StaticSensitivityPort *port) |
void | sensitive (StaticSensitivityFinder *finder) |
void | addReset (Reset *reset) |
void | finalize () |
void | regPort () |
int | size () |
int | maxSize () |
Static Public Member Functions | |
static Port * | fromPort (const ::sc_core::sc_port_base *pb) |
Private Member Functions | |
void | finalizePort (StaticSensitivityPort *port) |
void | finalizeFinder (StaticSensitivityFinder *finder) |
void | finalizeReset (Reset *reset) |
void | addInterface (::sc_core::sc_interface *iface) |
void | addInterfaces (::sc_core::sc_port_base *pb) |
::sc_core::sc_interface * | getInterface (int i) |
Private Attributes | |
::sc_core::sc_port_base * | portBase |
bool | finalized |
int | _maxSize |
int | _size |
bool | regPortNeeded |
std::vector< Binding * > | bindings |
std::vector< Sensitivity * > | sensitivities |
std::vector< Reset * > | resets |
|
inline |
Definition at line 128 of file port.hh.
References sc_gem5::allPorts.
|
inline |
Definition at line 135 of file port.hh.
References sc_gem5::allPorts.
|
inlineprivate |
Definition at line 66 of file port.hh.
References sc_core::sc_port_base::_gem5AddInterface(), _size, and portBase.
Referenced by addInterfaces(), bind(), and finalize().
|
inlineprivate |
Definition at line 73 of file port.hh.
References sc_core::sc_port_base::_gem5Interface(), sc_core::sc_port_base::_gem5Port, addInterface(), ArmISA::i, regPortNeeded, and sc_core::sc_port_base::size().
Referenced by finalize().
void Port::addReset | ( | Reset * | reset | ) |
Definition at line 85 of file port.cc.
References finalized, finalizeReset(), Stats::reset(), and resets.
Referenced by sc_gem5::newReset().
|
inline |
Definition at line 138 of file port.hh.
References addInterface(), and bindings.
Referenced by sc_gem5::TlmInitiatorBaseWrapper< BITWIDTH >::bind(), sc_gem5::ScPortWrapper< IF >::bind(), sc_core::sc_port_base::bind(), sc_gem5::TlmTargetBaseWrapper< BITWIDTH >::bind(), sc_gem5::ScInterfaceWrapper< IF >::bind(), and sc_gem5::ScExportWrapper< IF >::bind().
|
inline |
void Port::finalize | ( | ) |
Definition at line 94 of file port.cc.
References sc_core::sc_port_base::_portPolicy(), addInterface(), addInterfaces(), ArmISA::b, bindings, finalized, finalizeFinder(), finalizePort(), finalizeReset(), maxSize(), panic, portBase, MipsISA::r, sc_core::sc_port_base::report_error(), resets, ArmISA::s, sc_core::SC_ALL_BOUND, sc_core::SC_ID_COMPLETE_BINDING_, sc_core::SC_ONE_OR_MORE_BOUND, sc_core::SC_ZERO_OR_MORE_BOUND, sensitivities, size(), and ArmISA::ss.
|
private |
Definition at line 47 of file port.cc.
References sc_gem5::SensitivityEvents::addEvent(), sc_gem5::StaticSensitivityFinder::find(), getInterface(), ArmISA::i, and size().
Referenced by finalize(), and sensitive().
|
private |
Definition at line 40 of file port.cc.
References sc_gem5::SensitivityEvents::addEvent(), sc_core::sc_interface::default_event(), getInterface(), ArmISA::i, and size().
Referenced by finalize(), and sensitive().
|
private |
Definition at line 54 of file port.cc.
References getInterface(), Stats::reset(), and size().
Referenced by addReset(), and finalize().
|
inlinestatic |
Definition at line 121 of file port.hh.
Referenced by sc_gem5::newReset(), sc_gem5::newStaticSensitivityFinder(), and sc_gem5::newStaticSensitivityPort().
|
inlineprivate |
Definition at line 82 of file port.hh.
References sc_core::sc_port_base::_gem5Interface(), ArmISA::i, and portBase.
Referenced by finalizeFinder(), finalizePort(), finalizeReset(), and regPort().
|
inline |
Definition at line 160 of file port.hh.
References _maxSize, and _size.
Referenced by finalize(), and sc_core::sc_port_base::maxSize().
void Port::regPort | ( | ) |
Definition at line 158 of file port.cc.
References sc_core::sc_port_base::_ifTypeName(), getInterface(), ArmISA::i, portBase, sc_core::sc_interface::register_port(), regPortNeeded, and size().
|
inline |
void Port::sensitive | ( | StaticSensitivityFinder * | finder | ) |
Definition at line 76 of file port.cc.
References finalized, finalizeFinder(), and sensitivities.
void Port::sensitive | ( | StaticSensitivityPort * | port | ) |
Definition at line 67 of file port.cc.
References finalized, finalizePort(), and sensitivities.
Referenced by sc_gem5::newStaticSensitivityFinder(), and sc_gem5::newStaticSensitivityPort().
|
inline |
Definition at line 159 of file port.hh.
References _size.
Referenced by finalize(), finalizeFinder(), finalizePort(), finalizeReset(), regPort(), and sc_core::sc_port_base::size().
|
private |
Definition at line 57 of file port.hh.
Referenced by addInterface(), maxSize(), and size().
|
private |
Definition at line 115 of file port.hh.
Referenced by bind(), and finalize().
|
private |
Definition at line 55 of file port.hh.
Referenced by addReset(), finalize(), and sensitive().
|
private |
Definition at line 53 of file port.hh.
Referenced by addInterface(), finalize(), getInterface(), regPort(), and sc_port_base().
|
private |
Definition at line 59 of file port.hh.
Referenced by addInterfaces(), and regPort().
|
private |
Definition at line 117 of file port.hh.
Referenced by addReset(), and finalize().
|
private |
Definition at line 116 of file port.hh.
Referenced by finalize(), and sensitive().