sc_core::sc_inout_resolved Class Reference

#include <sysc/communication/sc_signal_resolved_ports.h>

Inheritance diagram for sc_core::sc_inout_resolved:

Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_inout_resolved:

Collaboration graph
[legend]

List of all members.

Public Types

typedef sc_dt::sc_logic data_type
typedef sc_inout_resolved this_type
typedef sc_inout< data_typebase_type
typedef base_type::in_if_type in_if_type
typedef base_type::in_port_type in_port_type
typedef base_type::inout_if_type inout_if_type
typedef base_type::inout_port_type inout_port_type
typedef sc_signal_inout_if
< data_type
if_type

Public Member Functions

 sc_inout_resolved ()
 sc_inout_resolved (const char *name_)
 sc_inout_resolved (inout_if_type &interface_)
 sc_inout_resolved (const char *name_, inout_if_type &interface_)
 sc_inout_resolved (inout_port_type &parent_)
 sc_inout_resolved (const char *name_, inout_port_type &parent_)
 sc_inout_resolved (this_type &parent_)
 sc_inout_resolved (const char *name_, this_type &parent_)
virtual ~sc_inout_resolved ()
this_typeoperator= (const data_type &value_)
this_typeoperator= (const in_if_type &interface_)
this_typeoperator= (const in_port_type &port_)
this_typeoperator= (const inout_port_type &port_)
this_typeoperator= (const this_type &port_)
virtual void end_of_elaboration ()
 called by elaboration_done (does nothing)
virtual const char * kind () const
 sc_inout ()
 sc_inout (const char *name_)
 sc_inout (inout_if_type &interface_)
 sc_inout (const char *name_, inout_if_type &interface_)
 sc_inout (inout_port_type &parent_)
 sc_inout (const char *name_, inout_port_type &parent_)
 sc_inout (this_type &parent_)
 sc_inout (const char *name_, this_type &parent_)
const sc_eventdefault_event () const
const sc_eventvalue_changed_event () const
const sc_eventposedge_event () const
const sc_eventnegedge_event () const
const data_typeread () const
 operator const data_type & () const
sc_event_finderpos () const
sc_event_finderneg () const
bool event () const
bool posedge () const
bool negedge () const
void write (const data_type &value_)
void initialize (const data_type &value_)
void initialize (const in_if_type &interface_)
sc_event_findervalue_changed () const
void add_trace_internal (sc_trace_file *, const std::string &) const
void add_trace (sc_trace_file *, const std::string &) const
void bind (IF &interface_)
 bind an interface of type IF to this port
void bind (this_type &parent_)
 bind a parent port with type IF to this port
void operator() (IF &interface_)
 bind an interface of type IF to this port
void operator() (this_type &parent_)
 bind a parent port with type IF to this port
int size () const
 number of connected interfaces
IF * operator-> ()
 allow to call methods provided by the first interface
const IF * operator-> () const
 allow to call methods provided by the first interface
const IF * get_interface (int iface_i) const
 allow to call methods provided by interface at index
IF * get_interface (int iface_i)
 allow to call methods provided by interface at index
virtual sc_interfaceget_interface ()
 get the first interface without checking for nil
virtual const sc_interfaceget_interface () const
 get the first interface without checking for nil
IF * operator[] (int index_)
const IF * operator[] (int index_) const
 allow to call methods provided by interface at index
const char * name () const
 return full name of sc_object
const char * basename () const
 return base name of sc_object (last part)
virtual void print (::std::ostream &os=::std::cout) const
 print object
virtual void dump (::std::ostream &os=::std::cout) const
 dump() is more detailed than print()
virtual void trace (sc_trace_file *tf) const
sc_simcontextsimcontext () const
bool add_attribute (sc_attr_base &)
 add attribute
sc_attr_baseget_attribute (const std::string &name_)
 get attribute by name
const sc_attr_baseget_attribute (const std::string &name_) const
 get attribute by name
sc_attr_baseremove_attribute (const std::string &name_)
 remove attribute by name
void remove_all_attributes ()
 remove all attributes
int num_attributes () const
 get the number of attributes
sc_attr_cltnattr_cltn ()
 get the attribute collection
const sc_attr_cltnattr_cltn () const
 get the attribute collection
virtual const std::vector
< sc_object * > & 
get_child_objects () const
 return child objects
sc_objectget_parent () const
 return parent object
sc_objectget_parent_object () const
 return parent object

Protected Member Functions

void remove_traces () const
void bind (sc_interface &interface_)
 bind interface to this port
virtual int vbind (sc_interface &)
 called by pbind (for internal use only)
