rc_sc_buffer< bool > Class Template Reference

#include <rc_sc_buffer.h>

Inheritance diagram for rc_sc_buffer< bool >:

rc_sc_signal_b rc_reset_channel_if sc_channel sc_signal_inout_if rc_resettable

List of all members.


Detailed Description

template<>
class ReChannel::rc_sc_buffer< bool >

Resettable buffer (wrapping class sc_buffer<bool>).

Definition at line 74 of file rc_sc_buffer.h.


Public Member Functions

 rc_sc_buffer (const sc_module_name &name_=sc_gen_unique_name("buffer"))
virtual bool posedge () const
virtual bool negedge () const
virtual const sc_event & posedge_event () const
virtual const sc_event & negedge_event () const
virtual sc_reset * is_reset () const
 operator const bool & () const
rc_sc_buffer< bool > & operator= (const bool &value)
rc_sc_buffer< bool > & operator= (const rc_sc_buffer< bool > &buffer_)

Protected Member Functions

virtual void register_process_control (rc_process_control &pctrl, bool reset_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).

Private Types

typedef
rc_sc_signal_b< bool,
internals::reset_buffer
base_type

Member Typedef Documentation

typedef rc_sc_signal_b<bool, internals::reset_buffer> base_type [private]

Definition at line 80 of file rc_sc_buffer.h.


Constructor & Destructor Documentation

rc_sc_buffer ( const sc_module_name &  name_ = sc_gen_unique_name("buffer")  )  [inline, explicit]

Definition at line 83 of file rc_sc_buffer.h.


Member Function Documentation

virtual bool posedge (  )  const [inline, virtual]

Definition at line 90 of file rc_sc_buffer.h.

virtual bool negedge (  )  const [inline, virtual]

Definition at line 93 of file rc_sc_buffer.h.

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

Definition at line 96 of file rc_sc_buffer.h.

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

Definition at line 99 of file rc_sc_buffer.h.

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

Definition at line 103 of file rc_sc_buffer.h.

virtual void register_process_control ( rc_process_control pctrl,
bool  active_level 
) const [inline, 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 108 of file rc_sc_buffer.h.

virtual void unregister_process_control ( rc_process_control pctrl  )  const [inline, 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 114 of file rc_sc_buffer.h.

virtual bool get_current_level (  )  const [inline, protected, virtual]

Returns the reset channel's current level.

Returns:
the current level of the channel.

Implements rc_reset_channel_if.

Definition at line 120 of file rc_sc_buffer.h.

virtual const sc_signal<bool>* get_underlying_reset_signal (  )  const [inline, 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 123 of file rc_sc_buffer.h.

operator const bool & (  )  const [inline]

Definition at line 129 of file rc_sc_buffer.h.

rc_sc_buffer<bool>& operator= ( const bool &  value  )  [inline]

Definition at line 132 of file rc_sc_buffer.h.

rc_sc_buffer<bool>& operator= ( const rc_sc_buffer< bool > &  buffer_  )  [inline]

Definition at line 135 of file rc_sc_buffer.h.


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