SystemC  Recoding Infrastructure for SystemC v0.6.2 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Protected Member Functions | Friends | List of all members
sc_dt::sc_fxnum Class Reference

#include <sysc/datatypes/fx/sc_fxnum.h>

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

Public Member Functions

const sc_fxval operator- () const
 
const sc_fxval operator+ () const
 
const sc_fxval operator++ (int)
 
const sc_fxval operator-- (int)
 
sc_fxnumoperator++ ()
 
sc_fxnumoperator-- ()
 
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
 
int64 to_int64 () const
 
uint64 to_uint64 () const
 
float to_float () const
 
double to_double () const
 
const std::string to_string () const
 
const std::string to_string (sc_numrep) const
 
const std::string to_string (sc_numrep, bool) const
 
const std::string to_string (sc_fmt) const
 
const std::string to_string (sc_numrep, sc_fmt) const
 
const std::string to_string (sc_numrep, bool, sc_fmt) const
 
const std::string to_dec () const
 
const std::string to_bin () const
 
const std::string to_oct () const
 
const std::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 (::std::ostream &=::std::cout) const
 
void scan (::std::istream &=::std::cin)
 
void dump (::std::ostream &=::std::cout) const
 
void observer_read () const
 
bool get_bit (int) const
 

Protected Member Functions

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 sc_core::vcd_sc_fxnum_trace
 
class sc_core::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)
 

Detailed Description

Definition at line 561 of file sc_fxnum.h.

Constructor & Destructor Documentation

sc_dt::sc_fxnum::sc_fxnum ( const sc_fxtype_params type_params_,
sc_enc  enc_,
const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ 
)
inlineprotected

Definition at line 2581 of file sc_fxnum.h.

sc_dt::sc_fxnum::~sc_fxnum ( )
inlineprotected

Definition at line 2647 of file sc_fxnum.h.

Member Function Documentation

const sc_fxnum_bitref sc_dt::sc_fxnum::bit ( int  i) const
inline

Definition at line 3326 of file sc_fxnum.h.

sc_fxnum_bitref sc_dt::sc_fxnum::bit ( int  i)
inline

Definition at line 3335 of file sc_fxnum.h.

void sc_dt::sc_fxnum::cast ( )
inlineprotected

Definition at line 2569 of file sc_fxnum.h.

const sc_fxcast_switch & sc_dt::sc_fxnum::cast_switch ( ) const
inline

Definition at line 3608 of file sc_fxnum.h.

void sc_dt::sc_fxnum::dump ( ::std::ostream &  = ::std::cout) const
bool sc_dt::sc_fxnum::get_bit ( int  i) const
inline

Definition at line 3626 of file sc_fxnum.h.

const scfx_rep * sc_dt::sc_fxnum::get_rep ( ) const
inlineprotected

Definition at line 2657 of file sc_fxnum.h.

bool sc_dt::sc_fxnum::get_slice ( int  i,
int  j,
sc_bv_base bv 
) const
inlineprotected

Definition at line 3647 of file sc_fxnum.h.

bool sc_dt::sc_fxnum::is_neg ( ) const
inline

Definition at line 3513 of file sc_fxnum.h.

bool sc_dt::sc_fxnum::is_normal ( ) const
inline

Definition at line 3530 of file sc_fxnum.h.

bool sc_dt::sc_fxnum::is_zero ( ) const
inline

Definition at line 3521 of file sc_fxnum.h.

int sc_dt::sc_fxnum::iwl ( ) const
inline

Definition at line 3571 of file sc_fxnum.h.

sc_fxnum_observer* sc_dt::sc_fxnum::lock_observer ( ) const
protected
int sc_dt::sc_fxnum::n_bits ( ) const
inline

Definition at line 3592 of file sc_fxnum.h.

sc_o_mode sc_dt::sc_fxnum::o_mode ( ) const
inline

Definition at line 3585 of file sc_fxnum.h.

sc_fxnum_observer * sc_dt::sc_fxnum::observer ( ) const
inlineprotected

Definition at line 2561 of file sc_fxnum.h.