virtual int vbind (sc_port_base &)
virtual void make_sensitive (sc_thread_handle, sc_event_finder *=0) const
 called by the sc_sensitive* classes
virtual void make_sensitive (sc_method_handle, sc_event_finder *=0) const
virtual void before_end_of_elaboration ()
 called by construction_done (does nothing by default)
virtual void start_of_simulation ()
 called by start_simulation (does nothing by default)
virtual void end_of_simulation ()
 called by simulation_done (does nothing by default)
void report_error (const char *id, const char *add_msg=0) const
 error reporting
void add_static_event (sc_method_handle process_p, const sc_event &event) const
void add_static_event (sc_thread_handle process_p, const sc_event &event) const

Protected Attributes

data_typem_init_val
sc_trace_params_vecm_traces
sc_bind_infom_bind_info

Friends

class sc_sensitive
class sc_sensitive_neg
class sc_sensitive_pos


Detailed Description

Definition at line 154 of file sc_signal_resolved_ports.h.


Member Typedef Documentation

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 161 of file sc_signal_resolved_ports.h.

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 163 of file sc_signal_resolved_ports.h.

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 164 of file sc_signal_resolved_ports.h.

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 166 of file sc_signal_resolved_ports.h.

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 167 of file sc_signal_resolved_ports.h.

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 168 of file sc_signal_resolved_ports.h.

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 169 of file sc_signal_resolved_ports.h.

typedef sc_signal_inout_if<data_type> sc_core::sc_core::sc_inout< sc_dt::sc_logic >::if_type [inherited]

Definition at line 1423 of file sc_signal_ports.h.


Constructor & Destructor Documentation

sc_core::sc_inout_resolved::sc_inout_resolved (  )  [inline]

Definition at line 175 of file sc_signal_resolved_ports.h.

sc_core::sc_inout_resolved::sc_inout_resolved ( const char *  name_  )  [inline, explicit]

Definition at line 179 of file sc_signal_resolved_ports.h.

sc_core::sc_inout_resolved::sc_inout_resolved ( inout_if_type interface_  )  [inline, explicit]

Definition at line 183 of file sc_signal_resolved_ports.h.

sc_core::sc_inout_resolved::sc_inout_resolved ( const char *  name_,
inout_if_type interface_ 
) [inline]

Definition at line 187 of file sc_signal_resolved_ports.h.

sc_core::sc_inout_resolved::sc_inout_resolved ( inout_port_type parent_  )  [inline, explicit]

Definition at line 191 of file sc_signal_resolved_ports.h.

sc_core::sc_inout_resolved::sc_inout_resolved ( const char *  name_,
inout_port_type parent_ 
) [inline]

Definition at line 195 of file sc_signal_resolved_ports.h.

sc_core::sc_inout_resolved::sc_inout_resolved ( this_type parent_  )  [inline]

Definition at line 199 of file sc_signal_resolved_ports.h.

sc_core::sc_inout_resolved::sc_inout_resolved ( const char *  name_,
this_type parent_ 
) [inline]

Definition at line 203 of file sc_signal_resolved_ports.h.

virtual sc_core::sc_inout_resolved::~sc_inout_resolved (  )  [inline, virtual]

Definition at line 210 of file sc_signal_resolved_ports.h.


Member Function Documentation

this_type& sc_core::sc_inout_resolved::operator= ( const data_type value_  )  [inline]

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 216 of file sc_signal_resolved_ports.h.

this_type& sc_core::sc_inout_resolved::operator= ( const in_if_type interface_  )  [inline]

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 219 of file sc_signal_resolved_ports.h.

this_type& sc_core::sc_inout_resolved::operator= ( const in_port_type port_  )  [inline]

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 222 of file sc_signal_resolved_ports.h.

this_type& sc_core::sc_inout_resolved::operator= ( const inout_port_type port_  )  [inline]

this_type& sc_core::sc_inout_resolved::operator= ( const this_type port_  )  [inline]

void sc_core::sc_inout_resolved::end_of_elaboration (  )  [virtual]

called by elaboration_done (does nothing)

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Definition at line 83 of file sc_signal_resolved_ports.cpp.

virtual const char* sc_core::sc_inout_resolved::kind (  )  const [inline, virtual]

Reimplemented from sc_core::sc_core::sc_inout< sc_dt::sc_logic >.

Reimplemented in sc_core::sc_out_resolved.

Definition at line 238 of file sc_signal_resolved_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::sc_inout (  )  [inline, inherited]

Definition at line 1436 of file sc_signal_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::sc_inout ( const char *  name_  )  [inline, explicit, inherited]

