gem5 v24.0.0.0
|
#include <sc_uint_base.hh>
Protected Attributes | |
uint_type | m_val |
int | m_len |
int | m_ulen |
Private Member Functions | |
void | invalid_length () const |
void | invalid_index (int i) const |
void | invalid_range (int l, int r) const |
void | check_length () const |
void | check_index (int i) const |
void | check_range (int l, int r) const |
void | check_value () const |
void | extend_sign () |
Friends | |
class | sc_uint_bitref_r |
class | sc_uint_bitref |
class | sc_uint_subref_r |
class | sc_uint_subref |
bool | operator== (const sc_uint_base &a, const sc_uint_base &b) |
bool | operator!= (const sc_uint_base &a, const sc_uint_base &b) |
bool | operator< (const sc_uint_base &a, const sc_uint_base &b) |
bool | operator<= (const sc_uint_base &a, const sc_uint_base &b) |
bool | operator> (const sc_uint_base &a, const sc_uint_base &b) |
bool | operator>= (const sc_uint_base &a, const sc_uint_base &b) |
Definition at line 465 of file sc_uint_base.hh.
|
inlineexplicit |
Definition at line 514 of file sc_uint_base.hh.
|
inline |
Definition at line 520 of file sc_uint_base.hh.
|
inline |
Definition at line 527 of file sc_uint_base.hh.
|
inlineexplicit |
Definition at line 531 of file sc_uint_base.hh.
|
inlineexplicit |
Definition at line 538 of file sc_uint_base.hh.
|
explicit |
Definition at line 389 of file sc_uint_base.cc.
References check_length().
|
explicit |
Definition at line 395 of file sc_uint_base.cc.
References check_length().
|
explicit |
Definition at line 401 of file sc_uint_base.cc.
References check_length().
|
explicit |
Definition at line 407 of file sc_uint_base.cc.
References check_length().
|
explicit |
Definition at line 413 of file sc_uint_base.cc.
References check_length().
|
explicit |
Definition at line 420 of file sc_uint_base.cc.
References a, and check_length().
|
explicit |
Definition at line 427 of file sc_uint_base.cc.
References a, and check_length().
|
inlinevirtual |
Definition at line 555 of file sc_uint_base.hh.
bool sc_dt::sc_uint_base::and_reduce | ( | ) | const |
Definition at line 544 of file sc_uint_base.cc.
References m_ulen, m_val, and sc_dt::UINT_ZERO.
|
inline |
Definition at line 1156 of file sc_uint_base.hh.
References sc_dt::sc_uint_bitref_r::initialize().
|
inline |
Definition at line 1165 of file sc_uint_base.hh.
References sc_dt::sc_uint_bitref_r::initialize().
|
inlineprivate |
Definition at line 486 of file sc_uint_base.hh.
|
inlineprivate |
Definition at line 478 of file sc_uint_base.hh.
References SC_INTWIDTH.
Referenced by sc_uint_base(), sc_uint_base(), sc_uint_base(), sc_uint_base(), sc_uint_base(), sc_uint_base(), and sc_uint_base().
|
inlineprivate |
Definition at line 494 of file sc_uint_base.hh.
|
private |
Definition at line 377 of file sc_uint_base.cc.
References sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_WARNING.
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Definition at line 571 of file sc_uint_base.cc.
References BITS_PER_DIGIT, and m_len.
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Definition at line 608 of file sc_uint_base.cc.
References BITS_PER_DIGIT, DIGIT_MASK, m_len, and m_val.
|
inlinevirtual |
Reimplemented from sc_dt::sc_value_base.
Definition at line 815 of file sc_uint_base.hh.
|
inlinevirtual |
Reimplemented from sc_dt::sc_value_base.
Definition at line 807 of file sc_uint_base.hh.
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Reimplemented in sc_core::sc_signal< sc_dt::sc_uint< W > >.
Definition at line 675 of file sc_uint_base.cc.
References sc_dt::sc_signed::length().
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Reimplemented in sc_core::sc_signal< sc_dt::sc_uint< W > >.
Definition at line 684 of file sc_uint_base.cc.
References sc_dt::sc_unsigned::length().
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Reimplemented in sc_core::sc_signal< sc_dt::sc_uint< W > >.
Definition at line 669 of file sc_uint_base.cc.
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Reimplemented in sc_core::sc_signal< sc_dt::sc_uint< W > >.
Definition at line 693 of file sc_uint_base.cc.
|
inlineprivate |
Definition at line 504 of file sc_uint_base.hh.
Referenced by operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), and operator=().
|
private |
Definition at line 355 of file sc_uint_base.cc.
References sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_ERROR.
|
private |
Definition at line 345 of file sc_uint_base.cc.
References sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, SC_INTWIDTH, and SC_REPORT_ERROR.
|
private |
Definition at line 365 of file sc_uint_base.cc.
References sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_ERROR.
|
inline |
Definition at line 803 of file sc_uint_base.hh.
|
inline |
Definition at line 844 of file sc_uint_base.hh.
|
inline |
Definition at line 843 of file sc_uint_base.hh.
|
inline |
Definition at line 823 of file sc_uint_base.hh.
References sc_dt::and_reduce().
|
inline |
Definition at line 825 of file sc_uint_base.hh.
References sc_dt::or_reduce().
|
inline |
Definition at line 830 of file sc_uint_base.hh.
|
inline |
Definition at line 669 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator%=().
|
inline |
Definition at line 678 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator&=().
|
inline |
Definition at line 1175 of file sc_uint_base.hh.
References sc_dt::sc_uint_subref_r::initialize().
|
inline |
Definition at line 1184 of file sc_uint_base.hh.
References sc_dt::sc_uint_subref_r::initialize().
|
inline |
Definition at line 655 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator*=().
|
inline |
Definition at line 715 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator++().
|
inline |
Definition at line 722 of file sc_uint_base.hh.
|
inline |
Definition at line 641 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator+=().
|
inline |
Definition at line 731 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator--().
|
inline |
Definition at line 738 of file sc_uint_base.hh.
|
inline |
Definition at line 648 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator-=().
|
inline |
Definition at line 662 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator/=().
|
inline |
Definition at line 698 of file sc_uint_base.hh.
sc_uint_base & sc_dt::sc_uint_base::operator= | ( | const char * | a | ) |
Definition at line 503 of file sc_uint_base.cc.
References a, len, m_len, operator=(), sc_core::SC_ID_CONVERSION_FAILED_, and SC_REPORT_ERROR.
sc_uint_base & sc_dt::sc_uint_base::operator= | ( | const sc_bv_base & | a | ) |
Definition at line 471 of file sc_uint_base.cc.
References a, extend_sign(), m_len, sc_dt::sc_min(), and set().
|
inline |
Definition at line 294 of file scfx_other_defs.hh.
References extend_sign(), m_len, sc_core::SC_ID_INVALID_FX_VALUE_, SC_REPORT_ERROR, and set().
|
inline |
Definition at line 309 of file scfx_other_defs.hh.
References extend_sign(), m_len, sc_core::SC_ID_INVALID_FX_VALUE_, SC_REPORT_ERROR, and set().
|
inline |
Definition at line 264 of file scfx_other_defs.hh.
References extend_sign(), m_len, sc_core::SC_ID_INVALID_FX_VALUE_, SC_REPORT_ERROR, and set().
|
inline |
Definition at line 279 of file scfx_other_defs.hh.
References extend_sign(), m_len, sc_core::SC_ID_INVALID_FX_VALUE_, SC_REPORT_ERROR, and set().
|
inline |
Definition at line 581 of file sc_uint_base.hh.
References a.
sc_uint_base & sc_dt::sc_uint_base::operator= | ( | const sc_lv_base & | a | ) |
Definition at line 487 of file sc_uint_base.cc.
References a, extend_sign(), m_len, sc_dt::sc_min(), set(), and sc_dt::sc_logic::to_bool().
sc_uint_base & sc_dt::sc_uint_base::operator= | ( | const sc_signed & | a | ) |
Definition at line 437 of file sc_uint_base.cc.
References a, extend_sign(), m_len, sc_dt::sc_min(), and set().
|
inline |
Definition at line 566 of file sc_uint_base.hh.
References a.
|
inline |
Definition at line 573 of file sc_uint_base.hh.
References a.
sc_uint_base & sc_dt::sc_uint_base::operator= | ( | const sc_unsigned & | a | ) |
Definition at line 454 of file sc_uint_base.cc.
References a, extend_sign(), m_len, sc_dt::sc_min(), and set().
|
inline |
Definition at line 632 of file sc_uint_base.hh.
References a.
|
inline |
Definition at line 618 of file sc_uint_base.hh.
References a.
|
inline |
Definition at line 625 of file sc_uint_base.hh.
References a.
|
inline |
Definition at line 604 of file sc_uint_base.hh.
References a.
|
inline |
Definition at line 559 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), sc_dt::sc_uint< W >::operator=(), operator=(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), sc_dt::sc_uint< W >::sc_uint(), and sc_core::sc_signal< sc_dt::sc_uint< W > >::update().
|
inline |
Definition at line 611 of file sc_uint_base.hh.
References a.
|
inline |
Definition at line 597 of file sc_uint_base.hh.
References a.
|
inline |
Definition at line 706 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator>>=().
|
inline |
Definition at line 1138 of file sc_uint_base.hh.
References sc_dt::sc_uint_bitref_r::initialize().
|
inline |
Definition at line 1147 of file sc_uint_base.hh.
References sc_dt::sc_uint_bitref_r::initialize().
|
inline |
Definition at line 692 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator<<=().
|
inline |
Definition at line 685 of file sc_uint_base.hh.
Referenced by sc_dt::sc_uint< W >::operator|=().
bool sc_dt::sc_uint_base::or_reduce | ( | ) | const |
Definition at line 550 of file sc_uint_base.cc.
References m_val.
|
inline |
Definition at line 852 of file sc_uint_base.hh.
References sc_dt::sc_io_base(), and sc_dt::to_string().
|
inline |
Definition at line 1193 of file sc_uint_base.hh.
References sc_dt::sc_uint_subref_r::initialize().
|
inline |
Definition at line 1202 of file sc_uint_base.hh.
References sc_dt::sc_uint_subref_r::initialize().
void sc_dt::sc_uint_base::scan | ( | ::std::istream & | is = ::std::cin | ) |
Definition at line 701 of file sc_uint_base.cc.
|
inline |
Definition at line 795 of file sc_uint_base.hh.
Referenced by operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), and operator=().
|
inline |
Definition at line 797 of file sc_uint_base.hh.
|
inline |
Definition at line 793 of file sc_uint_base.hh.
|
inline |
Definition at line 841 of file sc_uint_base.hh.
References sc_dt::uint64_to_double().
|
inline |
Definition at line 835 of file sc_uint_base.hh.
|
inline |
Definition at line 839 of file sc_uint_base.hh.
|
inline |
Definition at line 837 of file sc_uint_base.hh.
const std::string sc_dt::sc_uint_base::to_string | ( | sc_numrep | numrep, |
bool | w_prefix ) const |
Definition at line 534 of file sc_uint_base.cc.
Definition at line 526 of file sc_uint_base.cc.
|
inline |
Definition at line 836 of file sc_uint_base.hh.
|
inline |
Definition at line 840 of file sc_uint_base.hh.
|
inline |
Definition at line 838 of file sc_uint_base.hh.
|
inline |
Definition at line 833 of file sc_uint_base.hh.
|
inline |
Definition at line 827 of file sc_uint_base.hh.
References sc_dt::xor_reduce().
bool sc_dt::sc_uint_base::xor_reduce | ( | ) | const |
Definition at line 556 of file sc_uint_base.cc.
References m_val, and SC_INTWIDTH.
|
friend |
Definition at line 753 of file sc_uint_base.hh.
|
friend |
Definition at line 757 of file sc_uint_base.hh.
|
friend |
Definition at line 762 of file sc_uint_base.hh.
|
friend |
Definition at line 748 of file sc_uint_base.hh.
|
friend |
Definition at line 768 of file sc_uint_base.hh.
|
friend |
Definition at line 773 of file sc_uint_base.hh.
|
friend |
Definition at line 468 of file sc_uint_base.hh.
|
friend |
Definition at line 467 of file sc_uint_base.hh.
|
friend |
Definition at line 470 of file sc_uint_base.hh.
|
friend |
Definition at line 469 of file sc_uint_base.hh.
|
protected |
Definition at line 861 of file sc_uint_base.hh.
Referenced by concat_get_ctrl(), concat_get_data(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), to_string(), and to_string().
|
protected |
Definition at line 862 of file sc_uint_base.hh.
Referenced by and_reduce().
|
protected |
Definition at line 860 of file sc_uint_base.hh.
Referenced by and_reduce(), concat_get_data(), sc_dt::sc_uint< W >::operator=(), or_reduce(), and xor_reduce().