OpenASIP  2.0
Public Member Functions | Private Member Functions | List of all members
TriggeringInputPortState Class Reference

#include <TriggeringInputPortState.hh>

Inheritance diagram for TriggeringInputPortState:
Inheritance graph
Collaboration diagram for TriggeringInputPortState:
Collaboration graph

Public Member Functions

 TriggeringInputPortState (FUState &parent, int width)
 
 TriggeringInputPortState (FUState &parent, SimValue &sharedRegister)
 
virtual ~TriggeringInputPortState ()
 
virtual void setValue (const SimValue &value)
 
- Public Member Functions inherited from InputPortState
 InputPortState (FUState &parent, int width)
 
 InputPortState (FUState &parent, SimValue &registerToUse)
 
virtual ~InputPortState ()
 
- Public Member Functions inherited from PortState
 PortState (FUState &parent, int width)
 
 PortState (FUState &parent, SimValue &sharedRegister)
 
virtual ~PortState ()
 
virtual FUStateparent () const
 
- Public Member Functions inherited from RegisterState
 RegisterState (int width, bool constantZero=false)
 
 RegisterState (SimValue &sharedRegister)
 
virtual ~RegisterState ()
 
virtual const SimValuevalue () const
 
- Public Member Functions inherited from StateData
 StateData ()
 
virtual ~StateData ()
 
- Public Member Functions inherited from WritableState
 WritableState ()
 
virtual ~WritableState ()
 
- Public Member Functions inherited from ReadableState
 ReadableState ()
 
virtual ~ReadableState ()
 

Private Member Functions

 TriggeringInputPortState (const TriggeringInputPortState &)
 Copying not allowed. More...
 
TriggeringInputPortStateoperator= (const TriggeringInputPortState &)
 Assignment not allowed. More...
 

Additional Inherited Members

- Protected Attributes inherited from PortState
FUStateparent_
 Parent of the port. More...
 
- Protected Attributes inherited from RegisterState
SimValuevalue_
 Value of the RegisterState. More...
 

Detailed Description

Models input port state that triggers operation.

Definition at line 46 of file TriggeringInputPortState.hh.

Constructor & Destructor Documentation

◆ TriggeringInputPortState() [1/3]

TriggeringInputPortState::TriggeringInputPortState ( FUState parent,
int  width 
)

Constructor.

Parameters
parentParent of the port.
widthWidth of the port.

Definition at line 46 of file TriggeringInputPortState.cc.

48  :
49  InputPortState(parent, width) {
50 }

◆ TriggeringInputPortState() [2/3]

TriggeringInputPortState::TriggeringInputPortState ( FUState parent,
SimValue registerToUse 
)

Constructor for port which uses a shared register.

Parameters
parentParent of the port.
nameName of the port.
registerToUseThe shared register storage.

Definition at line 59 of file TriggeringInputPortState.cc.

61  :
62  InputPortState(parent, registerToUse) {
63 }

◆ ~TriggeringInputPortState()

TriggeringInputPortState::~TriggeringInputPortState ( )
virtual

Destructor.

Definition at line 68 of file TriggeringInputPortState.cc.

68  {
69 }

◆ TriggeringInputPortState() [3/3]

TriggeringInputPortState::TriggeringInputPortState ( const TriggeringInputPortState )
private

Copying not allowed.

Member Function Documentation

◆ operator=()

TriggeringInputPortState& TriggeringInputPortState::operator= ( const TriggeringInputPortState )
private

Assignment not allowed.

◆ setValue()

void TriggeringInputPortState::setValue ( const SimValue value)
virtual

Sets the value of the port and triggers an operation.

Parameters
valueValue to be set.

Reimplemented from RegisterState.

Definition at line 77 of file TriggeringInputPortState.cc.

77  {
80 }

References PortState::parent_, FUState::setTriggered(), RegisterState::setValue(), and RegisterState::value().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
InputPortState::InputPortState
InputPortState(FUState &parent, int width)
Definition: InputPortState.cc:46
PortState::parent_
FUState * parent_
Parent of the port.
Definition: PortState.hh:61
PortState::parent
virtual FUState & parent() const
Definition: PortState.cc:80
RegisterState::value
virtual const SimValue & value() const
Definition: RegisterState.cc:92
FUState::setTriggered
void setTriggered()
RegisterState::setValue
virtual void setValue(const SimValue &value)
Definition: RegisterState.cc:80