gem5
v20.1.0.0
|
#include <sc_fxnum.hh>
Public Member Functions | |
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_base & | DECL_BIN_OP_T (/, const sc_signed &) friend const sc_fxval_fast operator<<(const sc_fxnum_fast & |
const sc_fxval_fast | operator++ (int) |
const sc_fxval_fast | operator-- (int) |
sc_fxnum_fast & | operator++ () |
sc_fxnum_fast & | operator-- () |
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 | range (int, int) const |
sc_fxnum_fast_subref | range (int, int) |
const sc_fxnum_fast_subref | operator() () const |
sc_fxnum_fast_subref | operator() () |
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_params & | type_params () const |
const sc_fxcast_switch & | cast_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_observer * | observer () const |
void | cast () |
sc_fxnum_fast (const sc_fxtype_params &, sc_enc, const sc_fxcast_switch &, sc_fxnum_fast_observer *) | |
~sc_fxnum_fast () | |
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_observer * | lock_observer () const |
void | unlock_observer (sc_fxnum_fast_observer *) const |
Private Member Functions | |
sc_fxnum_fast () | |
sc_fxnum_fast (const sc_fxnum_fast &) | |
Private Attributes | |
double | m_val |
scfx_params | m_params |
bool | m_q_flag |
bool | m_o_flag |
sc_fxnum_fast_observer * | m_observer |
Friends | |
class | sc_fxval_fast |
class | sc_fxnum_bitref |
class | sc_fxnum_subref |
class | sc_fxnum_fast_bitref |
class | sc_fxnum_fast_subref |
template<typename T , typename B > | |
class | sc_gem5::TraceValFxnumBase |
void | neg (sc_fxval_fast &, const sc_fxnum_fast &) |
void | neg (sc_fxnum_fast &, const sc_fxnum_fast &) |
const friend sc_fxval_fast | operator/ (const sc_fxnum_fast &, const sc_fxnum_fast &) |
const friend sc_fxval_fast | operator>> (const sc_fxnum_fast &, int) |
void | lshift (sc_fxval_fast &, const sc_fxnum_fast &, int) |
void | rshift (sc_fxval_fast &, const sc_fxnum_fast &, int) |
void | lshift (sc_fxnum_fast &, const sc_fxnum_fast &, int) |
void | rshift (sc_fxnum_fast &, const sc_fxnum_fast &, int) |
Definition at line 844 of file sc_fxnum.hh.
|
inlineprotected |
Definition at line 3143 of file sc_fxnum.hh.
References SC_FXNUM_FAST_OBSERVER_CONSTRUCT_, and SC_FXNUM_FAST_OBSERVER_DEFAULT_.
|
inlineprotected |
Definition at line 3212 of file sc_fxnum.hh.
References SC_FXNUM_FAST_OBSERVER_DESTRUCT_.
|
private |
|
private |
|
inline |
Definition at line 3798 of file sc_fxnum.hh.
References sc_dt::scfx_params::fwl(), ArmISA::i, m_params, SC_ERROR_IF_, sc_fxnum_fast_bitref, sc_core::SC_ID_OUT_OF_RANGE_, and sc_dt::scfx_params::wl().
|
inline |
Definition at line 3790 of file sc_fxnum.hh.
References sc_dt::scfx_params::fwl(), ArmISA::i, m_params, SC_ERROR_IF_, sc_fxnum_fast_bitref, sc_core::SC_ID_OUT_OF_RANGE_, and sc_dt::scfx_params::wl().
|
protected |
Definition at line 596 of file sc_fxnum.cc.
Referenced by operator++(), and operator--().
|
inline |
Definition at line 4044 of file sc_fxnum.hh.
References sc_dt::scfx_params::cast_switch(), and m_params.
uint64 sc_dt::sc_fxnum_fast::DECL_BIN_OP_T | ( | / | , |
const sc_int_base & | |||
) |
uint64 const sc_uint_base& sc_dt::sc_fxnum_fast::DECL_BIN_OP_T | ( | / | , |
const sc_signed & | |||
) | const & |
sc_dt::sc_fxnum_fast::DECL_BIN_OP_T | ( | / | , |
int64 | |||
) |
void sc_dt::sc_fxnum_fast::dump | ( | ::std::ostream & | os = ::std::cout | ) | const |
Definition at line 717 of file sc_fxnum.cc.
Referenced by sc_dt::sc_fxnum_bitref::dump().
bool sc_dt::sc_fxnum_fast::get_bit | ( | int | i | ) | const |
Definition at line 737 of file sc_fxnum.cc.
Referenced by sc_dt::sc_fxnum_bitref::set().
|
protected |
Definition at line 802 of file sc_fxnum.cc.
Referenced by sc_dt::sc_fxnum_subref::print().
|
inlineprotected |
Definition at line 3219 of file sc_fxnum.hh.
References m_val, and SC_FXNUM_FAST_OBSERVER_READ_.
|
inline |
Definition at line 3963 of file sc_fxnum.hh.
References ArmISA::id, m_val, and SC_FXNUM_FAST_OBSERVER_READ_.
|
inline |
Definition at line 3980 of file sc_fxnum.hh.
References ArmISA::id, is_zero(), m_val, and SC_FXNUM_FAST_OBSERVER_READ_.
Referenced by to_uint64().
|
inline |
Definition at line 3971 of file sc_fxnum.hh.
References ArmISA::id, m_val, and SC_FXNUM_FAST_OBSERVER_READ_.
Referenced by is_normal().
|
inline |
Definition at line 4014 of file sc_fxnum.hh.
References sc_dt::scfx_params::iwl(), and m_params.
|
protected |
Definition at line 884 of file sc_fxnum.cc.
|
inline |
Definition at line 4032 of file sc_fxnum.hh.
References m_params, and sc_dt::scfx_params::n_bits().
|
inline |
Definition at line 4026 of file sc_fxnum.hh.
References m_params, and sc_dt::scfx_params::o_mode().
|
inlineprotected |
Definition at line 3136 of file sc_fxnum.hh.
References sc_dt::sc_fxnum::m_observer.
|
inline |
Definition at line 4051 of file sc_fxnum.hh.
References SC_FXNUM_FAST_OBSERVER_READ_.
|
inline |
Definition at line 3868 of file sc_fxnum.hh.
References m_val, and SC_FXNUM_FAST_OBSERVER_READ_.
sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::operator() | ( | ) |
|
inline |
Definition at line 3844 of file sc_fxnum.hh.
References m_params, and sc_dt::scfx_params::wl().
|
inline |
Definition at line 3816 of file sc_fxnum.hh.
References sc_dt::scfx_params::fwl(), ArmISA::i, ArmISA::j, m_params, SC_ERROR_IF_, sc_fxnum_fast_subref, sc_core::SC_ID_OUT_OF_RANGE_, and sc_dt::scfx_params::wl().
|
inline |
Definition at line 3806 of file sc_fxnum.hh.
References sc_dt::scfx_params::fwl(), ArmISA::i, ArmISA::j, m_params, SC_ERROR_IF_, sc_fxnum_fast_subref, sc_core::SC_ID_OUT_OF_RANGE_, and sc_dt::scfx_params::wl().
|
inline |
Definition at line 3234 of file sc_fxnum.hh.
References m_val, SC_FXNUM_FAST_OBSERVER_READ_, and sc_fxval_fast.
|
inline |
Definition at line 3754 of file sc_fxnum.hh.
References cast(), m_val, SC_FXNUM_FAST_OBSERVER_READ_, and SC_FXNUM_FAST_OBSERVER_WRITE_.
|
inline |
Definition at line 3730 of file sc_fxnum.hh.
References ArmISA::c, cast(), m_val, SC_FXNUM_FAST_OBSERVER_READ_, SC_FXNUM_FAST_OBSERVER_WRITE_, and sc_fxval_fast.
|
inline |
Definition at line 3227 of file sc_fxnum.hh.
References m_val, SC_FXNUM_FAST_OBSERVER_READ_, and sc_fxval_fast.
|
inline |
Definition at line 3764 of file sc_fxnum.hh.
References cast(), m_val, SC_FXNUM_FAST_OBSERVER_READ_, and SC_FXNUM_FAST_OBSERVER_WRITE_.
|
inline |
Definition at line 3742 of file sc_fxnum.hh.
References ArmISA::c, cast(), m_val, SC_FXNUM_FAST_OBSERVER_READ_, SC_FXNUM_FAST_OBSERVER_WRITE_, and sc_fxval_fast.
|
inline |
Definition at line 3783 of file sc_fxnum.hh.
References sc_dt::scfx_params::fwl(), ArmISA::i, m_params, SC_ERROR_IF_, sc_fxnum_fast_bitref, sc_core::SC_ID_OUT_OF_RANGE_, and sc_dt::scfx_params::wl().
|
inline |
Definition at line 3775 of file sc_fxnum.hh.
References sc_dt::scfx_params::fwl(), ArmISA::i, m_params, SC_ERROR_IF_, sc_fxnum_fast_bitref, sc_core::SC_ID_OUT_OF_RANGE_, and sc_dt::scfx_params::wl().
|
inline |
Definition at line 3994 of file sc_fxnum.hh.
References m_o_flag.
void sc_dt::sc_fxnum_fast::print | ( | ::std::ostream & | os = ::std::cout | ) | const |
Definition at line 703 of file sc_fxnum.cc.
References ArmISA::id, and m_val.
|
inline |
Definition at line 4020 of file sc_fxnum.hh.
References m_params, and sc_dt::scfx_params::q_mode().
|
inline |
Definition at line 3988 of file sc_fxnum.hh.
References m_q_flag.
sc_fxnum_fast_subref sc_dt::sc_fxnum_fast::range | ( | ) |
|
inline |
Definition at line 3856 of file sc_fxnum.hh.
References m_params, and sc_dt::scfx_params::wl().
|
inline |
Definition at line 3835 of file sc_fxnum.hh.
References sc_dt::scfx_params::fwl(), ArmISA::i, ArmISA::j, m_params, SC_ERROR_IF_, sc_fxnum_fast_subref, sc_core::SC_ID_OUT_OF_RANGE_, and sc_dt::scfx_params::wl().
|
inline |
Definition at line 3825 of file sc_fxnum.hh.
References sc_dt::scfx_params::fwl(), ArmISA::i, ArmISA::j, m_params, SC_ERROR_IF_, sc_fxnum_fast_subref, sc_core::SC_ID_OUT_OF_RANGE_, and sc_dt::scfx_params::wl().
void sc_dt::sc_fxnum_fast::scan | ( | ::std::istream & | is = ::std::cin | ) |
Definition at line 709 of file sc_fxnum.cc.
|
protected |
Definition at line 773 of file sc_fxnum.cc.
|
protected |
Definition at line 849 of file sc_fxnum.cc.
Referenced by sc_dt::sc_fxnum_subref::scan().
const std::string sc_dt::sc_fxnum_fast::to_bin | ( | ) | const |
Definition at line 684 of file sc_fxnum.cc.
References X86ISA::os.
const std::string sc_dt::sc_fxnum_fast::to_dec | ( | ) | const |
Definition at line 678 of file sc_fxnum.cc.
References MipsISA::is, and ArmISA::s.
|
inline |
Definition at line 3955 of file sc_fxnum.hh.
References m_val, and SC_FXNUM_FAST_OBSERVER_READ_.
|
inline |
Definition at line 3948 of file sc_fxnum.hh.
References m_val, and SC_FXNUM_FAST_OBSERVER_READ_.
const std::string sc_dt::sc_fxnum_fast::to_hex | ( | ) | const |
Definition at line 696 of file sc_fxnum.cc.
|
inline |
Definition at line 3890 of file sc_fxnum.hh.
References to_uint64().
|
inline |
Definition at line 3897 of file sc_fxnum.hh.
References to_uint64().
|
inline |
Definition at line 3934 of file sc_fxnum.hh.
References to_uint64().
const std::string sc_dt::sc_fxnum_fast::to_oct | ( | ) | const |
Definition at line 690 of file sc_fxnum.cc.
|
inline |
Definition at line 3876 of file sc_fxnum.hh.
References to_uint64().
const std::string sc_dt::sc_fxnum_fast::to_string | ( | ) | const |
Definition at line 639 of file sc_fxnum.cc.
References m_params, m_val, and sc_dt::to_string().
const std::string sc_dt::sc_fxnum_fast::to_string | ( | sc_fmt | fmt | ) | const |
Definition at line 658 of file sc_fxnum.cc.
References m_params, m_val, sc_dt::SC_F, sc_dt::SC_OCT, and sc_dt::to_string().
const std::string sc_dt::sc_fxnum_fast::to_string | ( | sc_numrep | numrep | ) | const |
Definition at line 645 of file sc_fxnum.cc.
References m_params, m_val, sc_dt::SC_DEC, sc_dt::SC_F, and sc_dt::to_string().
const std::string sc_dt::sc_fxnum_fast::to_string | ( | sc_numrep | numrep, |
bool | w_prefix | ||
) | const |
Definition at line 651 of file sc_fxnum.cc.
References m_params, m_val, sc_dt::SC_BIN, sc_dt::SC_F, and sc_dt::to_string().
const std::string sc_dt::sc_fxnum_fast::to_string | ( | sc_numrep | numrep, |
bool | w_prefix, | ||
sc_fmt | fmt | ||
) | const |
Definition at line 670 of file sc_fxnum.cc.
References m_params, m_val, X86ISA::os, sc_dt::SC_DEC, sc_dt::SC_F, and sc_dt::to_string().
Definition at line 664 of file sc_fxnum.cc.
References m_params, m_val, sc_dt::SC_F, sc_dt::SC_HEX, and sc_dt::to_string().
|
inline |
Definition at line 3904 of file sc_fxnum.hh.
References to_uint64().
|
inline |
Definition at line 3911 of file sc_fxnum.hh.
References is_normal(), m_val, and sc_dt::UINT64_ONE.
Referenced by to_int(), to_int64(), to_long(), to_short(), to_uint(), to_ulong(), and to_ushort().
|
inline |
Definition at line 3941 of file sc_fxnum.hh.
References to_uint64().
|
inline |
Definition at line 3883 of file sc_fxnum.hh.
References to_uint64().
|
inline |
Definition at line 4038 of file sc_fxnum.hh.
References m_params, and sc_dt::scfx_params::type_params().
|
protected |
Definition at line 893 of file sc_fxnum.cc.
|
inline |
Definition at line 4000 of file sc_fxnum.hh.
References m_val, SC_FXNUM_FAST_OBSERVER_READ_, and sc_fxval_fast.
|
inline |
Definition at line 4008 of file sc_fxnum.hh.
References m_params, and sc_dt::scfx_params::wl().
|
friend |
Definition at line 3507 of file sc_fxnum.hh.
|
friend |
Definition at line 3493 of file sc_fxnum.hh.
|
friend |
Definition at line 3249 of file sc_fxnum.hh.
|
friend |
Definition at line 3242 of file sc_fxnum.hh.
|
friend |
Definition at line 3320 of file sc_fxnum.hh.
|
friend |
Definition at line 3369 of file sc_fxnum.hh.
|
friend |
Definition at line 3516 of file sc_fxnum.hh.
|
friend |
Definition at line 3500 of file sc_fxnum.hh.
|
friend |
Definition at line 848 of file sc_fxnum.hh.
|
friend |
Definition at line 850 of file sc_fxnum.hh.
Referenced by bit(), and operator[]().
|
friend |
Definition at line 851 of file sc_fxnum.hh.
Referenced by operator()(), and range().
|
friend |
Definition at line 849 of file sc_fxnum.hh.
|
friend |
Definition at line 846 of file sc_fxnum.hh.
Referenced by operator+(), operator++(), operator-(), operator--(), sc_dt::operator/(), sc_dt::operator<<(), sc_dt::operator>>(), and value().
|
friend |
Definition at line 854 of file sc_fxnum.hh.
uint64 const sc_uint_base sc_dt::sc_fxnum_fast::int |
Definition at line 957 of file sc_fxnum.hh.
|
private |
Definition at line 1185 of file sc_fxnum.hh.
Referenced by overflow_flag().
|
mutableprivate |
Definition at line 1187 of file sc_fxnum.hh.
|
private |
Definition at line 1183 of file sc_fxnum.hh.
Referenced by bit(), cast_switch(), iwl(), n_bits(), o_mode(), operator()(), operator[](), q_mode(), range(), to_string(), type_params(), and wl().
|
private |
Definition at line 1184 of file sc_fxnum.hh.
Referenced by quantization_flag().
|
private |
Definition at line 1181 of file sc_fxnum.hh.
Referenced by get_val(), is_neg(), is_normal(), is_zero(), operator double(), operator+(), operator++(), operator-(), operator--(), print(), to_double(), to_float(), to_string(), to_uint64(), and value().