SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_dt::sc_ufix_fast Class Reference

"Unconstrained" unsigned fixed-point class; limited precision. More...

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

Inheritance diagram for sc_dt::sc_ufix_fast:
Collaboration diagram for sc_dt::sc_ufix_fast:

Public Member Functions

 sc_ufix_fast (sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (int, int, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (sc_q_mode, sc_o_mode, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (sc_q_mode, sc_o_mode, int, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (int, int, sc_q_mode, sc_o_mode, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (int, int, sc_q_mode, sc_o_mode, int, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (const sc_fxcast_switch &, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (int, int, const sc_fxcast_switch &, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (sc_q_mode, sc_o_mode, const sc_fxcast_switch &, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (sc_q_mode, sc_o_mode, int, const sc_fxcast_switch &, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (int, int, sc_q_mode, sc_o_mode, const sc_fxcast_switch &, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (int, int, sc_q_mode, sc_o_mode, int, const sc_fxcast_switch &, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (const sc_fxtype_params &, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (const sc_fxtype_params &, const sc_fxcast_switch &, sc_fxnum_fast_observer *=0)
 
 sc_ufix_fast (const sc_ufix_fast &)
 
const sc_ufix_fast operator~ () const
 
sc_ufix_fastoperator= (const sc_ufix_fast &)
 
const sc_fxval_fast operator++ (int)
 
const sc_fxval_fast operator-- (int)
 
sc_ufix_fastoperator++ ()
 
sc_ufix_fastoperator-- ()
 
const sc_fxval_fast operator- () const
 
const sc_fxval_fast operator+ () const
 
 DECL_BIN_OP_T (/, int64) DECL_BIN_OP_T(/
 
uint64 DECL_BIN_OP_T (/, const sc_int_base &) DECL_BIN_OP_T(/
 
uint64 const sc_uint_baseDECL_BIN_OP_T (/, const sc_signed &) friend const sc_fxval_fast operator<<(const sc_fxnum_fast &
 
const sc_fxnum_fast_bitref operator[] (int) const
 
sc_fxnum_fast_bitref operator[] (int)
 
const sc_fxnum_fast_bitref bit (int) const
 
sc_fxnum_fast_bitref bit (int)
 
const sc_fxnum_fast_subref operator() (int, int) const
 
sc_fxnum_fast_subref operator() (int, int)
 
const sc_fxnum_fast_subref operator() () const
 
sc_fxnum_fast_subref operator() ()
 
const sc_fxnum_fast_subref range (int, int) const
 
sc_fxnum_fast_subref range (int, int)
 
const sc_fxnum_fast_subref range () const
 
sc_fxnum_fast_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_fast 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
 

Public Attributes

uint64 const sc_uint_base int
 

Protected Member Functions

sc_fxnum_fast_observerobserver () const
 
void cast ()
 
double get_val () 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_fast_observerlock_observer () const
 
void unlock_observer (sc_fxnum_fast_observer *) const
 

Friends

void b_not (sc_ufix_fast &, const sc_ufix_fast &)
 
const sc_ufix_fast operator& (const sc_ufix_fast &, const sc_ufix_fast &)
 
const sc_ufix_fast operator^ (const sc_ufix_fast &, const sc_ufix_fast &)
 
const sc_ufix_fast operator| (const sc_ufix_fast &, const sc_ufix_fast &)
 
void b_and (sc_ufix_fast &, const sc_ufix_fast &, const sc_ufix_fast &)
 
void b_or (sc_ufix_fast &, const sc_ufix_fast &, const sc_ufix_fast &)
 
void b_xor (sc_ufix_fast &, const sc_ufix_fast &, const sc_ufix_fast &)
 

Detailed Description

"Unconstrained" unsigned fixed-point class; limited precision.

Definition at line 306 of file sc_ufix.h.

Constructor & Destructor Documentation

◆ sc_ufix_fast() [1/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( sc_fxnum_fast_observer observer_ = 0)
inlineexplicit

Definition at line 1248 of file sc_ufix.h.

◆ sc_ufix_fast() [2/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( int  wl_,
int  iwl_,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1256 of file sc_ufix.h.

◆ sc_ufix_fast() [3/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( sc_q_mode  qm,
sc_o_mode  om,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1265 of file sc_ufix.h.

◆ sc_ufix_fast() [4/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( sc_q_mode  qm,
sc_o_mode  om,
int  nb,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1274 of file sc_ufix.h.

◆ sc_ufix_fast() [5/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( int  wl_,
int  iwl_,
sc_q_mode  qm,
sc_o_mode  om,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1283 of file sc_ufix.h.

◆ sc_ufix_fast() [6/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( int  wl_,
int  iwl_,
sc_q_mode  qm,
sc_o_mode  om,
int  nb,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1292 of file sc_ufix.h.

◆ sc_ufix_fast() [7/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( const sc_fxcast_switch cast_sw,
sc_fxnum_fast_observer observer_ = 0 
)
inlineexplicit

Definition at line 1302 of file sc_ufix.h.

◆ sc_ufix_fast() [8/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( int  wl_,
int  iwl_,
const sc_fxcast_switch cast_sw,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1311 of file sc_ufix.h.

◆ sc_ufix_fast() [9/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( sc_q_mode  qm,
sc_o_mode  om,
const sc_fxcast_switch cast_sw,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1321 of file sc_ufix.h.

◆ sc_ufix_fast() [10/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( sc_q_mode  qm,
sc_o_mode  om,
int  nb,
const sc_fxcast_switch cast_sw,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1331 of file sc_ufix.h.

◆ sc_ufix_fast() [11/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( int  wl_,
int  iwl_,
sc_q_mode  qm,
sc_o_mode  om,
const sc_fxcast_switch cast_sw,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1341 of file sc_ufix.h.

◆ sc_ufix_fast() [12/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( int  wl_,
int  iwl_,
sc_q_mode  qm,
sc_o_mode  om,
int  nb,
const sc_fxcast_switch cast_sw,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1351 of file sc_ufix.h.

◆ sc_ufix_fast() [13/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( const sc_fxtype_params type_params_,
sc_fxnum_fast_observer observer_ = 0 
)
inlineexplicit

Definition at line 1362 of file sc_ufix.h.

◆ sc_ufix_fast() [14/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( const sc_fxtype_params type_params_,
const sc_fxcast_switch cast_sw,
sc_fxnum_fast_observer observer_ = 0 
)
inline

Definition at line 1371 of file sc_ufix.h.

◆ sc_ufix_fast() [15/15]

sc_dt::sc_ufix_fast::sc_ufix_fast ( const sc_ufix_fast a)
inline

Definition at line 1730 of file sc_ufix.h.

Member Function Documentation

◆ bit() [1/2]

const sc_fxnum_fast_bitref sc_dt::sc_fxnum_fast::bit ( int  i) const
inlineinherited

Definition at line 4447 of file sc_fxnum.h.

◆ bit() [2/2]

sc_fxnum_fast_bitref sc_dt::sc_fxnum_fast::bit ( int  i)
inlineinherited

Definition at line 4456 of file sc_fxnum.h.

◆ cast()

void sc_dt::sc_fxnum_fast::cast ( )
protectedinherited

◆ cast_switch()

const sc_fxcast_switch & sc_dt::sc_fxnum_fast::cast_switch ( ) const
inlineinherited

Definition at line 4751 of file sc_fxnum.h.

◆ DECL_BIN_OP_T() [1/3]

sc_dt::sc_fxnum_fast::DECL_BIN_OP_T ( ,
int64   
)
inherited

◆ DECL_BIN_OP_T() [2/3]

uint64 sc_dt::sc_fxnum_fast::DECL_BIN_OP_T ( ,
const sc_int_base  
)
inherited

◆ DECL_BIN_OP_T() [3/3]

uint64 const sc_uint_base& sc_dt::sc_fxnum_fast::DECL_BIN_OP_T ( ,
const sc_signed  
) const &
inherited

◆ dump()

void sc_dt::sc_fxnum_fast::dump ( ::std::ostream &  = ::std::cout) const
inherited

◆ get_bit()

bool sc_dt::sc_fxnum_fast::get_bit ( int  ) const
inherited

◆ get_slice()

bool sc_dt::sc_fxnum_fast::get_slice ( int  ,
int  ,
sc_bv_base  
) const
protectedinherited

◆ get_val()

double sc_dt::sc_fxnum_fast::get_val ( ) const
inlineprotectedinherited

Definition at line 3790 of file sc_fxnum.h.

◆ is_neg()

bool sc_dt::sc_fxnum_fast::is_neg ( ) const
inlineinherited

Definition at line 4652 of file sc_fxnum.h.

◆ is_normal()

bool sc_dt::sc_fxnum_fast::is_normal ( ) const
inlineinherited

Definition at line 4671 of file sc_fxnum.h.

◆ is_zero()

bool sc_dt::sc_fxnum_fast::is_zero ( ) const
inlineinherited

Definition at line 4661 of file sc_fxnum.h.

◆ iwl()

int sc_dt::sc_fxnum_fast::iwl ( ) const
inlineinherited

Definition at line 4714 of file sc_fxnum.h.

◆ lock_observer()

sc_fxnum_fast_observer* sc_dt::sc_fxnum_fast::lock_observer ( ) const
protectedinherited

◆ n_bits()

int sc_dt::sc_fxnum_fast::n_bits ( ) const
inlineinherited

Definition at line 4735 of file sc_fxnum.h.

◆ o_mode()

sc_o_mode sc_dt::sc_fxnum_fast::o_mode ( ) const
inlineinherited

Definition at line 4728 of file sc_fxnum.h.

◆ observer()

sc_fxnum_fast_observer * sc_dt::sc_fxnum_fast::observer ( ) const
inlineprotectedinherited

Definition at line 3688 of file sc_fxnum.h.

◆ observer_read()

void sc_dt::sc_fxnum_fast::observer_read ( ) const
inlineinherited

Definition at line 4760 of file sc_fxnum.h.

◆ operator double()

sc_dt::sc_fxnum_fast::operator double ( ) const
inlineinherited

Definition at line 4541 of file sc_fxnum.h.

◆ operator()() [1/4]

const sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::operator() ( int  i,
int  j 
) const
inlineinherited

Definition at line 4467 of file sc_fxnum.h.

◆ operator()() [2/4]

sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::operator() ( int  i,
int  j 
)
inlineinherited

Definition at line 4478 of file sc_fxnum.h.

◆ operator()() [3/4]

const sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::operator() ( ) const
inlineinherited

Definition at line 4511 of file sc_fxnum.h.

◆ operator()() [4/4]

sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::operator() ( )
inlineinherited

Definition at line 4518 of file sc_fxnum.h.

◆ operator+()

const sc_fxval_fast sc_dt::sc_fxnum_fast::operator+ ( ) const
inlineinherited

Definition at line 3809 of file sc_fxnum.h.

◆ operator++() [1/2]

const sc_fxval_fast sc_dt::sc_ufix_fast::operator++ ( int  )
inline

Definition at line 1908 of file sc_ufix.h.

◆ operator++() [2/2]

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

Definition at line 1922 of file sc_ufix.h.

◆ operator-()

const sc_fxval_fast sc_dt::sc_fxnum_fast::operator- ( ) const
inlineinherited

Definition at line 3801 of file sc_fxnum.h.

◆ operator--() [1/2]

const sc_fxval_fast sc_dt::sc_ufix_fast::operator-- ( int  )
inline

Definition at line 1915 of file sc_ufix.h.

◆ operator--() [2/2]

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

Definition at line 1930 of file sc_ufix.h.

◆ operator=()

sc_ufix_fast & sc_dt::sc_ufix_fast::operator= ( const sc_ufix_fast a)
inline

Definition at line 1823 of file sc_ufix.h.

◆ operator[]() [1/2]

const sc_fxnum_fast_bitref sc_dt::sc_fxnum_fast::operator[] ( int  i) const
inlineinherited

Definition at line 4430 of file sc_fxnum.h.

◆ operator[]() [2/2]

sc_fxnum_fast_bitref sc_dt::sc_fxnum_fast::operator[] ( int  i)
inlineinherited

Definition at line 4439 of file sc_fxnum.h.

◆ operator~()

const sc_ufix_fast sc_dt::sc_ufix_fast::operator~ ( ) const
inline

Definition at line 1743 of file sc_ufix.h.

◆ overflow_flag()

bool sc_dt::sc_fxnum_fast::overflow_flag ( ) const
inlineinherited

Definition at line 4688 of file sc_fxnum.h.

◆ print()

void sc_dt::sc_fxnum_fast::print ( ::std::ostream &  = ::std::cout) const
inherited

◆ q_mode()

sc_q_mode sc_dt::sc_fxnum_fast::q_mode ( ) const
inlineinherited

Definition at line 4721 of file sc_fxnum.h.

◆ quantization_flag()

bool sc_dt::sc_fxnum_fast::quantization_flag ( ) const
inlineinherited

Definition at line 4681 of file sc_fxnum.h.

◆ range() [1/4]

const sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::range ( int  i,
int  j 
) const
inlineinherited

Definition at line 4489 of file sc_fxnum.h.

◆ range() [2/4]

sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::range ( int  i,
int  j 
)
inlineinherited

Definition at line 4500 of file sc_fxnum.h.

◆ range() [3/4]

const sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::range ( ) const
inlineinherited

Definition at line 4525 of file sc_fxnum.h.

◆ range() [4/4]

sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::range ( )
inlineinherited

Definition at line 4532 of file sc_fxnum.h.

◆ scan()

void sc_dt::sc_fxnum_fast::scan ( ::std::istream &  = ::std::cin)
inherited

◆ set_bit()

bool sc_dt::sc_fxnum_fast::set_bit ( int  ,
bool   
)
protectedinherited

◆ set_slice()

bool sc_dt::sc_fxnum_fast::set_slice ( int  ,
int  ,
const sc_bv_base  
)
protectedinherited

◆ to_bin()

const std::string sc_dt::sc_fxnum_fast::to_bin ( ) const
inherited

◆ to_dec()

const std::string sc_dt::sc_fxnum_fast::to_dec ( ) const
inherited

◆ to_double()

double sc_dt::sc_fxnum_fast::to_double ( ) const
inlineinherited

Definition at line 4641 of file sc_fxnum.h.

◆ to_float()

float sc_dt::sc_fxnum_fast::to_float ( ) const
inlineinherited

Definition at line 4633 of file sc_fxnum.h.

◆ to_hex()

const std::string sc_dt::sc_fxnum_fast::to_hex ( ) const
inherited

◆ to_int()

int sc_dt::sc_fxnum_fast::to_int ( ) const
inlineinherited

Definition at line 4568 of file sc_fxnum.h.

◆ to_int64()

int64 sc_dt::sc_fxnum_fast::to_int64 ( ) const
inlineinherited

Definition at line 4576 of file sc_fxnum.h.

◆ to_long()

long sc_dt::sc_fxnum_fast::to_long ( ) const
inlineinherited

Definition at line 4617 of file sc_fxnum.h.

◆ to_oct()

const std::string sc_dt::sc_fxnum_fast::to_oct ( ) const
inherited

◆ to_short()

short sc_dt::sc_fxnum_fast::to_short ( ) const
inlineinherited

Definition at line 4552 of file sc_fxnum.h.

◆ to_string() [1/6]

const std::string sc_dt::sc_fxnum_fast::to_string ( ) const
inherited

◆ to_string() [2/6]

const std::string sc_dt::sc_fxnum_fast::to_string ( sc_numrep  ) const
inherited

◆ to_string() [3/6]

const std::string sc_dt::sc_fxnum_fast::to_string ( sc_numrep  ,
bool   
) const
inherited

◆ to_string() [4/6]

const std::string sc_dt::sc_fxnum_fast::to_string ( sc_fmt  ) const
inherited

◆ to_string() [5/6]

const std::string sc_dt::sc_fxnum_fast::to_string ( sc_numrep  ,
sc_fmt   
) const
inherited

◆ to_string() [6/6]

const std::string sc_dt::sc_fxnum_fast::to_string ( sc_numrep  ,
bool  ,
sc_fmt   
) const
inherited

◆ to_uint()

unsigned int sc_dt::sc_fxnum_fast::to_uint ( ) const
inlineinherited

Definition at line 4584 of file sc_fxnum.h.

◆ to_uint64()

uint64 sc_dt::sc_fxnum_fast::to_uint64 ( ) const
inlineinherited

Definition at line 4592 of file sc_fxnum.h.

◆ to_ulong()

unsigned long sc_dt::sc_fxnum_fast::to_ulong ( ) const
inlineinherited

Definition at line 4625 of file sc_fxnum.h.

◆ to_ushort()

unsigned short sc_dt::sc_fxnum_fast::to_ushort ( ) const
inlineinherited

Definition at line 4560 of file sc_fxnum.h.

◆ type_params()

const sc_fxtype_params & sc_dt::sc_fxnum_fast::type_params ( ) const
inlineinherited

Definition at line 4743 of file sc_fxnum.h.

◆ unlock_observer()

void sc_dt::sc_fxnum_fast::unlock_observer ( sc_fxnum_fast_observer ) const
protectedinherited

◆ value()

const sc_fxval_fast sc_dt::sc_fxnum_fast::value ( ) const
inlineinherited

Definition at line 4696 of file sc_fxnum.h.

◆ wl()

int sc_dt::sc_fxnum_fast::wl ( ) const
inlineinherited

Definition at line 4707 of file sc_fxnum.h.

Friends And Related Function Documentation

◆ b_and

void b_and ( sc_ufix_fast ,
const sc_ufix_fast ,
const sc_ufix_fast  
)
friend

◆ b_not

void b_not ( sc_ufix_fast c,
const sc_ufix_fast a 
)
friend

Definition at line 1759 of file sc_ufix.h.

◆ b_or

void b_or ( sc_ufix_fast ,
const sc_ufix_fast ,
const sc_ufix_fast  
)
friend

◆ b_xor

void b_xor ( sc_ufix_fast ,
const sc_ufix_fast ,
const sc_ufix_fast  
)
friend

◆ operator&

const sc_ufix_fast operator & ( const sc_ufix_fast ,
const sc_ufix_fast  
)
friend

◆ operator^

const sc_ufix_fast operator^ ( const sc_ufix_fast ,
const sc_ufix_fast  
)
friend

◆ operator|

const sc_ufix_fast operator| ( const sc_ufix_fast ,
const sc_ufix_fast  
)
friend

Member Data Documentation

◆ int

uint64 const sc_uint_base sc_dt::sc_fxnum_fast::int
inherited

Definition at line 1126 of file sc_fxnum.h.


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