reset_buffer Class Reference

#include <rc_reset_channel_if.h>

Inheritance diagram for reset_buffer:

rc_reset_channel_if

List of all members.


Detailed Description

Implementation of a reset buffer signal (used internally).

See also:
ReChannel::rc_reset_channel_if

Definition at line 174 of file rc_reset_channel_if.h.


Public Member Functions

 reset_buffer (const char *name_=sc_gen_unique_name("buffer"))
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.
 operator const bool & () const
reset_bufferoperator= (const bool &value)
reset_bufferoperator= (const reset_buffer &buffer_)

Protected Member Functions

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 ()

Private Types

typedef sc_buffer< bool > base_type
typedef std::set
< rc_process_control * > 
pctrl_set

Private Attributes

pctrl_set p_pctrl_set [2]

Member Typedef Documentation

typedef sc_buffer<bool> base_type [private]

Definition at line 179 of file rc_reset_channel_if.h.

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

Definition at line 180 of file rc_reset_channel_if.h.


Constructor & Destructor Documentation

reset_buffer ( const char *  name_ = sc_gen_unique_name("buffer")  )  [inline]

Definition at line 183 of file rc_reset_channel_if.h.


Member Function Documentation

void register_process_control ( rc_process_control pctrl,
bool  active_level 
) const [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 68 of file rc_reset_channel_if.cpp.

void unregister_process_control ( rc_process_control pctrl  )  const [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 74 of file rc_reset_channel_if.cpp.

operator const bool & (  )  const [inline]

Definition at line 193 of file rc_reset_channel_if.h.

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

Definition at line 196 of file rc_reset_channel_if.h.

reset_buffer& operator= ( const reset_buffer buffer_  )  [inline]

Definition at line 199 of file rc_reset_channel_if.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 203 of file rc_reset_channel_if.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 206 of file rc_reset_channel_if.h.

void update (  )  [protected, virtual]

Definition at line 81 of file rc_reset_channel_if.cpp.


Member Data Documentation

pctrl_set p_pctrl_set[2] [mutable, private]

Definition at line 212 of file rc_reset_channel_if.h.

Referenced by reset_buffer::register_process_control(), reset_buffer::unregister_process_control(), and reset_buffer::update().


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