|
gem5 v25.0.0.1
|
#include <sc_bit_proxies.hh>
Public Types | |
| typedef sc_proxy< sc_subref_r< X > >::value_type | value_type |
| Public Types inherited from sc_dt::sc_proxy< sc_subref_r< X > > | |
| typedef sc_proxy_traits< X >::traits_type | traits_type |
| typedef traits_type::bit_type | bit_type |
| typedef traits_type::value_type | value_type |
Public Member Functions | |
| sc_subref_r (const X &obj_, int hi_, int lo_) | |
| sc_subref_r (const sc_subref_r< X > &a) | |
| sc_subref_r< X > * | clone () const |
| int | length () const |
| int | size () const |
| value_type | get_bit (int n) const |
| void | set_bit (int n, value_type value) |
| sc_digit | get_word (int i) const |
| void | set_word (int i, sc_digit w) |
| sc_digit | get_cword (int i) const |
| void | set_cword (int i, sc_digit w) |
| void | clean_tail () |
| bool | is_01 () const |
| bool | reversed () const |
| Public Member Functions inherited from sc_dt::sc_proxy< sc_subref_r< X > > | |
| virtual | ~sc_proxy () |
| X & | back_cast () |
| X & | assign_ (const sc_proxy< Y > &a) |
| X & | b_not () |
| const sc_lv_base | operator~ () const |
| X & | operator&= (const char *b) |
| const sc_lv_base | operator& (const char *b) const |
| X & | operator|= (const char *b) |
| const sc_lv_base | operator| (const char *b) const |
| X & | operator^= (const char *b) |
| const sc_lv_base | operator^ (const char *b) const |
| X & | operator<<= (int n) |
| const sc_lv_base | operator<< (int n) const |
| X & | operator>>= (int n) |
| const sc_lv_base | operator>> (int n) const |
| X & | lrotate (int n) |
| X & | rrotate (int n) |
| X & | reverse () |
| sc_bitref< X > | operator[] (int i) |
| sc_bitref< X > | bit (int i) |
| sc_subref< X > | operator() (int hi, int lo) |
| sc_subref< X > | range (int hi, int lo) |
| value_type | and_reduce () const |
| value_type | nand_reduce () const |
| value_type | or_reduce () const |
| value_type | nor_reduce () const |
| value_type | xor_reduce () const |
| value_type | xnor_reduce () const |
| bool | operator== (const char *b) const |
| const std::string | to_string () const |
| int64 | to_int64 () const |
| uint64 | to_uint64 () const |
| int | to_int () const |
| unsigned int | to_uint () const |
| long | to_long () const |
| unsigned long | to_ulong () const |
| void | print (::std::ostream &os=::std::cout) const |
| void | scan (::std::istream &is=::std::cin) |
Protected Attributes | |
| X & | m_obj |
| int | m_hi |
| int | m_lo |
| int | m_len |
Private Member Functions | |
| void | check_bounds () |
| sc_subref_r () | |
| sc_subref_r< X > & | operator= (const sc_subref_r< X > &) |
Additional Inherited Members | |
| Protected Member Functions inherited from sc_dt::sc_proxy< sc_subref_r< X > > | |
| void | check_bounds (int n) const |
| void | check_wbounds (int n) const |
| sc_digit | to_anything_unsigned () const |
| int64 | to_anything_signed () const |
Definition at line 607 of file sc_bit_proxies.hh.
| typedef sc_proxy<sc_subref_r<X>>::value_type sc_dt::sc_subref_r< X >::value_type |
Definition at line 612 of file sc_bit_proxies.hh.
|
inline |
Definition at line 615 of file sc_bit_proxies.hh.
References check_bounds(), m_hi, m_len, m_lo, and m_obj.
Referenced by clone(), sc_dt::sc_subref< X >::operator=(), operator=(), sc_dt::sc_subref< X >::sc_subref(), sc_dt::sc_subref< X >::sc_subref(), and sc_subref_r().
|
inline |
Definition at line 620 of file sc_bit_proxies.hh.
|
private |
Referenced by clone().
|
inlineprivate |
Definition at line 2199 of file sc_bit_proxies.hh.
References m_hi, m_len, m_lo, m_obj, reversed(), sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_ERROR.
Referenced by sc_subref_r().
|
inline |
Definition at line 641 of file sc_bit_proxies.hh.
References m_obj.
|
inline |
Definition at line 625 of file sc_bit_proxies.hh.
References sc_subref_r(), and sc_subref_r().
|
inline |
Definition at line 2216 of file sc_bit_proxies.hh.
References m_lo, m_obj, and reversed().
|
inline |
Definition at line 2289 of file sc_bit_proxies.hh.
References m_hi, m_lo, m_obj, reversed(), sc_dt::SC_DIGIT_SIZE, sc_dt::SC_DIGIT_TWO, sc_dt::sc_max(), and sc_dt::sc_min().
Referenced by is_01().
|
inline |
Definition at line 2238 of file sc_bit_proxies.hh.
References m_hi, m_lo, m_obj, reversed(), sc_dt::SC_DIGIT_ONE, sc_dt::SC_DIGIT_SIZE, sc_dt::sc_max(), and sc_dt::sc_min().
|
inline |
Definition at line 2340 of file sc_bit_proxies.hh.
References get_cword(), sc_dt::SC_DIGIT_ZERO, and size().
|
inline |
Definition at line 628 of file sc_bit_proxies.hh.
References m_len.
Referenced by sc_dt::sc_subref< X >::operator=(), sc_dt::sc_subref< X >::operator=(), and size().
|
private |
References sc_subref_r().
|
inline |
Definition at line 645 of file sc_bit_proxies.hh.
Referenced by check_bounds(), get_bit(), get_cword(), get_word(), sc_dt::sc_subref< X >::operator=(), sc_dt::sc_subref< X >::operator=(), set_bit(), set_cword(), and set_word().
|
inline |
Definition at line 2227 of file sc_bit_proxies.hh.
References m_lo, m_obj, and reversed().
|
inline |
Definition at line 2313 of file sc_bit_proxies.hh.
References m_hi, m_lo, m_obj, reversed(), sc_dt::SC_DIGIT_ONE, sc_dt::SC_DIGIT_SIZE, sc_dt::sc_max(), and sc_dt::sc_min().
|
inline |
Definition at line 2262 of file sc_bit_proxies.hh.
References m_hi, m_lo, m_obj, reversed(), sc_dt::SC_DIGIT_ONE, sc_dt::SC_DIGIT_SIZE, sc_dt::SC_DIGIT_TWO, sc_dt::sc_max(), and sc_dt::sc_min().
|
inline |
Definition at line 630 of file sc_bit_proxies.hh.
References length(), and sc_dt::SC_DIGIT_SIZE.
Referenced by is_01().
|
protected |
Definition at line 649 of file sc_bit_proxies.hh.
Referenced by check_bounds(), get_cword(), get_word(), reversed(), sc_subref_r(), sc_subref_r(), set_cword(), and set_word().
|
protected |
Definition at line 651 of file sc_bit_proxies.hh.
Referenced by check_bounds(), length(), sc_subref_r(), and sc_subref_r().
|
protected |
Definition at line 650 of file sc_bit_proxies.hh.
Referenced by check_bounds(), get_bit(), get_cword(), get_word(), sc_dt::sc_subref< X >::operator=(), sc_dt::sc_subref< X >::operator=(), reversed(), sc_subref_r(), sc_subref_r(), set_bit(), set_cword(), and set_word().
|
protected |
Definition at line 648 of file sc_bit_proxies.hh.
Referenced by check_bounds(), clean_tail(), get_bit(), get_cword(), get_word(), sc_dt::sc_subref< X >::operator=(), sc_dt::sc_subref< X >::operator=(), sc_subref_r(), sc_subref_r(), set_bit(), set_cword(), and set_word().