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

sc_dt::sc_fxnum Class Reference

#include <sc_fxnum.h>

Inheritance diagram for sc_dt::sc_fxnum:

Inheritance graph
[legend]
Collaboration diagram for sc_dt::sc_fxnum:

Collaboration graph
[legend]
List of all members.

Public Methods

const sc_fxval operator- () const
const sc_fxval operator+ () const
const sc_fxval operator++ (int)
const sc_fxval operator-- (int)
sc_fxnum & operator++ ()
sc_fxnum & operator-- ()
const sc_fxnum_bitref operator[] (int) const
sc_fxnum_bitref operator[] (int)
const sc_fxnum_bitref bit (int) const
sc_fxnum_bitref bit (int)
const sc_fxnum_subref operator() (int, int) const
sc_fxnum_subref operator() (int, int)
const sc_fxnum_subref range (int, int) const
sc_fxnum_subref range (int, int)
const sc_fxnum_subref operator() () const
sc_fxnum_subref operator() ()
const sc_fxnum_subref range () const
sc_fxnum_subref range ()
 operator double () const
short to_short () const
unsigned short to_ushort () const
int to_int () const
unsigned int to_uint () const
long to_long () const
unsigned long to_ulong () const
float to_float () const
double to_double () const
const sc_string to_string () const
const sc_string to_string (sc_numrep) const
const sc_string to_string (sc_numrep, bool) const
const sc_string to_string (sc_fmt) const
const sc_string to_string (sc_numrep, sc_fmt) const
const sc_string to_string (sc_numrep, bool, sc_fmt) const
const sc_string to_dec () const
const sc_string to_bin () const
const sc_string to_oct () const
const sc_string to_hex () const
bool is_neg () const
bool is_zero () const
bool is_normal () const
bool quantization_flag () const
bool overflow_flag () const
const sc_fxval value () const
int wl () const
int iwl () const
sc_q_mode q_mode () const
sc_o_mode o_mode () const
int n_bits () const
const sc_fxtype_paramstype_params () const
const sc_fxcast_switchcast_switch () const
void print (ostream &=cout) const
void scan (istream &=cin)
void dump (ostream &=cout) const
void observer_read () const
bool get_bit (int) const

Protected Methods

sc_fxnum_observerobserver () const
void cast ()
 sc_fxnum (const sc_fxtype_params &, sc_enc, const sc_fxcast_switch &, sc_fxnum_observer *)
 ~sc_fxnum ()
const scfx_repget_rep () const
bool set_bit (int, bool)
bool get_slice (int, int, sc_bv_base &) const
bool set_slice (int, int, const sc_bv_base &)
sc_fxnum_observerlock_observer () const
void unlock_observer (sc_fxnum_observer *) const

Friends

class sc_fxval
class sc_fxnum_bitref
class sc_fxnum_subref
class sc_fxnum_fast_bitref
class sc_fxnum_fast_subref
class ::vcd_sc_fxnum_trace
class ::wif_sc_fxnum_trace
void neg (sc_fxval &, const sc_fxnum &)
void neg (sc_fxnum &, const sc_fxnum &)
const sc_fxval operator/ (const sc_fxnum &, const sc_fxnum &)
const sc_fxval operator<< (const sc_fxnum &, int)
const sc_fxval operator>> (const sc_fxnum &, int)
void lshift (sc_fxval &, const sc_fxnum &, int)
void rshift (sc_fxval &, const sc_fxnum &, int)
void lshift (sc_fxnum &, const sc_fxnum &, int)
void rshift (sc_fxnum &, const sc_fxnum &, int)

Constructor & Destructor Documentation

sc_dt::sc_fxnum::sc_fxnum const sc_fxtype_params  ,
sc_enc   ,
const sc_fxcast_switch  ,
sc_fxnum_observer  
[inline, protected]
 

Definition at line 2502 of file sc_fxnum.h.

References sc_dt::m_observer(), sc_dt::sc_enc, SC_FXNUM_OBSERVER_CONSTRUCT_, and SC_FXNUM_OBSERVER_DEFAULT_.

sc_dt::sc_fxnum::~sc_fxnum   [inline, protected]
 

Definition at line 2567 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_DESTRUCT_.


Member Function Documentation

sc_fxnum_bitref sc_dt::sc_fxnum::bit int    [inline]
 