void sc_dt::sc_fxnum::observer_read ( ) const
inline

Definition at line 3617 of file sc_fxnum.h.

sc_dt::sc_fxnum::operator double ( ) const
inline

Definition at line 3419 of file sc_fxnum.h.

const sc_fxnum_subref sc_dt::sc_fxnum::operator() ( int  i,
int  j 
) const
inline

Definition at line 3346 of file sc_fxnum.h.

sc_fxnum_subref sc_dt::sc_fxnum::operator() ( int  i,
int  j 
)
inline

Definition at line 3357 of file sc_fxnum.h.

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

Definition at line 3389 of file sc_fxnum.h.

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

Definition at line 3396 of file sc_fxnum.h.

const sc_fxval sc_dt::sc_fxnum::operator+ ( ) const
inline

Definition at line 2676 of file sc_fxnum.h.

const sc_fxval sc_dt::sc_fxnum::operator++ ( int  )
inline

Definition at line 3272 of file sc_fxnum.h.

sc_fxnum & sc_dt::sc_fxnum::operator++ ( )
inline

Definition at line 3290 of file sc_fxnum.h.

const sc_fxval sc_dt::sc_fxnum::operator- ( ) const
inline

Definition at line 2668 of file sc_fxnum.h.

const sc_fxval sc_dt::sc_fxnum::operator-- ( int  )
inline

Definition at line 3281 of file sc_fxnum.h.

sc_fxnum & sc_dt::sc_fxnum::operator-- ( )
inline

Definition at line 3298 of file sc_fxnum.h.

const sc_fxnum_bitref sc_dt::sc_fxnum::operator[] ( int  i) const
inline

Definition at line 3309 of file sc_fxnum.h.

sc_fxnum_bitref sc_dt::sc_fxnum::operator[] ( int  i)
inline

Definition at line 3318 of file sc_fxnum.h.

bool sc_dt::sc_fxnum::overflow_flag ( ) const
inline

Definition at line 3545 of file sc_fxnum.h.

void sc_dt::sc_fxnum::print ( ::std::ostream &  = ::std::cout) const
sc_q_mode sc_dt::sc_fxnum::q_mode ( ) const
inline

Definition at line 3578 of file sc_fxnum.h.

bool sc_dt::sc_fxnum::quantization_flag ( ) const
inline

Definition at line 3538 of file sc_fxnum.h.

const sc_fxnum_subref sc_dt::sc_fxnum::range ( int  i,
int  j 
) const
inline

Definition at line 3367 of file sc_fxnum.h.

sc_fxnum_subref sc_dt::sc_fxnum::range ( int  i,
int  j 
)
inline

Definition at line 3378 of file sc_fxnum.h.

const sc_fxnum_subref sc_dt::sc_fxnum::range ( ) const
inline

Definition at line 3403 of file sc_fxnum.h.

sc_fxnum_subref sc_dt::sc_fxnum::range ( )
inline

Definition at line 3410 of file sc_fxnum.h.

void sc_dt::sc_fxnum::scan ( ::std::istream &  = ::std::cin)
bool sc_dt::sc_fxnum::set_bit ( int  i,
bool  high 
)
inlineprotected

Definition at line 3636 of file sc_fxnum.h.

bool sc_dt::sc_fxnum::set_slice ( int  i,
int  j,
const sc_bv_base bv 
)
inlineprotected

Definition at line 3654 of file sc_fxnum.h.

const std::string sc_dt::sc_fxnum::to_bin ( ) const
const std::string sc_dt::sc_fxnum::to_dec ( ) const
double sc_dt::sc_fxnum::to_double ( ) const
inline

Definition at line 3502 of file sc_fxnum.h.

float sc_dt::sc_fxnum::to_float ( ) const
inline

Definition at line 3494 of file sc_fxnum.h.

const std::string sc_dt::sc_fxnum::to_hex ( ) const
int sc_dt::sc_fxnum::to_int ( ) const
inline

Definition at line 3446 of file sc_fxnum.h.

int64 sc_dt::sc_fxnum::to_int64 ( ) const
inline

