gem5  v20.1.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IntSinkPinBase Class Referenceabstract

#include <intpin.hh>

Inheritance diagram for IntSinkPinBase:
Port IntSinkPin< Device > IntSinkPin< X86ISA::I82094AA > IntSinkPin< X86ISA::I8259 >

Public Member Functions

int number ()
 
bool state ()
 
void bind (Port &peer) override
 Attach to a peer port. More...
 
void unbind () override
 Dettach from a peer port. More...
 
- Public Member Functions inherited from Port
virtual ~Port ()
 Virtual destructor due to inheritance. More...
 
PortgetPeer ()
 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...
 
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...
 

Protected Member Functions

 IntSinkPinBase (const std::string &_name, PortID _id, int num)
 
virtual void raiseOnDevice ()=0
 
virtual void lowerOnDevice ()=0
 
void raise ()
 
void lower ()
 
- Protected Member Functions inherited from Port
void reportUnbound () const
 
 Port (const std::string &_name, PortID _id)
 Abstract base class for ports. More...
 

Protected Attributes

friend IntSourcePinBase
 
IntSourcePinBasesource = nullptr
 
int _number = 0
 
bool _state = false
 
- Protected Attributes inherited from Port
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...
 

Detailed Description

Definition at line 35 of file intpin.hh.

Constructor & Destructor Documentation

◆ IntSinkPinBase()

IntSinkPinBase::IntSinkPinBase ( const std::string &  _name,
PortID  _id,
int  num 
)
inlineprotected

Definition at line 45 of file intpin.hh.

Member Function Documentation

◆ bind()

void IntSinkPinBase::bind ( Port peer)
overridevirtual

Attach to a peer port.

Reimplemented from Port.

Definition at line 33 of file intpin.cc.

References Port::bind(), fatal_if, Port::name(), and source.

◆ lower()

void IntSinkPinBase::lower ( )
inlineprotected

Definition at line 60 of file intpin.hh.

References _state, and lowerOnDevice().

Referenced by IntSourcePinBase::lower().

◆ lowerOnDevice()

virtual void IntSinkPinBase::lowerOnDevice ( )
protectedpure virtual

◆ number()

int IntSinkPinBase::number ( )
inline

◆ raise()

void IntSinkPinBase::raise ( )
inlineprotected

Definition at line 53 of file intpin.hh.

References _state, and raiseOnDevice().

Referenced by IntSourcePinBase::raise().

◆ raiseOnDevice()

virtual void IntSinkPinBase::raiseOnDevice ( )
protectedpure virtual

◆ state()

bool IntSinkPinBase::state ( )
inline

Definition at line 68 of file intpin.hh.

References _state.

◆ unbind()

void IntSinkPinBase::unbind ( )
overridevirtual

Dettach from a peer port.

Reimplemented from Port.

Definition at line 42 of file intpin.cc.

References source, and Port::unbind().

Member Data Documentation

◆ _number

int IntSinkPinBase::_number = 0
protected

Definition at line 42 of file intpin.hh.

Referenced by number().

◆ _state

bool IntSinkPinBase::_state = false
protected

Definition at line 43 of file intpin.hh.

Referenced by lower(), raise(), and state().

◆ IntSourcePinBase

friend IntSinkPinBase::IntSourcePinBase
protected

Definition at line 38 of file intpin.hh.

◆ source

IntSourcePinBase* IntSinkPinBase::source = nullptr
protected

Definition at line 40 of file intpin.hh.

Referenced by bind(), and unbind().


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:02:26 for gem5 by doxygen 1.8.17