Definition at line 3249 of file sc_fxnum.h.

References sc_dt::scfx_params::fwl(), SC_ERROR_IF_, sc_fxnum_bitref, and sc_dt::scfx_params::wl().

const sc_fxnum_bitref sc_dt::sc_fxnum::bit int    const [inline]
 

Definition at line 3240 of file sc_fxnum.h.

References sc_dt::scfx_params::fwl(), SC_ERROR_IF_, sc_fxnum_bitref, and sc_dt::scfx_params::wl().

void sc_dt::sc_fxnum::cast   [inline, protected]
 

Definition at line 2490 of file sc_fxnum.h.

References sc_dt::scfx_rep::cast(), sc_dt::scfx_params::cast_switch(), sc_dt::scfx_rep::is_normal(), SC_ERROR_IF_, and sc_dt::SC_ON.

Referenced by sc_dt::b_not(), sc_dt::lshift(), sc_dt::neg(), and sc_dt::rshift().

const sc_fxcast_switch & sc_dt::sc_fxnum::cast_switch   [inline]
 

Definition at line 3506 of file sc_fxnum.h.

References sc_dt::scfx_params::cast_switch().

void sc_dt::sc_fxnum::dump ostream &    = cout const
 

Definition at line 326 of file sc_fxnum.cpp.

References sc_dt::scfx_params::dump(), and sc_dt::scfx_rep::dump().

Referenced by sc_dt::sc_fxnum_subref::dump(), and sc_dt::sc_fxnum_bitref::dump().

bool sc_dt::sc_fxnum::get_bit int    const [inline]
 

Definition at line 3524 of file sc_fxnum.h.

References sc_dt::scfx_rep::get_bit().

Referenced by sc_dt::b_not(), sc_dt::sc_ufix::operator~(), and sc_dt::sc_fix::operator~().

const scfx_rep * sc_dt::sc_fxnum::get_rep   [inline, protected]
 

Definition at line 2577 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_.

bool sc_dt::sc_fxnum::get_slice int   ,
int   ,
sc_bv_base  
const [inline, protected]
 

Definition at line 3545 of file sc_fxnum.h.

References sc_dt::scfx_rep::get_slice().

bool sc_dt::sc_fxnum::is_neg   [inline]
 

Definition at line 3411 of file sc_fxnum.h.

References sc_dt::scfx_rep::is_neg(), and SC_FXNUM_OBSERVER_READ_.

bool sc_dt::sc_fxnum::is_normal   [inline]
 

Definition at line 3428 of file sc_fxnum.h.

References sc_dt::scfx_rep::is_normal(), and SC_FXNUM_OBSERVER_READ_.

bool sc_dt::sc_fxnum::is_zero   [inline]
 

Definition at line 3419 of file sc_fxnum.h.

References sc_dt::scfx_rep::is_zero(), and SC_FXNUM_OBSERVER_READ_.

int sc_dt::sc_fxnum::iwl   [inline]
 

Definition at line 3469 of file sc_fxnum.h.

References sc_dt::scfx_params::iwl().

Referenced by sc_dt::b_not(), sc_dt::sc_ufix::operator~(), and sc_dt::sc_fix::operator~().

sc_fxnum_observer * sc_dt::sc_fxnum::lock_observer   [protected]
 

Definition at line 347 of file sc_fxnum.cpp.

References SC_ASSERT_.

int sc_dt::sc_fxnum::n_bits   [inline]
 

Definition at line 3490 of file sc_fxnum.h.

References sc_dt::scfx_params::n_bits().

sc_o_mode sc_dt::sc_fxnum::o_mode   [inline]
 

Definition at line 3483 of file sc_fxnum.h.

References sc_dt::scfx_params::o_mode().

sc_fxnum_observer * sc_dt::sc_fxnum::observer   [inline, protected]
 

Definition at line 2482 of file sc_fxnum.h.

void sc_dt::sc_fxnum::observer_read   [inline]
 

Definition at line 3515 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_.

sc_dt::sc_fxnum::operator double   [inline]
 

Definition at line 3333 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

sc_fxnum_subref sc_dt::sc_fxnum::operator()   [inline]
 

Definition at line 3310 of file sc_fxnum.h.

References operator()(), and sc_dt::scfx_params::wl().

