The sc_signal<T> primitive channel class. More...
#include <sysc/communication/sc_signal.h>
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_event & | default_event () const |
virtual const sc_event & | value_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_type & | operator= (const T &a) |
this_type & | operator= (const sc_signal_in_if< T > &a) |
this_type & | operator= (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_event * | m_change_event_p |
T | m_cur_val |
sc_dt::uint64 | m_change_stamp |
T | m_new_val |
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.
typedef sc_signal_inout_if<T> sc_core::sc_signal< T, POL >::if_type [protected] |
Definition at line 78 of file sc_signal.h.
typedef sc_writer_policy_check<POL> sc_core::sc_signal< T, POL >::policy_type [protected] |
Definition at line 80 of file sc_signal.h.
typedef sc_signal<T,POL> sc_core::sc_signal< T, POL >::this_type [protected] |
Reimplemented in sc_core::sc_buffer< T, POL >, sc_core::sc_signal_resolved, and sc_core::sc_signal_rv< W >.
Definition at line 79 of file sc_signal.h.
sc_core::sc_signal< T, POL >::sc_signal | ( | ) | [inline] |
Definition at line 84 of file sc_signal.h.
sc_core::sc_signal< T, POL >::sc_signal | ( | const char * | name_ | ) | [inline, explicit] |
Definition at line 90 of file sc_signal.h.
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.
virtual sc_core::sc_signal< T, POL >::~sc_signal | ( | ) | [inline, virtual] |
Definition at line 104 of file sc_signal.h.
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.
void sc_core::sc_signal< T, POL >::do_update | ( | ) | [inline, protected] |
Definition at line 294 of file sc_signal.h.
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.
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.
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.
const T& sc_core::sc_signal< T, POL >::get_new_value | ( | ) | const [inline] |
Definition at line 173 of file sc_signal.h.
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.
virtual const char* sc_core::sc_signal< T, POL >::kind | ( | ) | const [inline, virtual] |
Reimplemented from sc_core::sc_prim_channel.
Reimplemented in sc_core::sc_buffer< T, POL >, sc_core::sc_clock, sc_core::sc_signal_resolved, and sc_core::sc_signal_rv< W >.
Definition at line 199 of file sc_signal.h.
sc_core::sc_signal< T, POL >::operator const T & | ( | ) | const [inline] |
Definition at line 159 of file sc_signal.h.
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.
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.
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.
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.
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.
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.
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.
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.
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.
void sc_core::sc_signal< T, POL >::write | ( | const T & | value_ | ) | [inline, virtual] |
Implements sc_core::sc_signal_write_if< T >.
Reimplemented in sc_core::sc_buffer< T, POL >, sc_core::sc_clock, and sc_core::sc_signal_resolved.
Definition at line 241 of file sc_signal.h.
sc_event* sc_core::sc_signal< T, POL >::m_change_event_p [mutable, protected] |
Definition at line 209 of file sc_signal.h.
sc_dt::uint64 sc_core::sc_signal< T, POL >::m_change_stamp [protected] |
Definition at line 211 of file sc_signal.h.
T sc_core::sc_signal< T, POL >::m_cur_val [protected] |
Definition at line 210 of file sc_signal.h.
T sc_core::sc_signal< T, POL >::m_new_val [protected] |
Definition at line 212 of file sc_signal.h.