gem5 v24.0.0.0
|
#include <sc_int_base.hh>
Protected Attributes | |
int_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_int_bitref_r |
class | sc_int_bitref |
class | sc_int_subref_r |
class | sc_int_subref |
bool | operator== (const sc_int_base &a, const sc_int_base &b) |
bool | operator!= (const sc_int_base &a, const sc_int_base &b) |
bool | operator< (const sc_int_base &a, const sc_int_base &b) |
bool | operator<= (const sc_int_base &a, const sc_int_base &b) |
bool | operator> (const sc_int_base &a, const sc_int_base &b) |
bool | operator>= (const sc_int_base &a, const sc_int_base &b) |
Definition at line 494 of file sc_int_base.hh.
|
inlineexplicit |
Definition at line 545 of file sc_int_base.hh.
|
inline |
Definition at line 551 of file sc_int_base.hh.
|
inline |
Definition at line 558 of file sc_int_base.hh.
|
inlineexplicit |
Definition at line 562 of file sc_int_base.hh.
|
inlineexplicit |
Definition at line 569 of file sc_int_base.hh.
|
explicit |
Definition at line 434 of file sc_int_base.cc.
References a, and check_length().
|
explicit |
Definition at line 441 of file sc_int_base.cc.
References a, and check_length().
|
explicit |
Definition at line 403 of file sc_int_base.cc.
References check_length().
|
explicit |
Definition at line 409 of file sc_int_base.cc.
References check_length().
|
explicit |
Definition at line 415 of file sc_int_base.cc.
References check_length().
|
explicit |
Definition at line 421 of file sc_int_base.cc.
References check_length().
|
explicit |
Definition at line 427 of file sc_int_base.cc.
References check_length().
|
inlinevirtual |
Definition at line 586 of file sc_int_base.hh.
bool sc_dt::sc_int_base::and_reduce | ( | ) | const |
Definition at line 556 of file sc_int_base.cc.
References m_val.
|
inline |
Definition at line 1272 of file sc_int_base.hh.
References sc_dt::sc_int_bitref_r::initialize().
|
inline |
Definition at line 1281 of file sc_int_base.hh.
References sc_dt::sc_int_bitref_r::initialize().
|
inlineprivate |
Definition at line 516 of file sc_int_base.hh.
|
inlineprivate |
Definition at line 508 of file sc_int_base.hh.
References SC_INTWIDTH.
Referenced by sc_int_base(), sc_int_base(), sc_int_base(), sc_int_base(), sc_int_base(), sc_int_base(), and sc_int_base().
|
inlineprivate |
Definition at line 524 of file sc_int_base.hh.
|
private |
Definition at line 391 of file sc_int_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 574 of file sc_int_base.cc.
References BITS_PER_DIGIT, and m_len.
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Definition at line 609 of file sc_int_base.cc.
References BITS_PER_DIGIT, DIGIT_MASK, m_len, and m_val.
|
inlinevirtual |
Reimplemented from sc_dt::sc_value_base.
Definition at line 883 of file sc_int_base.hh.
|
inlinevirtual |
Reimplemented from sc_dt::sc_value_base.
Definition at line 874 of file sc_int_base.hh.
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Reimplemented in sc_core::sc_signal< sc_dt::sc_int< W > >.
Definition at line 675 of file sc_int_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_int< W > >.
Definition at line 684 of file sc_int_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_int< W > >.
Definition at line 669 of file sc_int_base.cc.
|
virtual |
Reimplemented from sc_dt::sc_value_base.
Reimplemented in sc_core::sc_signal< sc_dt::sc_int< W > >.
Definition at line 693 of file sc_int_base.cc.
|
inlineprivate |
Definition at line 534 of file sc_int_base.hh.
Referenced by operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), and operator=().
|
private |
Definition at line 370 of file sc_int_base.cc.
References sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_ERROR.
|
private |
Definition at line 360 of file sc_int_base.cc.
References sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, SC_INTWIDTH, and SC_REPORT_ERROR.
|
private |
Definition at line 380 of file sc_int_base.cc.
References sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_ERROR.
|
inline |
Definition at line 870 of file sc_int_base.hh.
|
inline |
Definition at line 919 of file sc_int_base.hh.
|
inline |
Definition at line 918 of file sc_int_base.hh.
|
inline |
Definition at line 898 of file sc_int_base.hh.
References sc_dt::and_reduce().
|
inline |
Definition at line 900 of file sc_int_base.hh.
References sc_dt::or_reduce().
|
inline |
Definition at line 906 of file sc_int_base.hh.
|
inline |
Definition at line 717 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator%=().
|
inline |
Definition at line 727 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator&=().
|
inline |
Definition at line 1293 of file sc_int_base.hh.
References sc_dt::sc_int_subref_r::initialize().
|
inline |
Definition at line 1302 of file sc_int_base.hh.
References sc_dt::sc_int_subref_r::initialize().
|
inline |
Definition at line 701 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator*=().
|
inline |
Definition at line 770 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator++().
|
inline |
Definition at line 778 of file sc_int_base.hh.
|
inline |
Definition at line 685 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator+=().
|
inline |
Definition at line 787 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator--().
|
inline |
Definition at line 795 of file sc_int_base.hh.
|
inline |
Definition at line 693 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator-=().
|
inline |
Definition at line 709 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator/=().
|
inline |
Definition at line 751 of file sc_int_base.hh.
sc_int_base & sc_dt::sc_int_base::operator= | ( | const char * | a | ) |
Definition at line 517 of file sc_int_base.cc.
References a, len, m_len, operator=(), sc_core::SC_ID_CONVERSION_FAILED_, and SC_REPORT_ERROR.
sc_int_base & sc_dt::sc_int_base::operator= | ( | const sc_bv_base & | a | ) |
Definition at line 485 of file sc_int_base.cc.
References a, extend_sign(), m_len, sc_dt::sc_min(), and set().
|
inline |
Definition at line 228 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 243 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 198 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 213 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 615 of file sc_int_base.hh.
References a.
|
inline |
Definition at line 598 of file sc_int_base.hh.
References a.
|
inline |
Definition at line 606 of file sc_int_base.hh.
References a.
sc_int_base & sc_dt::sc_int_base::operator= | ( | const sc_lv_base & | a | ) |
Definition at line 501 of file sc_int_base.cc.
References a, extend_sign(), m_len, sc_dt::sc_min(), set(), and sc_dt::sc_logic::to_bool().
sc_int_base & sc_dt::sc_int_base::operator= | ( | const sc_signed & | a | ) |
Definition at line 451 of file sc_int_base.cc.
References a, extend_sign(), m_len, sc_dt::sc_min(), and set().
sc_int_base & sc_dt::sc_int_base::operator= | ( | const sc_unsigned & | a | ) |
Definition at line 468 of file sc_int_base.cc.
References a, extend_sign(), m_len, sc_dt::sc_min(), and set().
|
inline |
Definition at line 676 of file sc_int_base.hh.
References a.
|
inline |
Definition at line 660 of file sc_int_base.hh.
References a.
|
inline |
Definition at line 590 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), sc_dt::sc_int< W >::operator=(), operator=(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), sc_dt::sc_int< W >::sc_int(), and sc_core::sc_signal< sc_dt::sc_int< W > >::update().
|
inline |
Definition at line 644 of file sc_int_base.hh.
References a.
|
inline |
Definition at line 668 of file sc_int_base.hh.
References a.
|
inline |
Definition at line 652 of file sc_int_base.hh.
References a.
|
inline |
Definition at line 636 of file sc_int_base.hh.
References a.
|
inline |
Definition at line 760 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator>>=().
|
inline |
Definition at line 1253 of file sc_int_base.hh.
References sc_dt::sc_int_bitref_r::initialize().
|
inline |
Definition at line 1262 of file sc_int_base.hh.
References sc_dt::sc_int_bitref_r::initialize().
|
inline |
Definition at line 743 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator<<=().
|
inline |
Definition at line 735 of file sc_int_base.hh.
Referenced by sc_dt::sc_int< W >::operator|=().
bool sc_dt::sc_int_base::or_reduce | ( | ) | const |
Definition at line 557 of file sc_int_base.cc.
References m_val.
|
inline |
Definition at line 929 of file sc_int_base.hh.
References sc_dt::sc_io_base(), and sc_dt::to_string().
|
inline |
Definition at line 1312 of file sc_int_base.hh.
References sc_dt::sc_int_subref_r::initialize().
|
inline |
Definition at line 1321 of file sc_int_base.hh.
References sc_dt::sc_int_subref_r::initialize().
void sc_dt::sc_int_base::scan | ( | ::std::istream & | is = ::std::cin | ) |
Definition at line 700 of file sc_int_base.cc.
|
inline |
Definition at line 861 of file sc_int_base.hh.
Referenced by operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), and operator=().
|
inline |
Definition at line 864 of file sc_int_base.hh.
|
inline |
Definition at line 859 of file sc_int_base.hh.
|
inline |
Definition at line 917 of file sc_int_base.hh.
|
inline |
Definition at line 911 of file sc_int_base.hh.
|
inline |
Definition at line 915 of file sc_int_base.hh.
|
inline |
Definition at line 913 of file sc_int_base.hh.
const std::string sc_dt::sc_int_base::to_string | ( | sc_numrep | numrep, |
bool | w_prefix ) const |
Definition at line 547 of file sc_int_base.cc.
Definition at line 539 of file sc_int_base.cc.
|
inline |
Definition at line 912 of file sc_int_base.hh.
|
inline |
Definition at line 916 of file sc_int_base.hh.
|
inline |
Definition at line 914 of file sc_int_base.hh.
|
inline |
Definition at line 910 of file sc_int_base.hh.
|
inline |
Definition at line 902 of file sc_int_base.hh.
References sc_dt::xor_reduce().
bool sc_dt::sc_int_base::xor_reduce | ( | ) | const |
Definition at line 560 of file sc_int_base.cc.
References m_ulen, m_val, and SC_INTWIDTH.
|
friend |
Definition at line 812 of file sc_int_base.hh.
|
friend |
Definition at line 817 of file sc_int_base.hh.
|
friend |
Definition at line 823 of file sc_int_base.hh.
|
friend |
Definition at line 806 of file sc_int_base.hh.
|
friend |
Definition at line 830 of file sc_int_base.hh.
|
friend |
Definition at line 836 of file sc_int_base.hh.
|
friend |
Definition at line 497 of file sc_int_base.hh.
|
friend |
Definition at line 496 of file sc_int_base.hh.
|
friend |
Definition at line 499 of file sc_int_base.hh.
|
friend |
Definition at line 498 of file sc_int_base.hh.
|
protected |
Definition at line 938 of file sc_int_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 939 of file sc_int_base.hh.
Referenced by xor_reduce().
|
protected |
Definition at line 937 of file sc_int_base.hh.
Referenced by and_reduce(), concat_get_data(), sc_dt::sc_int< W >::operator=(), or_reduce(), and xor_reduce().