SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
sc_core::sc_signal_t< T, POL > Class Template Reference

#include <sysc/communication/sc_signal.h>

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

Public Member Functions

virtual const char * kind () const
 
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 sc_eventvalue_changed_event () const =0
 
virtual const T & read () const =0
 
virtual const T & get_data_ref () const =0
 
virtual bool event () const =0
 
- Public Member Functions inherited from sc_core::sc_interface
virtual void register_port (sc_port_base &port_, const char *if_typename_)
 
virtual const sc_eventdefault_event () const
 
virtual ~sc_interface ()
 
- Public Member Functions inherited from sc_core::sc_signal_write_if< T >
 sc_signal_write_if ()
 
virtual void write (const T &)=0
 
virtual sc_writer_policy get_writer_policy () const
 
- Public Member Functions inherited from sc_core::sc_signal_channel
virtual ~sc_signal_channel ()
 
virtual const char * kind () const
 
const sc_eventdefault_event () const
 
const sc_eventvalue_changed_event () const
 
bool event () const
 
- Public Member Functions inherited from sc_core::sc_prim_channel
virtual const char * kind () const
 
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
 
virtual void print (::std::ostream &os=::std::cout) const
 
virtual void dump (::std::ostream &os=::std::cout) const
 
virtual void trace (sc_trace_file *tf) const
 
virtual const char * kind () 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
 
virtual ~sc_object ()
 

Protected Types

typedef sc_signal_inout_if< T > if_type
 
typedef sc_signal_channel base_type
 
typedef sc_signal_t< T, POL > this_type
 
typedef sc_writer_policy_check< POL > policy_type
 

Protected Member Functions

 sc_signal_t (const char *name_, const T &initial_value_)
 
virtual ~sc_signal_t ()
 
virtual void update ()
 
void do_update ()
 
- Protected Member Functions inherited from sc_core::sc_signal_inout_if< T >
 sc_signal_inout_if ()
 
- Protected Member Functions inherited from sc_core::sc_signal_in_if< T >
 sc_signal_in_if ()
 
- Protected Member Functions inherited from sc_core::sc_interface
 sc_interface ()
 
- Protected Member Functions inherited from sc_core::sc_signal_channel
 sc_signal_channel (const char *name_)
 
void do_update ()
 
void deprecated_get_data_ref () const
 
void deprecated_get_new_value () const
 
void deprecated_trace () const
 
sc_eventlazy_kernel_event (sc_event **, const char *) const
 
void notify_next_delta (sc_event *ev) const
 
- Protected Member Functions inherited from sc_core::sc_prim_channel
 sc_prim_channel ()
 
 sc_prim_channel (const char *)
 
virtual ~sc_prim_channel ()
 
virtual void update ()
 
virtual void before_end_of_elaboration ()
 
virtual void end_of_elaboration ()
 
virtual void start_of_simulation ()
 
virtual void end_of_simulation ()
 
void async_attach_suspending ()
 
void async_detach_suspending ()
 
void wait ()
 
void wait (const sc_event &e)
 
void wait (const sc_event_or_list &el)
 
void wait (const sc_event_and_list &el)
 
void wait (const sc_time &t)
 
void wait (double v, sc_time_unit tu)
 
void wait (const sc_time &t, const sc_event &e)
 
void wait (double v, sc_time_unit tu, const sc_event &e)
 
void wait (const sc_time &t, const sc_event_or_list &el)
 
void wait (double v, sc_time_unit tu, const sc_event_or_list &el)
 
void wait (const sc_time &t, const sc_event_and_list &el)
 
void wait (double v, sc_time_unit tu, const sc_event_and_list &el)
 
void wait (int n)
 
void next_trigger ()
 
void next_trigger (const sc_event &e)
 
void next_trigger (const sc_event_or_list &el)
 
void next_trigger (const sc_event_and_list &el)
 
void next_trigger (const sc_time &t)
 
void next_trigger (double v, sc_time_unit tu)
 
void next_trigger (const sc_time &t, const sc_event &e)
 
void next_trigger (double v, sc_time_unit tu, const sc_event &e)
 
void next_trigger (const sc_time &t, const sc_event_or_list &el)
 
void next_trigger (double v, sc_time_unit tu, const sc_event_or_list &el)
 
void next_trigger (const sc_time &t, const sc_event_and_list &el)
 
void next_trigger (double v, sc_time_unit tu, const sc_event_and_list &el)
 
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 hierarchy_scope get_hierarchy_scope ()
 

Protected Attributes

m_cur_val
 
m_new_val
 
- Protected Attributes inherited from sc_core::sc_signal_channel
sc_eventm_change_event_p
 
sc_dt::uint64 m_change_stamp
 

Detailed Description

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

Definition at line 155 of file sc_signal.h.

Member Typedef Documentation

◆ base_type

template<class T , sc_writer_policy POL>
typedef sc_signal_channel sc_core::sc_signal_t< T, POL >::base_type
protected

Definition at line 162 of file sc_signal.h.

◆ if_type

