sc_core::sc_signal< T, POL > Class Template Reference

The sc_signal<T> primitive channel class. More...

#include <sysc/communication/sc_signal.h>

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

List of all members.

Public Member Functions

 sc_signal ()
 sc_signal (const char *name_)
 sc_signal (const char *name_, const T &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 T & read () const
virtual const T & get_data_ref () const
virtual bool event () const
virtual void write (const T &)
 operator const T & () const
this_typeoperator= (const T &a)
this_typeoperator= (const sc_signal_in_if< T > &a)
this_typeoperator= (const this_type &a)
const T & 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

Protected Types

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

Protected Member Functions

virtual void update ()
 The update method (does nothing by default).
void do_update ()

Protected Attributes

sc_eventm_change_event_p
m_cur_val
sc_dt::uint64 m_change_stamp
m_new_val

Detailed Description

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

The sc_signal<T> primitive channel class.

Specialization of sc_signal<T> for type sc_dt::sc_logic.

Specialization of sc_signal<T> for type bool.

Definition at line 72 of file sc_signal.h.


Member Typedef Documentation

template<class T, sc_writer_policy POL>
typedef sc_signal_inout_if<T> sc_core::sc_signal< T, POL >::if_type [protected]

Definition at line 78 of file sc_signal.h.

template<class T, sc_writer_policy POL>
typedef sc_writer_policy_check<POL> sc_core::sc_signal< T, POL >::policy_type [protected]

Definition at line 80 of file sc_signal.h.

template<class T, sc_writer_policy POL>
typedef sc_signal<T,POL> sc_core::sc_signal< T, POL >::this_type [protected]

Constructor & Destructor Documentation

template<class T, sc_writer_policy POL>
sc_core::sc_signal< T, POL >::sc_signal (  )  [inline]

Definition at line 84 of file sc_signal.h.

template<class T, sc_writer_policy POL>
sc_core::sc_signal< T, POL >::sc_signal ( const char *  name_  )  [inline, explicit]

Definition at line 90 of file sc_signal.h.

template<class T, sc_writer_policy POL>
sc_core::sc_signal< T, POL >::sc_signal ( const char *  name_,
const T &  initial_value_ 
) [inline]

Definition at line 96 of file sc_signal.h.

template<class T, sc_writer_policy POL>
virtual sc_core::sc_signal< T, POL >::~sc_signal (  )  [inline, virtual]

Definition at line 104 of file sc_signal.h.


Member Function Documentation

template<class T, sc_writer_policy POL>
virtual const sc_event& sc_core::sc_signal< T, POL >::default_event (  )  const [inline, virtual]

Reimplemented from sc_core::sc_interface.

Definition at line 118 of file sc_signal.h.

template<class T , sc_writer_policy POL>
void sc_core::sc_signal< T, POL >::do_update (  )  [inline, protected]

Definition at line 294 of file sc_signal.h.

template<class T , sc_writer_policy POL>
void sc_core::sc_signal< T, POL >::dump ( ::std::ostream &  os = ::std::cout  )  const [inline, virtual]

Reimplemented from sc_core::sc_object.

Definition at line 269 of file sc_signal.h.

template<class T, sc_writer_policy POL>
virtual bool sc_core::sc_signal< T, POL >::event (  )  const [inline, virtual]

Implements sc_core::sc_signal_in_if< T >.

Definition at line 150 of file sc_signal.h.

template<class T, sc_writer_policy POL>
virtual const T& sc_core::sc_signal< T, POL >::get_data_ref (  )  const [inline, virtual]

Implements sc_core::sc_signal_in_if< T >.

Definition at line 138 of file sc_signal.h.

template<class T, sc_writer_policy POL>
const T& sc_core::sc_signal< T, POL >::get_new_value (  )  const [inline]

Definition at line 173 of file sc_signal.h.

template<class T, sc_writer_policy POL>
virtual sc_writer_policy sc_core::sc_signal< T, POL >::get_writer_policy (  )  const [inline, virtual]

Reimplemented from sc_core::sc_signal_write_if< T >.

Definition at line 114 of file sc_signal.h.

template<class T, sc_writer_policy POL>
virtual const char* sc_core::sc_signal< T, POL >::kind (  )  const [inline, virtual]
template<class T, sc_writer_policy POL>
sc_core::sc_signal< T, POL >::operator const T & (  )  const [inline]

Definition at line 159 of file sc_signal.h.

template<class T, sc_writer_policy POL>
this_type& sc_core::sc_signal< T, POL >::operator= ( const this_type a  )  [inline]

Reimplemented from sc_core::sc_prim_channel.

Reimplemented in sc_core::sc_buffer< T, POL >.

Definition at line 169 of file sc_signal.h.

template<class T, sc_writer_policy POL>
this_type& sc_core::sc_signal< T, POL >::operator= ( const sc_signal_in_if< T > &  a  )  [inline]

Reimplemented in sc_core::sc_buffer< T, POL >.

Definition at line 166 of file sc_signal.h.

template<class T, sc_writer_policy POL>
this_type& sc_core::sc_signal< T, POL >::operator= ( const T &  a  )  [inline]

Reimplemented in sc_core::sc_buffer< T, POL >, and sc_core::sc_signal_resolved.

Definition at line 163 of file sc_signal.h.

template<class T , sc_writer_policy POL>
void sc_core::sc_signal< T, POL >::print ( ::std::ostream &  os = ::std::cout  )  const [inline, virtual]

Reimplemented from sc_core::sc_object.

Definition at line 262 of file sc_signal.h.

template<class T, sc_writer_policy POL>
virtual const T& sc_core::sc_signal< T, POL >::read (  )  const [inline, virtual]

Implements sc_core::sc_signal_in_if< T >.

Definition at line 134 of file sc_signal.h.

template<class T , sc_writer_policy POL>
void sc_core::sc_signal< T, POL >::register_port ( sc_port_base port_,
const char *  if_typename_ 
) [inline, virtual]

Reimplemented from sc_core::sc_interface.

Reimplemented in sc_core::sc_clock, sc_core::sc_signal_resolved, and sc_core::sc_signal_rv< W >.

Definition at line 227 of file sc_signal.h.

template<class T, sc_writer_policy POL>
void sc_core::sc_signal< T, POL >::trace ( sc_trace_file tf  )  const [inline, virtual]

Reimplemented from sc_core::sc_object.

Definition at line 185 of file sc_signal.h.

template<class T , sc_writer_policy POL>
void sc_core::sc_signal< T, POL >::update (  )  [inline, protected, virtual]

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.

Reimplemented in sc_core::sc_buffer< T, POL >, sc_core::sc_signal_resolved, and sc_core::sc_signal_rv< W >.

Definition at line 284 of file sc_signal.h.

template<class T, sc_writer_policy POL>
virtual const sc_event& sc_core::sc_signal< T, POL >::value_changed_event (  )  const [inline, virtual]

Implements sc_core::sc_signal_in_if< T >.

Definition at line 122 of file sc_signal.h.

template<class T, sc_writer_policy POL>
void sc_core::sc_signal< T, POL >::write ( const T &  value_  )  [inline, virtual]

Member Data Documentation

template<class T, sc_writer_policy POL>
sc_event* sc_core::sc_signal< T, POL >::m_change_event_p [mutable, protected]

Definition at line 209 of file sc_signal.h.

template<class T, sc_writer_policy POL>
sc_dt::uint64 sc_core::sc_signal< T, POL >::m_change_stamp [protected]

Definition at line 211 of file sc_signal.h.

template<class T, sc_writer_policy POL>
T sc_core::sc_signal< T, POL >::m_cur_val [protected]

Definition at line 210 of file sc_signal.h.

template<class T, sc_writer_policy POL>
T sc_core::sc_signal< T, POL >::m_new_val [protected]

Definition at line 212 of file sc_signal.h.


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

Generated on 12 Jun 2018 for SystemC by  doxygen 1.6.1