227 #if defined( SC_FXDIV_WL ) && ( SC_FXDIV_WL > 0 ) 233 #if defined( SC_FXCTE_WL ) && ( SC_FXCTE_WL > 0 ) 239 #if defined( SC_FXMAX_WL ) && ( SC_FXMAX_WL > 0 || SC_FXMAX_WL == -1 ) 251 #define SC_ERROR_IF_IMPL_(cnd,id,msg) \ 254 SC_REPORT_ERROR( id, msg ); \ 255 sc_core::sc_abort(); \ 260 # define SC_ASSERT_(cnd,msg) \ 261 SC_ERROR_IF_IMPL_(!(cnd), sc_core::SC_ID_INTERNAL_ERROR_, msg ) 263 # define SC_ASSERT_(cnd,msg) (void(0)) 267 #define SC_ERROR_IF_(cnd,id) \ 268 SC_ERROR_IF_IMPL_( cnd, id, 0 ) 271 #define SC_CHECK_WL_(wl) \ 272 SC_ERROR_IF_( (wl) <= 0, sc_core::SC_ID_INVALID_WL_ ) 275 #define SC_CHECK_N_BITS_(n_bits) \ 276 SC_ERROR_IF_( (n_bits) < 0, sc_core::SC_ID_INVALID_N_BITS_ ) 279 #define SC_CHECK_DIV_WL_(div_wl) \ 280 SC_ERROR_IF_( (div_wl) <= 0, sc_core::SC_ID_INVALID_DIV_WL_ ) 283 #define SC_CHECK_CTE_WL_(cte_wl) \ 284 SC_ERROR_IF_( (cte_wl) <= 0, sc_core::SC_ID_INVALID_CTE_WL_ ) 287 #define SC_CHECK_MAX_WL_(max_wl) \ 288 SC_ERROR_IF_( (max_wl) <= 0 && (max_wl) != -1, \ 289 sc_core::SC_ID_INVALID_MAX_WL_ ) 297 #define SC_OBSERVER_(object,observer_type,event) \ 299 if( (object).observer() != 0 ) \ 301 observer_type observer = (object).lock_observer(); \ 302 observer->event( (object) ); \ 303 (object).unlock_observer( observer ); \ 308 #define SC_OBSERVER_DEFAULT_(observer_type) \ 310 if( m_observer == 0 && observer_type::default_observer != 0 ) \ 311 m_observer = (*observer_type::default_observer)(); \
const int SC_BUILTIN_IWL_
Report ids for the datatypes/fx code.
const sc_o_mode SC_DEFAULT_O_MODE_
sc_switch
Enumeration of switch states.
sc_enc
Enumeration of sign encodings.
const sc_o_mode SC_BUILTIN_O_MODE_
const sc_q_mode SC_DEFAULT_Q_MODE_
const int SC_DEFAULT_N_BITS_
const int SC_BUILTIN_CTE_WL_
const int SC_BUILTIN_N_BITS_
External and friend functions for both sc_signed and.
sc_fmt
Enumeration of formats for character string conversion.
SC_API const std::string to_string(sc_enc)
const sc_switch SC_DEFAULT_CAST_SWITCH_
const int SC_BUILTIN_MAX_WL_
rounding to plus infinity
const int SC_DEFAULT_IWL_
const sc_switch SC_BUILTIN_CAST_SWITCH_
sc_q_mode
Enumeration of quantization modes.
const sc_q_mode SC_BUILTIN_Q_MODE_
const int SC_DEFAULT_MAX_WL_
rounding to minus infinity
Machine-dependent Environment Settings.
const int SC_BUILTIN_DIV_WL_
inline ::std::ostream & operator<<(::std::ostream &os, const sc_bit &a)
sc_o_mode
Enumeration of overflow modes.
const int SC_DEFAULT_DIV_WL_
const int SC_DEFAULT_CTE_WL_