const sc_fxnum_subref sc_dt::sc_fxnum::operator()   [inline]
 

Definition at line 3303 of file sc_fxnum.h.

References sc_dt::scfx_params::wl().

Referenced by operator()().

sc_fxnum_subref sc_dt::sc_fxnum::operator() int   ,
int   
[inline]
 

Definition at line 3271 of file sc_fxnum.h.

References sc_dt::scfx_params::fwl(), SC_ERROR_IF_, sc_fxnum_subref, and sc_dt::scfx_params::wl().

const sc_fxnum_subref sc_dt::sc_fxnum::operator() int   ,
int   
const [inline]
 

Definition at line 3260 of file sc_fxnum.h.

References sc_dt::scfx_params::fwl(), SC_ERROR_IF_, sc_fxnum_subref, and sc_dt::scfx_params::wl().

const sc_fxval sc_dt::sc_fxnum::operator+   [inline]
 

Definition at line 2596 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_fxval.

sc_fxnum & sc_dt::sc_fxnum::operator++   [inline]
 

Reimplemented in sc_dt::sc_fix, sc_dt::sc_fixed< W, I, Q, O, N >, sc_dt::sc_ufix, and sc_dt::sc_ufixed< W, I, Q, O, N >.

Definition at line 3204 of file sc_fxnum.h.

const sc_fxval sc_dt::sc_fxnum::operator++ int    [inline]
 

Reimplemented in sc_dt::sc_fix, sc_dt::sc_fixed< W, I, Q, O, N >, sc_dt::sc_ufix, and sc_dt::sc_ufixed< W, I, Q, O, N >.

Definition at line 3186 of file sc_fxnum.h.

const sc_fxval sc_dt::sc_fxnum::operator-   [inline]
 

Definition at line 2588 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_fxval.

sc_fxnum & sc_dt::sc_fxnum::operator--   [inline]
 

Reimplemented in sc_dt::sc_fix, sc_dt::sc_fixed< W, I, Q, O, N >, sc_dt::sc_ufix, and sc_dt::sc_ufixed< W, I, Q, O, N >.

Definition at line 3212 of file sc_fxnum.h.

const sc_fxval sc_dt::sc_fxnum::operator-- int    [inline]
 

Reimplemented in sc_dt::sc_fix, sc_dt::sc_fixed< W, I, Q, O, N >, sc_dt::sc_ufix, and sc_dt::sc_ufixed< W, I, Q, O, N >.

Definition at line 3195 of file sc_fxnum.h.

sc_fxnum_bitref sc_dt::sc_fxnum::operator[] int    [inline]
 

Definition at line 3232 of file sc_fxnum.h.

References sc_dt::scfx_params::fwl(), SC_ERROR_IF_, sc_fxnum_bitref, and sc_dt::scfx_params::wl().

const sc_fxnum_bitref sc_dt::sc_fxnum::operator[] int    const [inline]
 

Definition at line 3223 of file sc_fxnum.h.

References sc_dt::scfx_params::fwl(), SC_ERROR_IF_, sc_fxnum_bitref, and sc_dt::scfx_params::wl().

bool sc_dt::sc_fxnum::overflow_flag   [inline]
 

Definition at line 3443 of file sc_fxnum.h.

void sc_dt::sc_fxnum::print ostream &    = cout const
 

Definition at line 312 of file sc_fxnum.cpp.

References SC_DEC, sc_dt::SC_F, and sc_dt::scfx_rep::to_string().

Referenced by sc_dt::operator<<().

sc_q_mode sc_dt::sc_fxnum::q_mode   [inline]
 

Definition at line 3476 of file sc_fxnum.h.

References sc_dt::scfx_params::q_mode().

bool sc_dt::sc_fxnum::quantization_flag   [inline]
 

Definition at line 3436 of file sc_fxnum.h.

sc_fxnum_subref sc_dt::sc_fxnum::range   [inline]
 

Definition at line 3324 of file sc_fxnum.h.

References range(), and sc_dt::scfx_params::wl().

const sc_fxnum_subref sc_dt::sc_fxnum::range   [inline]
 

Definition at line 3317 of file sc_fxnum.h.

References sc_dt::scfx_params::wl().

Referenced by range().

sc_fxnum_subref sc_dt::sc_fxnum::range int   ,
int   
[inline]
 

