Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | List of all members
sr_signal::signal_in_if< TYPE > Class Template Referenceabstract

#include <sr_signal_ifs.h>

Inheritance diagram for sr_signal::signal_in_if< TYPE >:
Collaboration diagram for sr_signal::signal_in_if< TYPE >:

Public Member Functions

virtual ~signal_in_if ()
 Virtual destructor. More...
 
virtual void bind (signal_out_bind_if< TYPE > &t, const unsigned int &channel=0)=0
 
virtual void update (signal_out_if< TYPE > *sender, const sc_core::sc_time &time=sc_core::SC_ZERO_TIME)=0
 
- Public Member Functions inherited from sr_signal::signal_if< TYPE >
virtual ~signal_if ()
 Virtual destructor. More...
 
virtual const TYPE & read ()
 Read the current signal value. More...
 
 operator TYPE () const
 Call operator to get the current signal value. More...
 
bool operator== (const TYPE &t) const
 Comparing the current signal value with a variable of the same type TYPE. More...
 

Additional Inherited Members

- Protected Attributes inherited from sr_signal::signal_if< TYPE >
TYPE m_value
 The signal value. More...
 

Detailed Description

template<class TYPE>
class sr_signal::signal_in_if< TYPE >

Signal input interface. This interface implements the bind functionality of an input signal and it provides an abstract function declarations to update the signal. The signal has to be updated by an output signal. If the write function of an output signal is called all connected input signals shall call their update functions.

Constructor & Destructor Documentation

template<class TYPE>
virtual sr_signal::signal_in_if< TYPE >::~signal_in_if ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

template<class TYPE>
virtual void sr_signal::signal_in_if< TYPE >::bind ( signal_out_bind_if< TYPE > &  t,
const unsigned int channel = 0 
)
pure virtual

Abstract bind method interface. This method has to be implemented by each input signal to make it bind with an output.

Parameters
tInput interface to bind with.
channelThe channel which has to be bind.

Implemented in sr_signal::signal_infield< TYPE, MODULE >, and sr_signal::signal_in< TYPE, MODULE >.

Referenced by sr_signal::connect(), sr_signal::signal_out< bool, Irqmp >::operator()(), and sr_signal::signal_selector< TYPE, MODULE >::operator()().

template<class TYPE>
virtual void sr_signal::signal_in_if< TYPE >::update ( signal_out_if< TYPE > *  sender,
const sc_core::sc_time &  time = sc_core::SC_ZERO_TIME 
)
pure virtual

Abstract update method interface. This method has to be implemented by each input signal to update the the signal value and call all callbacks.

Parameters
senderWhich calls update.
timeDelay from sc_timestamp() after which the signal is set.

Implemented in sr_signal::signal_infield< TYPE, MODULE >, and sr_signal::signal_in< TYPE, MODULE >.


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