Definition at line 1441 of file sc_signal_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::sc_inout ( inout_if_type interface_  )  [inline, explicit, inherited]

Definition at line 1446 of file sc_signal_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::sc_inout ( const char *  name_,
inout_if_type interface_ 
) [inline, inherited]

Definition at line 1451 of file sc_signal_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::sc_inout ( inout_port_type parent_  )  [inline, explicit, inherited]

Definition at line 1456 of file sc_signal_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::sc_inout ( const char *  name_,
inout_port_type parent_ 
) [inline, inherited]

Definition at line 1461 of file sc_signal_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::sc_inout ( this_type parent_  )  [inline, inherited]

Definition at line 1466 of file sc_signal_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::sc_inout ( const char *  name_,
this_type parent_ 
) [inline, inherited]

Definition at line 1471 of file sc_signal_ports.h.

const sc_event& sc_core::sc_core::sc_inout< sc_dt::sc_logic >::default_event (  )  const [inline, inherited]

Definition at line 1486 of file sc_signal_ports.h.

const sc_event& sc_core::sc_core::sc_inout< sc_dt::sc_logic >::value_changed_event (  )  const [inline, inherited]

Definition at line 1492 of file sc_signal_ports.h.

const sc_event& sc_core::sc_core::sc_inout< sc_dt::sc_logic >::posedge_event (  )  const [inline, inherited]

Definition at line 1497 of file sc_signal_ports.h.

const sc_event& sc_core::sc_core::sc_inout< sc_dt::sc_logic >::negedge_event (  )  const [inline, inherited]

Definition at line 1502 of file sc_signal_ports.h.

const data_type& sc_core::sc_core::sc_inout< sc_dt::sc_logic >::read (  )  const [inline, inherited]

Definition at line 1508 of file sc_signal_ports.h.

sc_core::sc_core::sc_inout< sc_dt::sc_logic >::operator const data_type & (  )  const [inline, inherited]

Definition at line 1511 of file sc_signal_ports.h.

sc_event_finder& sc_core::sc_core::sc_inout< sc_dt::sc_logic >::pos (  )  const [inline, inherited]

Definition at line 1517 of file sc_signal_ports.h.

sc_event_finder& sc_core::sc_core::sc_inout< sc_dt::sc_logic >::neg (  )  const [inline, inherited]

Definition at line 1529 of file sc_signal_ports.h.

bool sc_core::sc_core::sc_inout< sc_dt::sc_logic >::event (  )  const [inline, inherited]

Definition at line 1542 of file sc_signal_ports.h.

bool sc_core::sc_core::sc_inout< sc_dt::sc_logic >::posedge (  )  const [inline, inherited]

Definition at line 1547 of file sc_signal_ports.h.

bool sc_core::sc_core::sc_inout< sc_dt::sc_logic >::negedge (  )  const [inline, inherited]

Definition at line 1552 of file sc_signal_ports.h.

void sc_core::sc_core::sc_inout< sc_dt::sc_logic >::write ( const data_type value_  )  [inline, inherited]

Definition at line 1557 of file sc_signal_ports.h.

void sc_core::sc_core::sc_inout< sc_dt::sc_logic >::initialize ( const data_type value_  )  [inherited]

Definition at line 356 of file sc_signal_ports.cpp.

void sc_core::sc_core::sc_inout< sc_dt::sc_logic >::initialize ( const in_if_type interface_  )  [inline, inherited]

Definition at line 1580 of file sc_signal_ports.h.

sc_event_finder& sc_core::sc_core::sc_inout< sc_dt::sc_logic >::value_changed (  )  const [inline, inherited]

Definition at line 1593 of file sc_signal_ports.h.

void sc_core::sc_core::sc_inout< sc_dt::sc_logic >::add_trace_internal ( sc_trace_file tf_,
const std::string &  name_ 
) const [inherited]

Definition at line 394 of file sc_signal_ports.cpp.

void sc_core::sc_core::sc_inout< sc_dt::sc_logic >::add_trace ( sc_trace_file tf_,
const std::string &  name_ 
) const [inherited]

Definition at line 407 of file sc_signal_ports.cpp.

void sc_core::sc_core::sc_inout< sc_dt::sc_logic >::remove_traces (  )  const [protected, inherited]

Definition at line 415 of file sc_signal_ports.cpp.

template<class IF>
void sc_core::sc_port_b< IF >::bind ( IF &  interface_  )  [inline, inherited]

bind an interface of type IF to this port

Definition at line 308 of file sc_port.h.

template<class IF>
void sc_core::sc_port_b< IF >::bind ( this_type parent_  )  [inline, inherited]

