gem5  v22.1.0.0
Public Member Functions | List of all members
sc_dt::sc_ufixed< W, I, Q, O, N > Class Template Reference

#include <sc_ufixed.hh>

Inheritance diagram for sc_dt::sc_ufixed< W, I, Q, O, N >:
sc_dt::sc_ufix sc_dt::sc_fxnum

Public Member Functions

 sc_ufixed (sc_fxnum_observer *=0)
 
 sc_ufixed (const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_ufixed (const sc_ufixed< W, I, Q, O, N > &)
 
sc_ufixedoperator= (const sc_ufixed< W, I, Q, O, N > &)
 
const sc_fxval operator++ (int)
 
const sc_fxval operator-- (int)
 
sc_ufixedoperator++ ()
 
sc_ufixedoperator-- ()
 
- Public Member Functions inherited from sc_dt::sc_ufix
 sc_ufix (sc_fxnum_observer *=0)
 
 sc_ufix (int, int, sc_fxnum_observer *=0)
 
 sc_ufix (sc_q_mode, sc_o_mode, sc_fxnum_observer *=0)
 
 sc_ufix (sc_q_mode, sc_o_mode, int, sc_fxnum_observer *=0)
 
 sc_ufix (int, int, sc_q_mode, sc_o_mode, sc_fxnum_observer *=0)
 
 sc_ufix (int, int, sc_q_mode, sc_o_mode, int, sc_fxnum_observer *=0)
 
 sc_ufix (const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_ufix (int, int, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_ufix (sc_q_mode, sc_o_mode, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_ufix (sc_q_mode, sc_o_mode, int, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_ufix (int, int, sc_q_mode, sc_o_mode, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_ufix (int, int, sc_q_mode, sc_o_mode, int, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_ufix (const sc_fxtype_params &, sc_fxnum_observer *=0)
 
 sc_ufix (const sc_fxtype_params &, const sc_fxcast_switch &, sc_fxnum_observer *=0)
 
 sc_ufix (const sc_ufix &)
 
const sc_ufix operator~ () const
 
sc_ufixoperator= (const sc_ufix &)
 
const sc_fxval operator++ (int)
 
const sc_fxval operator-- (int)
 
sc_ufixoperator++ ()
 
sc_ufixoperator-- ()
 
- Public Member Functions inherited from sc_dt::sc_fxnum
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
 

Additional Inherited Members

- Protected Member Functions inherited from sc_dt::sc_fxnum
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
 

Detailed Description

template<int W, int I, sc_q_mode Q = SC_DEFAULT_Q_MODE_, sc_o_mode O = SC_DEFAULT_O_MODE_, int N = SC_DEFAULT_N_BITS_>
class sc_dt::sc_ufixed< W, I, Q, O, N >

Definition at line 74 of file sc_ufixed.hh.

Constructor & Destructor Documentation

◆ sc_ufixed() [1/3]

template<int W, int I, sc_q_mode Q, sc_o_mode O, int N>
sc_dt::sc_ufixed< W, I, Q, O, N >::sc_ufixed ( sc_fxnum_observer observer_ = 0)
inlineexplicit

Definition at line 285 of file sc_ufixed.hh.

◆ sc_ufixed() [2/3]

template<int W, int I, sc_q_mode Q, sc_o_mode O, int N>
sc_dt::sc_ufixed< W, I, Q, O, N >::sc_ufixed ( const sc_fxcast_switch cast_sw,
sc_fxnum_observer observer_ = 0 
)
inlineexplicit

Definition at line 290 of file sc_ufixed.hh.

◆ sc_ufixed() [3/3]

template<int W, int I, sc_q_mode Q, sc_o_mode O, int N>
sc_dt::sc_ufixed< W, I, Q, O, N >::sc_ufixed ( const sc_ufixed< W, I, Q, O, N > &  a)
inline

Definition at line 332 of file sc_ufixed.hh.

Member Function Documentation

◆ operator++() [1/2]

template<int W, int I, sc_q_mode Q, sc_o_mode O, int N>
sc_ufixed< W, I, Q, O, N > & sc_dt::sc_ufixed< W, I, Q, O, N >::operator++
inline

Definition at line 414 of file sc_ufixed.hh.

References sc_dt::sc_ufix::operator++().

◆ operator++() [2/2]

template<int W, int I, sc_q_mode Q, sc_o_mode O, int N>
const sc_fxval sc_dt::sc_ufixed< W, I, Q, O, N >::operator++ ( int  )
inline

Definition at line 400 of file sc_ufixed.hh.

References sc_fxval.

◆ operator--() [1/2]

template<int W, int I, sc_q_mode Q, sc_o_mode O, int N>
sc_ufixed< W, I, Q, O, N > & sc_dt::sc_ufixed< W, I, Q, O, N >::operator--
inline

Definition at line 422 of file sc_ufixed.hh.

References sc_dt::sc_ufix::operator--().

◆ operator--() [2/2]

template<int W, int I, sc_q_mode Q, sc_o_mode O, int N>
const sc_fxval sc_dt::sc_ufixed< W, I, Q, O, N >::operator-- ( int  )
inline

Definition at line 407 of file sc_ufixed.hh.

References sc_fxval.

◆ operator=()

template<int W, int I, sc_q_mode Q, sc_o_mode O, int N>
sc_ufixed< W, I, Q, O, N > & sc_dt::sc_ufixed< W, I, Q, O, N >::operator= ( const sc_ufixed< W, I, Q, O, N > &  a)
inline

Definition at line 339 of file sc_ufixed.hh.

References gem5::ArmISA::a, and sc_dt::sc_ufix::operator=().


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

Generated on Wed Dec 21 2022 10:25:09 for gem5 by doxygen 1.9.1