Definition at line 3454 of file sc_fxnum.h.

long sc_dt::sc_fxnum::to_long ( ) const
inline

Definition at line 3478 of file sc_fxnum.h.

const std::string sc_dt::sc_fxnum::to_oct ( ) const
short sc_dt::sc_fxnum::to_short ( ) const
inline

Definition at line 3430 of file sc_fxnum.h.

const std::string sc_dt::sc_fxnum::to_string ( ) const
const std::string sc_dt::sc_fxnum::to_string ( sc_numrep  ) const
const std::string sc_dt::sc_fxnum::to_string ( sc_numrep  ,
bool   
) const
const std::string sc_dt::sc_fxnum::to_string ( sc_fmt  ) const
const std::string sc_dt::sc_fxnum::to_string ( sc_numrep  ,
sc_fmt   
) const
const std::string sc_dt::sc_fxnum::to_string ( sc_numrep  ,
bool  ,
sc_fmt   
) const
unsigned int sc_dt::sc_fxnum::to_uint ( ) const
inline

Definition at line 3462 of file sc_fxnum.h.

uint64 sc_dt::sc_fxnum::to_uint64 ( ) const
inline

Definition at line 3470 of file sc_fxnum.h.

unsigned long sc_dt::sc_fxnum::to_ulong ( ) const
inline

Definition at line 3486 of file sc_fxnum.h.

unsigned short sc_dt::sc_fxnum::to_ushort ( ) const
inline

Definition at line 3438 of file sc_fxnum.h.

const sc_fxtype_params & sc_dt::sc_fxnum::type_params ( ) const
inline

Definition at line 3600 of file sc_fxnum.h.

void sc_dt::sc_fxnum::unlock_observer ( sc_fxnum_observer ) const
protected
const sc_fxval sc_dt::sc_fxnum::value ( ) const
inline

Definition at line 3553 of file sc_fxnum.h.

int sc_dt::sc_fxnum::wl ( ) const
inline

Definition at line 3564 of file sc_fxnum.h.

Friends And Related Function Documentation

void lshift ( sc_fxval c,
const sc_fxnum a,
int  b 
)
friend

Definition at line 2986 of file sc_fxnum.h.

void lshift ( sc_fxnum c,
const sc_fxnum a,
int  b 
)
friend

Definition at line 3002 of file sc_fxnum.h.

void neg ( sc_fxval c,
const sc_fxnum a 
)
friend

Definition at line 2687 of file sc_fxnum.h.

void neg ( sc_fxnum c,
const sc_fxnum a 
)
friend

Definition at line 2695 of file sc_fxnum.h.

const sc_fxval operator/ ( const sc_fxnum a,
const sc_fxnum b 
)
friend

Definition at line 2782 of file sc_fxnum.h.

const sc_fxval operator<< ( const sc_fxnum a,
int  b 
)
friend

Definition at line 2831 of file sc_fxnum.h.

const sc_fxval operator>> ( const sc_fxnum a,
int  b 
)
friend

Definition at line 2839 of file sc_fxnum.h.

void rshift ( sc_fxval c,
const sc_fxnum a,
int  b 
)
friend

Definition at line 2994 of file sc_fxnum.h.

void rshift ( sc_fxnum c,
const sc_fxnum a,
int  b 
)
friend

Definition at line 3013 of file sc_fxnum.h.

friend class sc_core::vcd_sc_fxnum_trace
friend

Definition at line 570 of file sc_fxnum.h.

friend class sc_core::wif_sc_fxnum_trace
friend

Definition at line 571 of file sc_fxnum.h.

friend class sc_fxnum_bitref
friend

Definition at line 565 of file sc_fxnum.h.

friend class sc_fxnum_fast_bitref
friend

Definition at line 567 of file sc_fxnum.h.

friend class sc_fxnum_fast_subref
friend

Definition at line 568 of file sc_fxnum.h.

friend class sc_fxnum_subref
friend

Definition at line 566 of file sc_fxnum.h.

friend class sc_fxval
friend

Definition at line 563 of file sc_fxnum.h.


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