bind a parent port with type IF to this port

Reimplemented from sc_core::sc_port_base.

Reimplemented in sc_core::sc_in< T >, sc_core::sc_core::sc_in< bool >, sc_core::sc_core::sc_in< sc_dt::sc_logic >, and sc_core::sc_in< sc_dt::sc_lv< W > >.

Definition at line 318 of file sc_port.h.

void sc_core::sc_port_base::bind ( sc_interface interface_  )  [protected, inherited]

bind interface to this port

Definition at line 304 of file sc_port.cpp.

template<class IF>
void sc_core::sc_port_b< IF >::operator() ( IF &  interface_  )  [inline, inherited]

bind an interface of type IF to this port

Definition at line 312 of file sc_port.h.

template<class IF>
void sc_core::sc_port_b< IF >::operator() ( this_type parent_  )  [inline, inherited]

bind a parent port with type IF to this port

Reimplemented in sc_core::sc_in< T >, sc_core::sc_core::sc_in< bool >, sc_core::sc_core::sc_in< sc_dt::sc_logic >, and sc_core::sc_in< sc_dt::sc_lv< W > >.

Definition at line 322 of file sc_port.h.

template<class IF>
int sc_core::sc_port_b< IF >::size (  )  const [inline, inherited]

number of connected interfaces

Definition at line 328 of file sc_port.h.

template<class IF>
IF * sc_core::sc_port_b< IF >::operator-> (  )  [inline, inherited]

allow to call methods provided by the first interface

Definition at line 492 of file sc_port.h.

template<class IF>
const IF * sc_core::sc_port_b< IF >::operator-> (  )  const [inline, inherited]

allow to call methods provided by the first interface

Definition at line 504 of file sc_port.h.

template<class IF>
const IF * sc_core::sc_port_b< IF >::get_interface ( int  iface_i  )  const [inline, inherited]

allow to call methods provided by interface at index

Definition at line 536 of file sc_port.h.

template<class IF>
IF * sc_core::sc_port_b< IF >::get_interface ( int  index_  )  [inline, inherited]

allow to call methods provided by interface at index

Note:
that we special-case index of zero, since the method may be called before binding has occurred, and we need to return a zero in that case not an error.

Definition at line 522 of file sc_port.h.

template<class IF>
virtual sc_interface* sc_core::sc_port_b< IF >::get_interface (  )  [inline, virtual, inherited]

get the first interface without checking for nil

Implements sc_core::sc_port_base.

Definition at line 350 of file sc_port.h.

template<class IF>
virtual const sc_interface* sc_core::sc_port_b< IF >::get_interface (  )  const [inline, virtual, inherited]

get the first interface without checking for nil

Implements sc_core::sc_port_base.

Definition at line 354 of file sc_port.h.

template<class IF>
IF* sc_core::sc_port_b< IF >::operator[] ( int  index_  )  [inline, inherited]

Definition at line 341 of file sc_port.h.

template<class IF>
const IF* sc_core::sc_port_b< IF >::operator[] ( int  index_  )  const [inline, inherited]

allow to call methods provided by interface at index

Definition at line 344 of file sc_port.h.

template<class IF>
int sc_core::sc_port_b< IF >::vbind ( sc_interface interface_  )  [inline, protected, virtual, inherited]

called by pbind (for internal use only)

Implements sc_core::sc_port_base.

Reimplemented in sc_core::sc_in< T >, sc_core::sc_core::sc_in< bool >, sc_core::sc_core::sc_in< sc_dt::sc_logic >, and sc_core::sc_in< sc_dt::sc_lv< W > >.

Definition at line 553 of file sc_port.h.

template<class IF>
int sc_core::sc_port_b< IF >::vbind ( sc_port_base parent_  )  [inline, protected, virtual, inherited]

template<class IF>
void sc_core::sc_port_b< IF >::make_sensitive ( sc_thread_handle  handle_,
sc_event_finder event_finder_ = 0 
) const [inline, protected, virtual, inherited]

called by the sc_sensitive* classes

Reimplemented from sc_core::sc_port_base.

Definition at line 625 of file sc_port.h.

template<class IF>
void sc_core::sc_port_b< IF >::make_sensitive ( sc_method_handle  handle_p,
sc_event_finder event_finder_ = 0 
) const [inline, protected, virtual, inherited]

Reimplemented from sc_core::sc_port_base.

Definition at line 646 of file sc_port.h.

void sc_core::sc_port_base::before_end_of_elaboration (  )  [protected, virtual, inherited]

called by construction_done (does nothing by default)

Definition at line 351 of file sc_port.cpp.

