rc_signal< bool > Class Template Reference

#include <rc_signal.h>

Inheritance diagram for rc_signal< bool >:

rc_signal_b< bool > rc_reset_channel_if sc_signal_inout_if rc_prim_channel rc_resettable

List of all members.


Detailed Description

template<>
class ReChannel::rc_signal< bool >

Resettable representation of sc_signal<bool>.

Definition at line 186 of file rc_signal.h.


Public Member Functions

 rc_signal (const sc_module_name &name_=sc_gen_unique_name("signal"))
virtual const sc_event & posedge_event () const
virtual const sc_event & negedge_event () const
virtual bool posedge () const
virtual bool negedge () const
virtual sc_reset * is_reset () const
 operator const bool & () const
this_typeoperator= (const bool &value)
this_typeoperator= (const this_type &signal_)

Protected Member Functions

virtual void register_process_control (rc_process_control &pctrl, bool active_level) const
 Registers a process control at the channel's reset list.
virtual void unregister_process_control (rc_process_control &pctrl) const
 Unregisters a process control from the channel's reset list.
virtual bool get_current_level () const
 Returns the reset channel's current level.
virtual const
sc_signal< bool > * 
get_underlying_reset_signal () const
 Returns the underlying SystemC signal (if such exists).
virtual void update ()
 RC_ON_RESET ()

Protected Attributes

sc_event m_posedge_event
sc_event m_negedge_event

Private Types

typedef rc_signal< bool > this_type
typedef rc_signal_b
< bool > 
base_type
typedef std::set
< rc_process_control * > 
pctrl_set

Private Member Functions

sc_signal< bool > & _rc_get_reset_signal () const
void _rc_reset_updater_proc ()

Private Attributes

pctrl_set p_pctrl_set [2]
sc_signal< bool > * p_reset_signal

Member Typedef Documentation

typedef rc_signal<bool> this_type [private]

Definition at line 191 of file rc_signal.h.

typedef rc_signal_b<bool> base_type [private]

Definition at line 192 of file rc_signal.h.

typedef std::set<rc_process_control*> pctrl_set [private]

Definition at line 194 of file rc_signal.h.


Constructor & Destructor Documentation

rc_signal ( const sc_module_name &  name_ = sc_gen_unique_name("signal")  )  [inline, explicit]

Definition at line 197 of file rc_signal.h.


Member Function Documentation

virtual const sc_event& posedge_event (  )  const [inline, virtual]

Definition at line 204 of file rc_signal.h.

virtual const sc_event& negedge_event (  )  const [inline, virtual]

Definition at line 207 of file rc_signal.h.

virtual bool posedge (  )  const [inline, virtual]

Definition at line 210 of file rc_signal.h.

virtual bool negedge (  )  const [inline, virtual]

Definition at line 213 of file rc_signal.h.

virtual sc_reset* is_reset (  )  const [inline, virtual]

Definition at line 218 of file rc_signal.h.

operator const bool & (  )  const [inline]

Definition at line 226 of file rc_signal.h.

this_type& operator= ( const bool &  value  )  [inline]

Definition at line 229 of file rc_signal.h.

this_type& operator= ( const this_type signal_  )  [inline]

Definition at line 232 of file rc_signal.h.

void register_process_control ( rc_process_control pctrl,
bool  active_level 
) const [protected, virtual]

Registers a process control at the channel's reset list.

Parameters:
pctrl The process control object that shall be deactivated in case of a reset.
active_level The reset trigger level (high or low).
See also:
rc_process_control

Implements rc_reset_channel_if.

Definition at line 69 of file rc_signal.cpp.

void unregister_process_control ( rc_process_control pctrl  )  const [protected, virtual]

Unregisters a process control from the channel's reset list.

Parameters:
pctrl The process control object that shall be unregistered
The opposite of register_process_control().

See also:
rc_process_control

Implements rc_reset_channel_if.

Definition at line 75 of file rc_signal.cpp.

bool get_current_level (  )  const [protected, virtual]

Returns the reset channel's current level.

Returns:
the current level of the channel.

Implements rc_reset_channel_if.

Definition at line 82 of file rc_signal.cpp.

const sc_signal< bool > * get_underlying_reset_signal (  )  const [protected, virtual]

Returns the underlying SystemC signal (if such exists).

Returns:
a SystemC signal this channel is based on.
Note:
SystemC's reset mechanism is not standardised. Hence for some SystemC implementations (e.g. OSCI SystemC) it may be useful to have access to a native channel.
See also:
sc_core::sc_signal_inout_if::reset_is()

Implements rc_reset_channel_if.

Definition at line 87 of file rc_signal.cpp.

void update (  )  [protected, virtual]

Reimplemented from rc_signal_b< bool >.

Definition at line 96 of file rc_signal.cpp.

RC_ON_RESET (  )  [inline, protected]

Reimplemented from rc_signal_b< bool >.

Definition at line 249 of file rc_signal.h.

sc_signal< bool > & _rc_get_reset_signal (  )  const [private]

Definition at line 124 of file rc_signal.cpp.

void _rc_reset_updater_proc (  )  [private]

Definition at line 144 of file rc_signal.cpp.


Member Data Documentation

sc_event m_posedge_event [protected]

Definition at line 268 of file rc_signal.h.

sc_event m_negedge_event [protected]

Definition at line 269 of file rc_signal.h.

pctrl_set p_pctrl_set[2] [mutable, private]

Definition at line 272 of file rc_signal.h.

sc_signal<bool>* p_reset_signal [mutable, private]

Definition at line 273 of file rc_signal.h.


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