SystemC  Recoding Infrastructure for SystemC v0.6.3 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
sc_core::sc_signal< bool, POL > Class Template Reference

#include <sysc/communication/sc_signal.h>

Inheritance diagram for sc_core::sc_signal< bool, POL >:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_signal< bool, POL >:
Collaboration graph
[legend]

Public Member Functions

 sc_signal ()
 
 sc_signal (const char *name_)
 
 sc_signal (const char *name_, bool initial_value_)
 
virtual ~sc_signal ()
 
virtual void register_port (sc_port_base &, const char *)
 
virtual sc_writer_policy get_writer_policy () const
 
virtual const sc_eventdefault_event () const
 
virtual const sc_eventvalue_changed_event () const
 
virtual const sc_eventposedge_event () const
 
virtual const sc_eventnegedge_event () const
 
virtual const bool & read () const
 
virtual const bool & get_data_ref () const
 
virtual bool event () const
 
virtual bool posedge () const
 
virtual bool negedge () const
 
virtual void write (const bool &)
 
 operator const bool & () const
 
this_typeoperator= (const bool &a)
 
this_typeoperator= (const sc_signal_in_if< bool > &a)
 
this_typeoperator= (const this_type &a)
 
const bool & get_new_value () const
 
void trace (sc_trace_file *tf) const
 
virtual void print (::std::ostream &=::std::cout) const
 
virtual void dump (::std::ostream &=::std::cout) const
 
virtual const char * kind () const
 
- Public Member Functions inherited from sc_core::sc_interface
virtual ~sc_interface ()
 
- Public Member Functions inherited from sc_core::sc_signal_write_if< bool >
 sc_signal_write_if ()
 
- Public Member Functions inherited from sc_core::sc_prim_channel
bool update_requested ()
 
void request_update ()
 
void async_request_update ()
 
- Public Member Functions inherited from sc_core::sc_object
const char * name () const
 
const char * basename () const
 
sc_simcontextsimcontext () const
 
bool add_attribute (sc_attr_base &)
 
sc_attr_baseget_attribute (const std::string &name_)
 
const sc_attr_baseget_attribute (const std::string &name_) const
 
sc_attr_baseremove_attribute (const std::string &name_)
 
void remove_all_attributes ()
 
int num_attributes () const
 
sc_attr_cltnattr_cltn ()
 
const sc_attr_cltnattr_cltn () const
 
virtual const std::vector
< sc_event * > & 
get_child_events () const
 
virtual const std::vector
< sc_object * > & 
get_child_objects () const
 
sc_objectget_parent () const
 
sc_objectget_parent_object () const
 

Protected Types

typedef sc_signal_inout_if< bool > if_type
 
typedef sc_signal< bool, POL > this_type
 
typedef sc_writer_policy_check
< POL > 
policy_type
 

Protected Member Functions

virtual void update ()
 The update method (does nothing by default). More...
 
void do_update ()
 
virtual bool is_clock () const
 
- Protected Member Functions inherited from sc_core::sc_signal_inout_if< bool >
 sc_signal_inout_if ()
 
- Protected Member Functions inherited from sc_core::sc_signal_in_if< bool >
 sc_signal_in_if ()
 
- Protected Member Functions inherited from sc_core::sc_interface
 sc_interface ()
 
- Protected Member Functions inherited from sc_core::sc_prim_channel
 sc_prim_channel ()
 
 sc_prim_channel (const char *)
 
virtual ~sc_prim_channel ()
 
virtual void before_end_of_elaboration ()
 
virtual void end_of_elaboration ()
 
virtual void start_of_simulation ()
 
virtual void end_of_simulation ()
 