Definition at line 3292 of file sc_fxnum.h.

References sc_dt::scfx_params::fwl(), SC_ERROR_IF_, sc_fxnum_subref, and sc_dt::scfx_params::wl().

const sc_fxnum_subref sc_dt::sc_fxnum::range int   ,
int   
const [inline]
 

Definition at line 3281 of file sc_fxnum.h.

References sc_dt::scfx_params::fwl(), SC_ERROR_IF_, sc_fxnum_subref, and sc_dt::scfx_params::wl().

void sc_dt::sc_fxnum::scan istream &    = cin
 

Definition at line 318 of file sc_fxnum.cpp.

References sc_string::c_str(), and s.

Referenced by sc_dt::operator>>().

bool sc_dt::sc_fxnum::set_bit int   ,
bool   
[inline, protected]
 

Definition at line 3534 of file sc_fxnum.h.

References sc_dt::scfx_rep::clear(), and sc_dt::scfx_rep::set().

Referenced by sc_dt::b_not(), sc_dt::sc_ufix::operator~(), and sc_dt::sc_fix::operator~().

bool sc_dt::sc_fxnum::set_slice int   ,
int   ,
const sc_bv_base  
[inline, protected]
 

Definition at line 3552 of file sc_fxnum.h.

References sc_dt::scfx_rep::set_slice().

const sc_string sc_dt::sc_fxnum::to_bin  
 

Definition at line 291 of file sc_fxnum.cpp.

References SC_BIN, sc_dt::SC_F, and sc_dt::scfx_rep::to_string().

Referenced by sc_dt::convert_to_bin().

const sc_string sc_dt::sc_fxnum::to_dec  
 

Definition at line 285 of file sc_fxnum.cpp.

References SC_DEC, sc_dt::SC_F, and sc_dt::scfx_rep::to_string().

double sc_dt::sc_fxnum::to_double   [inline]
 

Definition at line 3400 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

float sc_dt::sc_fxnum::to_float   [inline]
 

Definition at line 3392 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

const sc_string sc_dt::sc_fxnum::to_hex  
 

Definition at line 303 of file sc_fxnum.cpp.

References sc_dt::SC_F, SC_HEX, and sc_dt::scfx_rep::to_string().

int sc_dt::sc_fxnum::to_int   [inline]
 

Definition at line 3360 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

long sc_dt::sc_fxnum::to_long   [inline]
 

Definition at line 3376 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

const sc_string sc_dt::sc_fxnum::to_oct  
 

Definition at line 297 of file sc_fxnum.cpp.

References sc_dt::SC_F, SC_OCT, and sc_dt::scfx_rep::to_string().

short sc_dt::sc_fxnum::to_short   [inline]
 

Definition at line 3344 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

const sc_string sc_dt::sc_fxnum::to_string sc_numrep   ,
bool   ,
sc_fmt   
const
 

Definition at line 277 of file sc_fxnum.cpp.

References sc_dt::sc_fmt, sc_numrep, and sc_dt::scfx_rep::to_string().

const sc_string sc_dt::sc_fxnum::to_string sc_numrep   ,
sc_fmt   
const
 

Definition at line 271 of file sc_fxnum.cpp.

References sc_dt::sc_fmt, sc_numrep, and sc_dt::scfx_rep::to_string().

const sc_string sc_dt::sc_fxnum::to_string sc_fmt    const
 

Definition at line 265 of file sc_fxnum.cpp.

References SC_DEC, sc_dt::sc_fmt, and sc_dt::scfx_rep::to_string().

const sc_string sc_dt::sc_fxnum::to_string sc_numrep   ,
bool   
const
 

Definition at line 258 of file sc_fxnum.cpp.

References sc_dt::SC_F, sc_numrep, and sc_dt::scfx_rep::to_string().

const sc_string sc_dt::sc_fxnum::to_string sc_numrep    const
 

Definition at line 252 of file sc_fxnum.cpp.

References sc_dt::SC_F, sc_numrep, and sc_dt::scfx_rep::to_string().

const sc_string sc_dt::sc_fxnum::to_string  
 

Definition at line 246 of file sc_fxnum.cpp.

References SC_DEC, sc_dt::SC_F, and sc_dt::scfx_rep::to_string().