template<class T , sc_writer_policy POL>
typedef sc_signal_inout_if<T> sc_core::sc_signal_t< T, POL >::if_type
protected

Definition at line 161 of file sc_signal.h.

◆ policy_type

template<class T , sc_writer_policy POL>
typedef sc_writer_policy_check<POL> sc_core::sc_signal_t< T, POL >::policy_type
protected

Definition at line 164 of file sc_signal.h.

◆ this_type

template<class T , sc_writer_policy POL>
typedef sc_signal_t<T,POL> sc_core::sc_signal_t< T, POL >::this_type
protected

Definition at line 163 of file sc_signal.h.

Constructor & Destructor Documentation

◆ sc_signal_t()

template<class T , sc_writer_policy POL>
sc_core::sc_signal_t< T, POL >::sc_signal_t ( const char *  name_,
const T &  initial_value_ 
)
inlineprotected

Definition at line 170 of file sc_signal.h.

◆ ~sc_signal_t()

template<class T , sc_writer_policy POL>
virtual sc_core::sc_signal_t< T, POL >::~sc_signal_t ( )
inlineprotectedvirtual

Definition at line 176 of file sc_signal.h.

Member Function Documentation

◆ default_event()

template<class T , sc_writer_policy POL>
virtual const sc_event & sc_core::sc_signal_t< T, POL >::default_event ( ) const
inlinevirtual

Reimplemented from sc_core::sc_interface.

Definition at line 191 of file sc_signal.h.

◆ do_update()

template<class T , sc_writer_policy POL>
void sc_core::sc_signal_t< T, POL >::do_update
inlineprotected

Definition at line 333 of file sc_signal.h.

◆ dump()

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

Reimplemented from sc_core::sc_object.

Definition at line 313 of file sc_signal.h.

◆ event()

template<class T , sc_writer_policy POL>
virtual bool sc_core::sc_signal_t< T, POL >::event ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< T >.

Definition at line 210 of file sc_signal.h.

◆ get_data_ref()

template<class T , sc_writer_policy POL>
virtual const T & sc_core::sc_signal_t< T, POL >::get_data_ref ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< T >.

Definition at line 203 of file sc_signal.h.

◆ get_new_value()

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

Definition at line 234 of file sc_signal.h.

◆ get_writer_policy()

template<class T , sc_writer_policy POL>
virtual sc_writer_policy sc_core::sc_signal_t< T, POL >::get_writer_policy ( ) const
inlinevirtual

Reimplemented from sc_core::sc_signal_write_if< T >.

Definition at line 187 of file sc_signal.h.

◆ kind()

template<class T , sc_writer_policy POL>
virtual const char * sc_core::sc_signal_t< T, POL >::kind ( ) const
inlinevirtual

◆ operator const T &()

template<class T , sc_writer_policy POL>
sc_core::sc_signal_t< T, POL >::operator const T & ( ) const
inline

Definition at line 219 of file sc_signal.h.

◆ operator=() [1/3]

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

Definition at line 227 of file sc_signal.h.

◆ operator=() [2/3]

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

Definition at line 224 of file sc_signal.h.

◆ operator=() [3/3]

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

Definition at line 230 of file sc_signal.h.

◆ print()

template<class T , sc_writer_policy POL>
void sc_core::sc_signal_t< T, POL >::print ( ::std::ostream &  os = ::std::cout) const
inlinevirtual

Reimplemented from sc_core::sc_object.

Definition at line 306 of file sc_signal.h.

◆ read()

template<class T , sc_writer_policy POL>
virtual const T & sc_core::sc_signal_t< T, POL >::read ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< T >.

Definition at line 199 of file sc_signal.h.

◆ register_port()

template<class T , sc_writer_policy POL>
void sc_core::sc_signal_t< T, POL >::register_port ( sc_port_base port_,
const char *  if_typename_ 
)
inlinevirtual

Reimplemented from sc_core::sc_interface.

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

Definition at line 275 of file sc_signal.h.

◆ trace()

template<class T , sc_writer_policy POL>
void sc_core::sc_signal_t< T, POL >::trace ( sc_trace_file tf) const
inlinevirtual

Reimplemented from sc_core::sc_object.

Definition at line 241 of file sc_signal.h.

◆ update()

template<class T , sc_writer_policy POL>
void sc_core::sc_signal_t< T, POL >::update
protectedvirtual

◆ value_changed_event()

template<class T , sc_writer_policy POL>
virtual const sc_event & sc_core::sc_signal_t< T, POL >::value_changed_event ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< T >.

Definition at line 195 of file sc_signal.h.

◆ write()

template<class T , sc_writer_policy POL>
void sc_core::sc_signal_t< T, POL >::write ( const T &  value_)
inlinevirtual

Member Data Documentation

◆ m_cur_val

template<class T , sc_writer_policy POL>
T sc_core::sc_signal_t< T, POL >::m_cur_val
protected

Definition at line 262 of file sc_signal.h.

◆ m_new_val

template<class T , sc_writer_policy POL>
T sc_core::sc_signal_t< T, POL >::m_new_val
protected

Definition at line 263 of file sc_signal.h.


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