void sc_core::sc_port_base::start_of_simulation (  )  [protected, virtual, inherited]

called by start_simulation (does nothing by default)

Definition at line 362 of file sc_port.cpp.

void sc_core::sc_port_base::end_of_simulation (  )  [protected, virtual, inherited]

called by simulation_done (does nothing by default)

Definition at line 367 of file sc_port.cpp.

void sc_core::sc_port_base::report_error ( const char *  id,
const char *  add_msg = 0 
) const [protected, inherited]

error reporting

Definition at line 257 of file sc_port.cpp.

void sc_core::sc_port_base::add_static_event ( sc_method_handle  process_p,
const sc_event event 
) const [protected, inherited]

Definition at line 241 of file sc_port.cpp.

void sc_core::sc_port_base::add_static_event ( sc_thread_handle  process_p,
const sc_event event 
) const [protected, inherited]

Definition at line 247 of file sc_port.cpp.

const char* sc_core::sc_object::name (  )  const [inline, inherited]

return full name of sc_object

Definition at line 80 of file sc_object.h.

const char * sc_core::sc_object::basename (  )  const [inherited]

return base name of sc_object (last part)

Definition at line 95 of file sc_object.cpp.

void sc_core::sc_object::print ( ::std::ostream &  os = ::std::cout  )  const [virtual, inherited]

void sc_core::sc_object::dump ( ::std::ostream &  os = ::std::cout  )  const [virtual, inherited]

void sc_core::sc_object::trace ( sc_trace_file tf  )  const [virtual, inherited]

sc_simcontext* sc_core::sc_object::simcontext (  )  const [inline, inherited]

Definition at line 95 of file sc_object.h.

bool sc_core::sc_object::add_attribute ( sc_attr_base attribute_  )  [inherited]

add attribute

Definition at line 311 of file sc_object.cpp.

sc_attr_base * sc_core::sc_object::get_attribute ( const std::string &  name_  )  [inherited]

get attribute by name

Definition at line 321 of file sc_object.cpp.

const sc_attr_base * sc_core::sc_object::get_attribute ( const std::string &  name_  )  const [inherited]

get attribute by name

Definition at line 328 of file sc_object.cpp.

sc_attr_base * sc_core::sc_object::remove_attribute ( const std::string &  name_  )  [inherited]

remove attribute by name

Definition at line 338 of file sc_object.cpp.

void sc_core::sc_object::remove_all_attributes (  )  [inherited]

remove all attributes

Definition at line 350 of file sc_object.cpp.

int sc_core::sc_object::num_attributes (  )  const [inherited]

get the number of attributes

Definition at line 360 of file sc_object.cpp.

sc_attr_cltn & sc_core::sc_object::attr_cltn (  )  [inherited]

get the attribute collection

Definition at line 372 of file sc_object.cpp.

const sc_attr_cltn & sc_core::sc_object::attr_cltn (  )  const [inherited]

get the attribute collection

Definition at line 379 of file sc_object.cpp.

virtual const std::vector<sc_object*>& sc_core::sc_object::get_child_objects (  )  const [inline, virtual, inherited]

return child objects

Reimplemented in sc_core::sc_module, and sc_core::sc_process_b.

Definition at line 121 of file sc_object.h.

sc_object* sc_core::sc_object::get_parent (  )  const [inline, inherited]

return parent object

Definition at line 125 of file sc_object.h.

sc_object* sc_core::sc_object::get_parent_object (  )  const [inline, inherited]

return parent object

Definition at line 127 of file sc_object.h.


Friends And Related Function Documentation

template<class IF>
friend class sc_sensitive [friend, inherited]

Reimplemented from sc_core::sc_port_base.

Definition at line 295 of file sc_port.h.

template<class IF>
friend class sc_sensitive_neg [friend, inherited]

Reimplemented from sc_core::sc_port_base.

Definition at line 296 of file sc_port.h.

template<class IF>
friend class sc_sensitive_pos [friend, inherited]

Reimplemented from sc_core::sc_port_base.

Definition at line 297 of file sc_port.h.


Member Data Documentation

data_type* sc_core::sc_core::sc_inout< sc_dt::sc_logic >::m_init_val [protected, inherited]

Definition at line 1608 of file sc_signal_ports.h.

sc_trace_params_vec* sc_core::sc_core::sc_inout< sc_dt::sc_logic >::m_traces [mutable, protected, inherited]

Definition at line 1621 of file sc_signal_ports.h.

Definition at line 215 of file sc_port.h.


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

Generated on Wed Jan 21 15:32:14 2009 for SystemC by  doxygen 1.5.5