rc_resettable Class Reference

#include <rc_resettable.h>

Inheritance diagram for rc_resettable:

resettable_var_base rc_module rc_prim_channel rc_reconfigurable_module< Module, false > rc_sc_event rc_sc_fifo rc_sc_signal_b rc_sc_signal_b< bool, ReChannel::internals::reset_buffer > rc_sc_signal_b< bool, ReChannel::internals::reset_signal > rc_sc_signal_b< sc_logic > rc_sc_signal_b< sc_logic, sc_buffer< sc_logic > > rc_sc_signal_b< sc_logic, sc_signal_resolved > rc_sc_signal_b< sc_lv< W >, sc_signal_rv< W > > rc_sc_signal_b< T > rc_sc_signal_b< T, sc_buffer< T > >

List of all members.


Detailed Description

The pure virtual interface rc_resettable.

A component is regarded as resettable if it implements the abstract base interface rc_resettable. Resettable components are automatically reset in case of activation or deactivation of their associated reconfigurable context. For the reset mechanism to work, resettable components have to be registered at a rc_reconfigurable instance. Usually a resettable component automatically registers itself to the current reconfigurable context by invoking function rc_register_resettable() at construction.

The execution of rc_on_reset() and rc_on_init_resettable() shall not take any time, i.e. it may not invoke any wait statements.

Remarks:
rc_on_init_resettable() will be called once by rc_reconfigurable at the start of simulation. rc_on_reset() is called every time a rc_reconfigurable is activated or deactivated during simulation phase, i.e. normally it will be called twice. An implementation is free to only reset itself either at activation or deactivation if this is possible (and safe).
See also:
Resettable Components, rc_reconfigurable, rc_register_resettable(), rc_get_reconfigurable_context()

Definition at line 71 of file rc_resettable.h.


Protected Member Functions

virtual void rc_on_reset ()=0
 Called to request the object for an immediate reset.
virtual void rc_on_init_resettable ()=0
 Called when the object shall store its state.
virtual ~rc_resettable ()
 Virtual destructor.

Friends

class rc_reconfigurable
 This interface is intended to be used by rc_reconfigurable.

Constructor & Destructor Documentation

virtual ~rc_resettable (  )  [inline, protected, virtual]

Virtual destructor.

Definition at line 109 of file rc_resettable.h.


Member Function Documentation

virtual void rc_on_reset (  )  [protected, pure virtual]

Called to request the object for an immediate reset.

rc_on_reset() is called every time a rc_reconfigurable is activated or deactivated during simulation phase, i.e. normally it will be called twice. An implementation is free to only reset itself either at activation or deactivation.

Attention:
An implementation of this method shall not invoke any wait statements.
Note:
Method should be declared to be "protected".

Implemented in rc_module, rc_mutex, rc_semaphore, resettable_var, and rc_reconfigurable_module< Module, false >.

Referenced by rc_signal_rv::RC_ON_RESET(), rc_signal_resolved::RC_ON_RESET(), rc_signal< bool >::RC_ON_RESET(), rc_semaphore::rc_on_reset(), and rc_mutex::rc_on_reset().

virtual void rc_on_init_resettable (  )  [protected, pure virtual]

Called when the object shall store its state.

This callback method shall be invoked to give the object opportunity to store its initial state. A good point of time may be directly after SystemC's construction phase has finished.

Remarks:
An implementation of this method shall not invoke any wait statements.
Note:
Method should be declared to be "protected".

Implemented in rc_module, resettable_var, and rc_reconfigurable_module< Module, false >.

Referenced by rc_signal_rv::RC_ON_INIT_RESETTABLE(), and rc_signal_resolved::RC_ON_INIT_RESETTABLE().


Friends And Related Function Documentation

friend class rc_reconfigurable [friend]

This interface is intended to be used by rc_reconfigurable.

Definition at line 76 of file rc_resettable.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 1 23:14:14 2008 for ReChannel by  doxygen 1.5.3