void wait (int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (const sc_event &e, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (const sc_event_or_list &el, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (const sc_event_and_list &el, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (const sc_time &t, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (double v, sc_time_unit tu, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (const sc_time &t, const sc_event &e, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (double v, sc_time_unit tu, const sc_event &e, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (const sc_time &t, const sc_event_or_list &el, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (double v, sc_time_unit tu, const sc_event_or_list &el, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (const sc_time &t, const sc_event_and_list &el, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (double v, sc_time_unit tu, const sc_event_and_list &el, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void wait (int n, int seg_id=-1)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger ()
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (const sc_event &e)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (const sc_event_or_list &el)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (const sc_event_and_list &el)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (const sc_time &t)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (double v, sc_time_unit tu)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (const sc_time &t, const sc_event &e)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (double v, sc_time_unit tu, const sc_event &e)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (const sc_time &t, const sc_event_or_list &el)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (double v, sc_time_unit tu, const sc_event_or_list &el)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (const sc_time &t, const sc_event_and_list &el)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
void next_trigger (double v, sc_time_unit tu, const sc_event_and_list &el)
 A new parameter segment ID is added for the out-of-order simulation. More...
 
bool timed_out ()
 
- Protected Member Functions inherited from sc_core::sc_object
 sc_object ()
 
 sc_object (const char *nm)
 
 sc_object (const sc_object &)
 
sc_objectoperator= (const sc_object &)
 
virtual ~sc_object ()
 
virtual void add_child_event (sc_event *event_p)
 
virtual void add_child_object (sc_object *object_p)
 
virtual bool remove_child_event (sc_event *event_p)
 
virtual bool remove_child_object (sc_object *object_p)
 
phase_cb_mask register_simulation_phase_callback (phase_cb_mask)
 
phase_cb_mask unregister_simulation_phase_callback (phase_cb_mask)
 

Protected Attributes

sc_eventm_change_event_p
 
bool m_cur_val
 
sc_dt::uint64 m_change_stamp
 
sc_eventm_negedge_event_p
 
bool m_new_val
 
sc_eventm_posedge_event_p
 
sc_resetm_reset_p
 
- Protected Attributes inherited from sc_core::sc_prim_channel
CHNL_MTX_TYPE_ m_mutex
 A mutex to protect concurrent communication. More...
 

Additional Inherited Members

- Public Types inherited from sc_core::sc_prim_channel
enum  { list_end = 0xdb }
 
- Public Types inherited from sc_core::sc_object
typedef unsigned phase_cb_mask
 

Detailed Description

template<sc_writer_policy POL>
class sc_core::sc_signal< bool, POL >

Definition at line 310 of file sc_signal.h.

Member Typedef Documentation

template<sc_writer_policy POL>
typedef sc_signal_inout_if<bool> sc_core::sc_signal< bool, POL >::if_type
protected

Definition at line 316 of file sc_signal.h.

template<sc_writer_policy POL>
typedef sc_writer_policy_check<POL> sc_core::sc_signal< bool, POL >::policy_type
protected

Definition at line 318 of file sc_signal.h.

template<sc_writer_policy POL>
typedef sc_signal<bool,POL> sc_core::sc_signal< bool, POL >::this_type
protected

Definition at line 317 of file sc_signal.h.

Constructor & Destructor Documentation

template<sc_writer_policy POL>
sc_core::sc_signal< bool, POL >::sc_signal ( )
inline

Definition at line 322 of file sc_signal.h.

template<sc_writer_policy POL>
sc_core::sc_signal< bool, POL >::sc_signal ( const char *  name_)
inlineexplicit

Definition at line 333 of file sc_signal.h.

template<sc_writer_policy POL>
sc_core::sc_signal< bool, POL >::sc_signal ( const char *  name_,
bool  initial_value_ 
)
inline

Definition at line 344 of file sc_signal.h.

template<sc_writer_policy POL>
virtual sc_core::sc_signal< bool, POL >::~sc_signal ( )
virtual

Member Function Documentation

template<sc_writer_policy POL>
virtual const sc_event& sc_core::sc_signal< bool, POL >::default_event ( ) const
inlinevirtual

Reimplemented from sc_core::sc_interface.

Definition at line 366 of file sc_signal.h.

template<sc_writer_policy POL>
void sc_core::sc_signal< bool, POL >::do_update ( )
protected
template<sc_writer_policy POL>
virtual void sc_core::sc_signal< bool, POL >::dump ( ::std::ostream &  = ::std::cout) const
virtual

Reimplemented from sc_core::sc_object.

template<sc_writer_policy POL>
virtual bool sc_core::sc_signal< bool, POL >::event ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< bool >.

Definition at line 396 of file sc_signal.h.

template<sc_writer_policy POL>
virtual const bool& sc_core::sc_signal< bool, POL >::get_data_ref ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< bool >.

Definition at line 384 of file sc_signal.h.

template<sc_writer_policy POL>
const bool& sc_core::sc_signal< bool, POL >::get_new_value ( ) const
inline

Definition at line 426 of file sc_signal.h.

template<sc_writer_policy POL>
virtual sc_writer_policy sc_core::sc_signal< bool, POL >::get_writer_policy ( ) const
inlinevirtual

Reimplemented from sc_core::sc_signal_write_if< bool >.

Definition at line 362 of file sc_signal.h.

template<sc_writer_policy POL>
virtual bool sc_core::sc_signal< bool, POL >::is_clock ( ) const
inlineprotectedvirtual

Definition at line 461 of file sc_signal.h.

template<sc_writer_policy POL>
virtual const char* sc_core::sc_signal< bool, POL >::kind ( ) const
inlinevirtual

Reimplemented from sc_core::sc_prim_channel.

Definition at line 453 of file sc_signal.h.

template<sc_writer_policy POL>
virtual bool sc_core::sc_signal< bool, POL >::negedge ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< bool >.

Definition at line 404 of file sc_signal.h.

template<sc_writer_policy POL>
virtual const sc_event& sc_core::sc_signal< bool, POL >::negedge_event ( ) const
virtual
template<sc_writer_policy POL>
sc_core::sc_signal< bool, POL >::operator const bool & ( ) const
inline

Definition at line 412 of file sc_signal.h.

template<sc_writer_policy POL>
this_type& sc_core::sc_signal< bool, POL >::operator= ( const bool &  a)
inline

Definition at line 416 of file sc_signal.h.

template<sc_writer_policy POL>
this_type& sc_core::sc_signal< bool, POL >::operator= ( const sc_signal_in_if< bool > &  a)
inline

Definition at line 419 of file sc_signal.h.

template<sc_writer_policy POL>
this_type& sc_core::sc_signal< bool, POL >::operator= ( const this_type a)
inline

Definition at line 422 of file sc_signal.h.

template<sc_writer_policy POL>
virtual bool sc_core::sc_signal< bool, POL >::posedge ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< bool >.

Definition at line 400 of file sc_signal.h.

template<sc_writer_policy POL>
virtual const sc_event& sc_core::sc_signal< bool, POL >::posedge_event ( ) const
virtual
template<sc_writer_policy POL>
virtual void sc_core::sc_signal< bool, POL >::print ( ::std::ostream &  = ::std::cout) const
virtual

Reimplemented from sc_core::sc_object.

template<sc_writer_policy POL>
virtual const bool& sc_core::sc_signal< bool, POL >::read ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< bool >.

Definition at line 380 of file sc_signal.h.

template<sc_writer_policy POL>
virtual void sc_core::sc_signal< bool, POL >::register_port ( sc_port_base ,
const char *   
)
virtual

Reimplemented from sc_core::sc_interface.

template<sc_writer_policy POL>
void sc_core::sc_signal< bool, POL >::trace ( sc_trace_file tf) const
inlinevirtual

Reimplemented from sc_core::sc_object.

Definition at line 439 of file sc_signal.h.

template<sc_writer_policy POL>
virtual void sc_core::sc_signal< bool, POL >::update ( )
protectedvirtual

The update method (does nothing by default).

This function is not supported by the out-of-order simulation in the current release.

Reimplemented from sc_core::sc_prim_channel.

template<sc_writer_policy POL>
virtual const sc_event& sc_core::sc_signal< bool, POL >::value_changed_event ( ) const
virtual
template<sc_writer_policy POL>
virtual void sc_core::sc_signal< bool, POL >::write ( const bool &  )
virtual

Member Data Documentation

template<sc_writer_policy POL>
sc_event* sc_core::sc_signal< bool, POL >::m_change_event_p
mutableprotected

Definition at line 464 of file sc_signal.h.

template<sc_writer_policy POL>
sc_dt::uint64 sc_core::sc_signal< bool, POL >::m_change_stamp
protected

Definition at line 466 of file sc_signal.h.

template<sc_writer_policy POL>
bool sc_core::sc_signal< bool, POL >::m_cur_val
protected

Definition at line 465 of file sc_signal.h.

template<sc_writer_policy POL>
sc_event* sc_core::sc_signal< bool, POL >::m_negedge_event_p
mutableprotected

Definition at line 467 of file sc_signal.h.

template<sc_writer_policy POL>
bool sc_core::sc_signal< bool, POL >::m_new_val
protected

Definition at line 468 of file sc_signal.h.

template<sc_writer_policy POL>
sc_event* sc_core::sc_signal< bool, POL >::m_posedge_event_p
mutableprotected

Definition at line 469 of file sc_signal.h.

template<sc_writer_policy POL>
sc_reset* sc_core::sc_signal< bool, POL >::m_reset_p
mutableprotected

Definition at line 470 of file sc_signal.h.


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