Referenced by sc_dt::convert_to_fmt(), sc_dt::sc_unsigned::to_string(), sc_dt::sc_uint_base::to_string(), sc_dt::sc_signed::to_string(), and sc_dt::sc_int_base::to_string().

unsigned int sc_dt::sc_fxnum::to_uint   [inline]
 

Definition at line 3368 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

unsigned long sc_dt::sc_fxnum::to_ulong   [inline]
 

Definition at line 3384 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

unsigned short sc_dt::sc_fxnum::to_ushort   [inline]
 

Definition at line 3352 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_dt::scfx_rep::to_double().

const sc_fxtype_params & sc_dt::sc_fxnum::type_params   [inline]
 

Definition at line 3498 of file sc_fxnum.h.

References sc_dt::scfx_params::type_params().

void sc_dt::sc_fxnum::unlock_observer sc_fxnum_observer   const [protected]
 

Definition at line 356 of file sc_fxnum.cpp.

References SC_ASSERT_.

const sc_fxval sc_dt::sc_fxnum::value   [inline]
 

Definition at line 3451 of file sc_fxnum.h.

References SC_FXNUM_OBSERVER_READ_, and sc_fxval.

int sc_dt::sc_fxnum::wl   [inline]
 

Definition at line 3462 of file sc_fxnum.h.

References sc_dt::scfx_params::wl().

Referenced by sc_dt::b_not(), sc_dt::sc_ufix::operator~(), and sc_dt::sc_fix::operator~().


Friends And Related Function Documentation

friend class ::vcd_sc_fxnum_trace [friend]
 

Definition at line 543 of file sc_fxnum.h.

friend class ::wif_sc_fxnum_trace [friend]
 

Definition at line 544 of file sc_fxnum.h.

void lshift sc_fxnum &    c,
const sc_fxnum &    a,
int    b
[friend]
 

Definition at line 2919 of file sc_fxnum.h.

void lshift sc_fxval   c,
const sc_fxnum &    a,
int    b
[friend]
 

Definition at line 2903 of file sc_fxnum.h.

void neg sc_fxnum &    c,
const sc_fxnum &    a
[friend]
 

Definition at line 2615 of file sc_fxnum.h.

void neg sc_fxval   c,
const sc_fxnum &    a
[friend]
 

Definition at line 2607 of file sc_fxnum.h.

const sc_fxval operator/ const sc_fxnum &    a,
const sc_fxnum &    b
[friend]
 

Definition at line 2701 of file sc_fxnum.h.

const sc_fxval operator<< const sc_fxnum &    a,
int    b
[friend]
 

Definition at line 2749 of file sc_fxnum.h.

const sc_fxval operator>> const sc_fxnum &    a,
int    b
[friend]
 

Definition at line 2757 of file sc_fxnum.h.

void rshift sc_fxnum &    c,
const sc_fxnum &    a,
int    b
[friend]
 

Definition at line 2930 of file sc_fxnum.h.

void rshift sc_fxval   c,
const sc_fxnum &    a,
int    b
[friend]
 

Definition at line 2911 of file sc_fxnum.h.

friend class sc_fxnum_bitref [friend]
 

Definition at line 538 of file sc_fxnum.h.

Referenced by bit(), and operator[]().

friend class sc_fxnum_fast_bitref [friend]
 

Definition at line 540 of file sc_fxnum.h.

friend class sc_fxnum_fast_subref [friend]
 

Definition at line 541 of file sc_fxnum.h.

friend class sc_fxnum_subref [friend]
 

Definition at line 539 of file sc_fxnum.h.

Referenced by operator()(), and range().

friend class sc_fxval [friend]
 

Definition at line 536 of file sc_fxnum.h.

Referenced by operator+(), sc_dt::sc_ufixed< W, I, Q, O, N >::operator++(), sc_dt::sc_ufix::operator++(), sc_dt::sc_fixed< W, I, Q, O, N >::operator++(), sc_dt::sc_fix::operator++(), operator-(), sc_dt::sc_ufixed< W, I, Q, O, N >::operator--(), sc_dt::sc_ufix::operator--(), sc_dt::sc_fixed< W, I, Q, O, N >::operator--(), sc_dt::sc_fix::operator--(), and value().


The documentation for this class was generated from the following files:
Generated on Fri Jan 14 08:32:35 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18