Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_fxdefs.h File Reference

#include "systemc/datatypes/fx/sc_fx_ids.h"
#include "systemc/datatypes/int/sc_nbutils.h"
#include "systemc/utils/sc_string.h"

Include dependency graph for sc_fxdefs.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  sc_dt

Defines

#define SC_ASSERT_(cnd, msg)
#define SC_ERROR_IF_(cnd, id)
#define SC_CHECK_WL_(wl)   SC_ERROR_IF_( (wl) <= 0, SC_ID_INVALID_WL_ )
#define SC_CHECK_N_BITS_(n_bits)   SC_ERROR_IF_( (n_bits) < 0, SC_ID_INVALID_N_BITS_ )
#define SC_CHECK_DIV_WL_(div_wl)   SC_ERROR_IF_( (div_wl) <= 0, SC_ID_INVALID_DIV_WL_ )
#define SC_CHECK_CTE_WL_(cte_wl)   SC_ERROR_IF_( (cte_wl) <= 0, SC_ID_INVALID_CTE_WL_ )
#define SC_CHECK_MAX_WL_(max_wl)   SC_ERROR_IF_( (max_wl) <= 0 && (max_wl) != -1, SC_ID_INVALID_MAX_WL_ )
#define SC_OBSERVER_(object, observer_type, event)
#define SC_OBSERVER_DEFAULT_(observer_type)


Define Documentation

#define SC_ASSERT_ cnd,
msg   
 

Definition at line 245 of file sc_fxdefs.h.

Referenced by sc_dt::scfx_mant::half_addr(), sc_dt::scfx_mant::half_at(), sc_dt::sc_fxval_fast::lock_observer(), sc_dt::sc_fxval::lock_observer(), sc_dt::sc_fxnum_fast::lock_observer(), sc_dt::sc_fxnum::lock_observer(), sc_dt::scfx_mant::operator[](), sc_dt::scfx_csd2tc(), sc_dt::scfx_tc2csd(), sc_dt::sc_fxval_fast::unlock_observer(), sc_dt::sc_fxval::unlock_observer(), sc_dt::sc_fxnum_fast::unlock_observer(), and sc_dt::sc_fxnum::unlock_observer().

#define SC_CHECK_CTE_WL_ cte_wl       SC_ERROR_IF_( (cte_wl) <= 0, SC_ID_INVALID_CTE_WL_ )
 

Definition at line 264 of file sc_fxdefs.h.

#define SC_CHECK_DIV_WL_ div_wl       SC_ERROR_IF_( (div_wl) <= 0, SC_ID_INVALID_DIV_WL_ )
 

Definition at line 261 of file sc_fxdefs.h.

#define SC_CHECK_MAX_WL_ max_wl       SC_ERROR_IF_( (max_wl) <= 0 && (max_wl) != -1, SC_ID_INVALID_MAX_WL_ )
 

Definition at line 267 of file sc_fxdefs.h.

#define SC_CHECK_N_BITS_ n_bits       SC_ERROR_IF_( (n_bits) < 0, SC_ID_INVALID_N_BITS_ )
 

Definition at line 258 of file sc_fxdefs.h.

Referenced by sc_dt::sc_fxtype_params::n_bits(), and sc_dt::sc_fxtype_params::sc_fxtype_params().

#define SC_CHECK_WL_ wl       SC_ERROR_IF_( (wl) <= 0, SC_ID_INVALID_WL_ )
 

Definition at line 255 of file sc_fxdefs.h.

Referenced by sc_dt::sc_length_param::len(), sc_dt::sc_fxtype_params::sc_fxtype_params(), sc_dt::sc_length_param::sc_length_param(), and sc_dt::sc_fxtype_params::wl().

#define SC_ERROR_IF_ cnd,
id   
 

Value:

{                                                                             \
    if( cnd )                                                                 \
        SC_REPORT_ERROR( id, 0 );                                             \
}

Definition at line 248 of file sc_fxdefs.h.

Referenced by sc_dt::sc_fxnum_fast::bit(), sc_dt::sc_fxnum::bit(), sc_dt::sc_fxnum::cast(), sc_dt::sc_fxnum_fast::cast(), sc_dt::sc_fxnum_fast::operator()(), sc_dt::sc_fxnum::operator()(), sc_dt::sc_fxnum_fast::operator[](), sc_dt::sc_fxnum::operator[](), sc_dt::sc_fxnum_fast::range(), and sc_dt::sc_fxnum::range().

#define SC_OBSERVER_ object,
observer_type,
event   
 

Value:

{                                                                             \
    if( (object).observer() != 0 )                                            \
    {                                                                         \
  observer_type observer = (object).lock_observer();                    \
  observer->event( (object) );                                          \
  (object).unlock_observer( observer );                                 \
    }                                                                         \
}

Definition at line 275 of file sc_fxdefs.h.

#define SC_OBSERVER_DEFAULT_ observer_type   
 

Value:

{                                                                             \
    if( m_observer == 0 && observer_type ## ::default_observer != 0 )         \
        m_observer = (* ## observer_type ## ::default_observer)();            \
}

Definition at line 285 of file sc_fxdefs.h.


Generated on Fri Jan 14 08:29:40 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18