gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
sc_dt::sc_int_base Class Reference

#include <sc_int_base.hh>

Inheritance diagram for sc_dt::sc_int_base:
sc_dt::sc_value_base sc_dt::sc_int< W >

Public Member Functions

 sc_int_base (int w=sc_length_param().len())
 
 sc_int_base (int_type v, int w)
 
 sc_int_base (const sc_int_base &a)
 
 sc_int_base (const sc_int_subref_r &a)
 
template<class T>
 sc_int_base (const sc_generic_base< T > &a)
 
 sc_int_base (const sc_signed &a)
 
 sc_int_base (const sc_unsigned &a)
 
 sc_int_base (const sc_bv_base &v)
 
 sc_int_base (const sc_lv_base &v)
 
 sc_int_base (const sc_uint_subref_r &v)
 
 sc_int_base (const sc_signed_subref_r &v)
 
 sc_int_base (const sc_unsigned_subref_r &v)
 
virtual ~sc_int_base ()
 
sc_int_baseoperator= (int_type v)
 
sc_int_baseoperator= (const sc_int_base &a)
 
sc_int_baseoperator= (const sc_int_subref_r &a)
 
template<class T>
sc_int_baseoperator= (const sc_generic_base< T > &a)
 
sc_int_baseoperator= (const sc_signed &a)
 
sc_int_baseoperator= (const sc_unsigned &a)
 
sc_int_baseoperator= (const sc_fxval &a)
 
sc_int_baseoperator= (const sc_fxval_fast &a)
 
sc_int_baseoperator= (const sc_fxnum &a)
 
sc_int_baseoperator= (const sc_fxnum_fast &a)
 
sc_int_baseoperator= (const sc_bv_base &a)
 
sc_int_baseoperator= (const sc_lv_base &a)
 
sc_int_baseoperator= (const char *a)
 
sc_int_baseoperator= (unsigned long a)
 
sc_int_baseoperator= (long a)
 
sc_int_baseoperator= (unsigned int a)
 
sc_int_baseoperator= (int a)
 
sc_int_baseoperator= (uint64 a)
 
sc_int_baseoperator= (double a)
 
sc_int_baseoperator+= (int_type v)
 
sc_int_baseoperator-= (int_type v)
 
sc_int_baseoperator*= (int_type v)
 
sc_int_baseoperator/= (int_type v)
 
sc_int_baseoperator%= (int_type v)
 
sc_int_baseoperator&= (int_type v)
 
sc_int_baseoperator|= (int_type v)
 
sc_int_baseoperator^= (int_type v)
 
sc_int_baseoperator<<= (int_type v)
 
sc_int_baseoperator>>= (int_type v)
 
sc_int_baseoperator++ ()
 
const sc_int_base operator++ (int)
 
sc_int_baseoperator-- ()
 
const sc_int_base operator-- (int)
 
sc_int_bitrefoperator[] (int i)
 
const sc_int_bitref_roperator[] (int i) const
 
sc_int_bitrefbit (int i)
 
const sc_int_bitref_rbit (int i) const
 
sc_int_subrefoperator() (int left, int right)
 
const sc_int_subref_roperator() (int left, int right) const
 
sc_int_subrefrange (int left, int right)
 
const sc_int_subref_rrange (int left, int right) const
 
bool test (int i) const
 
void set (int i)
 
void set (int i, bool v)
 
int length () const
 
virtual int concat_length (bool *xz_present_p) const
 
virtual bool concat_get_ctrl (sc_digit *dst_p, int low_i) const
 
virtual bool concat_get_data (sc_digit *dst_p, int low_i) const
 
virtual uint64 concat_get_uint64 () const
 
virtual void concat_set (int64 src, int low_i)
 
virtual void concat_set (const sc_signed &src, int low_i)
 
virtual void concat_set (const sc_unsigned &src, int low_i)
 
virtual void concat_set (uint64 src, int low_i)
 
bool and_reduce () const
 
bool nand_reduce () const
 
bool or_reduce () const
 
bool nor_reduce () const
 
bool xor_reduce () const
 
bool xnor_reduce () const
 
 operator int_type () const
 
int_type value () 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
 
double to_double () const
 
long long_low () const
 
long long_high () const
 
const std::string to_string (sc_numrep numrep=SC_DEC) const
 
const std::string to_string (sc_numrep numrep, bool w_prefix) const
 
void print (::std::ostream &os=::std::cout) const
 
void scan (::std::istream &is=::std::cin)
 
- Public Member Functions inherited from sc_dt::sc_value_base
virtual ~sc_value_base ()
 

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)
 

Detailed Description

Definition at line 494 of file sc_int_base.hh.

Constructor & Destructor Documentation

◆ sc_int_base() [1/12]

◆ sc_int_base() [2/12]

sc_dt::sc_int_base::sc_int_base ( int_type v,
int w )
inline

Definition at line 551 of file sc_int_base.hh.

References check_length(), extend_sign(), m_len, m_ulen, m_val, and SC_INTWIDTH.

◆ sc_int_base() [3/12]

sc_dt::sc_int_base::sc_int_base ( const sc_int_base & a)
inline

Definition at line 558 of file sc_int_base.hh.

References a, m_len, m_ulen, m_val, and sc_int_base().

◆ sc_int_base() [4/12]

sc_dt::sc_int_base::sc_int_base ( const sc_int_subref_r & a)
inlineexplicit

Definition at line 562 of file sc_int_base.hh.

References a, extend_sign(), length(), m_len, m_ulen, m_val, sc_int_subref_r, and SC_INTWIDTH.

◆ sc_int_base() [5/12]

template<class T>
sc_dt::sc_int_base::sc_int_base ( const sc_generic_base< T > & a)
inlineexplicit

Definition at line 569 of file sc_int_base.hh.

References a, check_length(), extend_sign(), length(), m_len, m_ulen, m_val, SC_INTWIDTH, and to_int64().

◆ sc_int_base() [6/12]

sc_dt::sc_int_base::sc_int_base ( const sc_signed & a)
explicit

Definition at line 434 of file sc_int_base.cc.

References a, check_length(), length(), m_len, m_ulen, m_val, and SC_INTWIDTH.

◆ sc_int_base() [7/12]

sc_dt::sc_int_base::sc_int_base ( const sc_unsigned & a)
explicit

Definition at line 441 of file sc_int_base.cc.

References a, check_length(), length(), m_len, m_ulen, m_val, and SC_INTWIDTH.

◆ sc_int_base() [8/12]

sc_dt::sc_int_base::sc_int_base ( const sc_bv_base & v)
explicit

Definition at line 403 of file sc_int_base.cc.

References check_length(), length(), m_len, m_ulen, m_val, and SC_INTWIDTH.

◆ sc_int_base() [9/12]

sc_dt::sc_int_base::sc_int_base ( const sc_lv_base & v)
explicit

Definition at line 409 of file sc_int_base.cc.

References check_length(), length(), m_len, m_ulen, m_val, and SC_INTWIDTH.

◆ sc_int_base() [10/12]

sc_dt::sc_int_base::sc_int_base ( const sc_uint_subref_r & v)
explicit

Definition at line 415 of file sc_int_base.cc.

References check_length(), length(), m_len, m_ulen, m_val, and SC_INTWIDTH.

◆ sc_int_base() [11/12]

sc_dt::sc_int_base::sc_int_base ( const sc_signed_subref_r & v)
explicit

Definition at line 421 of file sc_int_base.cc.

References check_length(), length(), m_len, m_ulen, m_val, and SC_INTWIDTH.

◆ sc_int_base() [12/12]

sc_dt::sc_int_base::sc_int_base ( const sc_unsigned_subref_r & v)
explicit

Definition at line 427 of file sc_int_base.cc.

References check_length(), length(), m_len, m_ulen, m_val, and SC_INTWIDTH.

◆ ~sc_int_base()

virtual sc_dt::sc_int_base::~sc_int_base ( )
inlinevirtual

Definition at line 586 of file sc_int_base.hh.

Member Function Documentation

◆ and_reduce()

bool sc_dt::sc_int_base::and_reduce ( ) const

Definition at line 556 of file sc_int_base.cc.

References m_val.

Referenced by nand_reduce().

◆ bit() [1/2]

sc_int_bitref & sc_dt::sc_int_base::bit ( int i)
inline

◆ bit() [2/2]

const sc_int_bitref_r & sc_dt::sc_int_base::bit ( int i) const
inline

◆ check_index()

void sc_dt::sc_int_base::check_index ( int i) const
inlineprivate

Definition at line 516 of file sc_int_base.hh.

References invalid_index(), and m_len.

◆ check_length()

void sc_dt::sc_int_base::check_length ( ) const
inlineprivate

◆ check_range()

void sc_dt::sc_int_base::check_range ( int l,
int r ) const
inlineprivate

Definition at line 524 of file sc_int_base.hh.

References invalid_range(), and m_len.

◆ check_value()

void sc_dt::sc_int_base::check_value ( ) const
private

Definition at line 391 of file sc_int_base.cc.

References m_len, sc_int_base::m_val, sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_WARNING.

Referenced by extend_sign().

◆ concat_get_ctrl()

bool sc_dt::sc_int_base::concat_get_ctrl ( sc_digit * dst_p,
int low_i ) const
virtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 574 of file sc_int_base.cc.

References BITS_PER_DIGIT, m_len, and sc_dt::UINT_ZERO.

◆ concat_get_data()

bool sc_dt::sc_int_base::concat_get_data ( sc_digit * dst_p,
int low_i ) const
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, m_val, and sc_dt::UINT_ZERO.

◆ concat_get_uint64()

virtual uint64 sc_dt::sc_int_base::concat_get_uint64 ( ) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 883 of file sc_int_base.hh.

References m_len, and m_val.

◆ concat_length()

virtual int sc_dt::sc_int_base::concat_length ( bool * xz_present_p) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 874 of file sc_int_base.hh.

References length().

◆ concat_set() [1/4]

void sc_dt::sc_int_base::concat_set ( const sc_signed & src,
int low_i )
virtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 675 of file sc_int_base.cc.

References sc_dt::sc_signed::length().

◆ concat_set() [2/4]

void sc_dt::sc_int_base::concat_set ( const sc_unsigned & src,
int low_i )
virtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 684 of file sc_int_base.cc.

References sc_dt::sc_unsigned::length().

◆ concat_set() [3/4]

void sc_dt::sc_int_base::concat_set ( int64 src,
int low_i )
virtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 669 of file sc_int_base.cc.

◆ concat_set() [4/4]

void sc_dt::sc_int_base::concat_set ( uint64 src,
int low_i )
virtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 693 of file sc_int_base.cc.

◆ extend_sign()

◆ invalid_index()

void sc_dt::sc_int_base::invalid_index ( int i) const
private

Definition at line 370 of file sc_int_base.cc.

References m_len, sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_ERROR.

Referenced by check_index(), and sc_int_subref.

◆ invalid_length()

void sc_dt::sc_int_base::invalid_length ( ) const
private

◆ invalid_range()

void sc_dt::sc_int_base::invalid_range ( int l,
int r ) const
private

Definition at line 380 of file sc_int_base.cc.

References m_len, sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, and SC_REPORT_ERROR.

Referenced by check_range(), and sc_int_subref.

◆ length()

int sc_dt::sc_int_base::length ( ) const
inline

◆ long_high()

long sc_dt::sc_int_base::long_high ( ) const
inline

Definition at line 919 of file sc_int_base.hh.

References m_val, and sc_dt::UINT64_32ONES.

◆ long_low()

long sc_dt::sc_int_base::long_low ( ) const
inline

Definition at line 918 of file sc_int_base.hh.

References m_val, and sc_dt::UINT64_32ONES.

◆ nand_reduce()

bool sc_dt::sc_int_base::nand_reduce ( ) const
inline

Definition at line 898 of file sc_int_base.hh.

References and_reduce().

◆ nor_reduce()

bool sc_dt::sc_int_base::nor_reduce ( ) const
inline

Definition at line 900 of file sc_int_base.hh.

References or_reduce().

◆ operator int_type()

sc_dt::sc_int_base::operator int_type ( ) const
inline

Definition at line 906 of file sc_int_base.hh.

References m_val.

◆ operator%=()

sc_int_base & sc_dt::sc_int_base::operator%= ( int_type v)
inline

Definition at line 717 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator%=().

◆ operator&=()

sc_int_base & sc_dt::sc_int_base::operator&= ( int_type v)
inline

Definition at line 727 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator&=().

◆ operator()() [1/2]

sc_int_subref & sc_dt::sc_int_base::operator() ( int left,
int right )
inline

◆ operator()() [2/2]

const sc_int_subref_r & sc_dt::sc_int_base::operator() ( int left,
int right ) const
inline

◆ operator*=()

sc_int_base & sc_dt::sc_int_base::operator*= ( int_type v)
inline

Definition at line 701 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator*=().

◆ operator++() [1/2]

sc_int_base & sc_dt::sc_int_base::operator++ ( )
inline

Definition at line 770 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator++().

◆ operator++() [2/2]

const sc_int_base sc_dt::sc_int_base::operator++ ( int )
inline

Definition at line 778 of file sc_int_base.hh.

References extend_sign(), m_val, and sc_int_base().

◆ operator+=()

sc_int_base & sc_dt::sc_int_base::operator+= ( int_type v)
inline

Definition at line 685 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator+=().

◆ operator--() [1/2]

sc_int_base & sc_dt::sc_int_base::operator-- ( )
inline

Definition at line 787 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator--().

◆ operator--() [2/2]

const sc_int_base sc_dt::sc_int_base::operator-- ( int )
inline

Definition at line 795 of file sc_int_base.hh.

References extend_sign(), m_val, and sc_int_base().

◆ operator-=()

sc_int_base & sc_dt::sc_int_base::operator-= ( int_type v)
inline

Definition at line 693 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator-=().

◆ operator/=()

sc_int_base & sc_dt::sc_int_base::operator/= ( int_type v)
inline

Definition at line 709 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator/=().

◆ operator<<=()

sc_int_base & sc_dt::sc_int_base::operator<<= ( int_type v)
inline

Definition at line 751 of file sc_int_base.hh.

References extend_sign(), m_val, and sc_int_base().

◆ operator=() [1/19]

sc_int_base & sc_dt::sc_int_base::operator= ( const char * a)

◆ operator=() [2/19]

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().

◆ operator=() [3/19]

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_fxnum & a)
inline

◆ operator=() [4/19]

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_fxnum_fast & a)
inline

◆ operator=() [5/19]

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_fxval & a)
inline

◆ operator=() [6/19]

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_fxval_fast & a)
inline

◆ operator=() [7/19]

template<class T>
sc_int_base & sc_dt::sc_int_base::operator= ( const sc_generic_base< T > & a)
inline

Definition at line 615 of file sc_int_base.hh.

References a, extend_sign(), and m_val.

◆ operator=() [8/19]

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_int_base & a)
inline

Definition at line 598 of file sc_int_base.hh.

References a, extend_sign(), m_val, and sc_int_base().

◆ operator=() [9/19]

sc_int_base & sc_dt::sc_int_base::operator= ( const sc_int_subref_r & a)
inline

Definition at line 606 of file sc_int_base.hh.

References a, extend_sign(), m_val, and sc_int_subref_r.

◆ operator=() [10/19]

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().

◆ operator=() [11/19]

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().

◆ operator=() [12/19]

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().

◆ operator=() [13/19]

sc_int_base & sc_dt::sc_int_base::operator= ( double a)
inline

Definition at line 676 of file sc_int_base.hh.

References a, extend_sign(), and m_val.

◆ operator=() [14/19]

sc_int_base & sc_dt::sc_int_base::operator= ( int a)
inline

Definition at line 660 of file sc_int_base.hh.

References a, extend_sign(), and m_val.

◆ operator=() [15/19]

◆ operator=() [16/19]

sc_int_base & sc_dt::sc_int_base::operator= ( long a)
inline

Definition at line 644 of file sc_int_base.hh.

References a, extend_sign(), and m_val.

◆ operator=() [17/19]

sc_int_base & sc_dt::sc_int_base::operator= ( uint64 a)
inline

Definition at line 668 of file sc_int_base.hh.

References a, extend_sign(), and m_val.

◆ operator=() [18/19]

sc_int_base & sc_dt::sc_int_base::operator= ( unsigned int a)
inline

Definition at line 652 of file sc_int_base.hh.

References a, extend_sign(), and m_val.

◆ operator=() [19/19]

sc_int_base & sc_dt::sc_int_base::operator= ( unsigned long a)
inline

Definition at line 636 of file sc_int_base.hh.

References a, extend_sign(), and m_val.

◆ operator>>=()

sc_int_base & sc_dt::sc_int_base::operator>>= ( int_type v)
inline

Definition at line 760 of file sc_int_base.hh.

References m_val.

Referenced by sc_dt::sc_int< W >::operator>>=().

◆ operator[]() [1/2]

sc_int_bitref & sc_dt::sc_int_base::operator[] ( int i)
inline

◆ operator[]() [2/2]

const sc_int_bitref_r & sc_dt::sc_int_base::operator[] ( int i) const
inline

◆ operator^=()

sc_int_base & sc_dt::sc_int_base::operator^= ( int_type v)
inline

Definition at line 743 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator<<=().

◆ operator|=()

sc_int_base & sc_dt::sc_int_base::operator|= ( int_type v)
inline

Definition at line 735 of file sc_int_base.hh.

References extend_sign(), and m_val.

Referenced by sc_dt::sc_int< W >::operator|=().

◆ or_reduce()

bool sc_dt::sc_int_base::or_reduce ( ) const

Definition at line 557 of file sc_int_base.cc.

References m_val.

Referenced by nor_reduce().

◆ print()

void sc_dt::sc_int_base::print ( ::std::ostream & os = ::std::cout) const
inline

Definition at line 929 of file sc_int_base.hh.

References sc_dt::SC_DEC, sc_dt::sc_io_base(), sc_io_show_base(), and to_string().

◆ range() [1/2]

sc_int_subref & sc_dt::sc_int_base::range ( int left,
int right )
inline

◆ range() [2/2]

const sc_int_subref_r & sc_dt::sc_int_base::range ( int left,
int right ) const
inline

◆ scan()

void sc_dt::sc_int_base::scan ( ::std::istream & is = ::std::cin)

Definition at line 700 of file sc_int_base.cc.

◆ set() [1/2]

void sc_dt::sc_int_base::set ( int i)
inline

Definition at line 861 of file sc_int_base.hh.

References m_val, and sc_dt::UINT_ONE.

Referenced by operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), and operator=().

◆ set() [2/2]

void sc_dt::sc_int_base::set ( int i,
bool v )
inline

Definition at line 864 of file sc_int_base.hh.

References m_val, and sc_dt::UINT_ONE.

◆ test()

bool sc_dt::sc_int_base::test ( int i) const
inline

Definition at line 859 of file sc_int_base.hh.

References m_val, and sc_dt::UINT_ONE.

◆ to_double()

double sc_dt::sc_int_base::to_double ( ) const
inline

Definition at line 917 of file sc_int_base.hh.

References m_val.

◆ to_int()

int sc_dt::sc_int_base::to_int ( ) const
inline

Definition at line 911 of file sc_int_base.hh.

References m_val.

◆ to_int64()

int64 sc_dt::sc_int_base::to_int64 ( ) const
inline

Definition at line 915 of file sc_int_base.hh.

References m_val.

Referenced by sc_int_base().

◆ to_long()

long sc_dt::sc_int_base::to_long ( ) const
inline

Definition at line 913 of file sc_int_base.hh.

References m_val.

◆ to_string() [1/2]

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.

References m_len, sc_dt::SC_ON, sc_dt::SC_TRN, and sc_dt::SC_WRAP.

◆ to_string() [2/2]

const std::string sc_dt::sc_int_base::to_string ( sc_numrep numrep = SC_DEC) const

Definition at line 539 of file sc_int_base.cc.

References m_len, sc_dt::SC_ON, sc_dt::SC_TRN, and sc_dt::SC_WRAP.

Referenced by print().

◆ to_uint()

unsigned int sc_dt::sc_int_base::to_uint ( ) const
inline

Definition at line 912 of file sc_int_base.hh.

References m_val.

◆ to_uint64()

uint64 sc_dt::sc_int_base::to_uint64 ( ) const
inline

Definition at line 916 of file sc_int_base.hh.

References m_val.

◆ to_ulong()

unsigned long sc_dt::sc_int_base::to_ulong ( ) const
inline

Definition at line 914 of file sc_int_base.hh.

References m_val.

◆ value()

int_type sc_dt::sc_int_base::value ( ) const
inline

Definition at line 910 of file sc_int_base.hh.

◆ xnor_reduce()

bool sc_dt::sc_int_base::xnor_reduce ( ) const
inline

Definition at line 902 of file sc_int_base.hh.

References xor_reduce().

◆ 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, SC_INTWIDTH, and sc_dt::UINT_ZERO.

Referenced by xnor_reduce().

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const sc_int_base & a,
const sc_int_base & b )
friend

Definition at line 812 of file sc_int_base.hh.

References a, b, and sc_int_base().

◆ operator<

bool operator< ( const sc_int_base & a,
const sc_int_base & b )
friend

Definition at line 817 of file sc_int_base.hh.

References a, b, and sc_int_base().

◆ operator<=

bool operator<= ( const sc_int_base & a,
const sc_int_base & b )
friend

Definition at line 823 of file sc_int_base.hh.

References a, b, and sc_int_base().

◆ operator==

bool operator== ( const sc_int_base & a,
const sc_int_base & b )
friend

Definition at line 806 of file sc_int_base.hh.

References a, b, and sc_int_base().

◆ operator>

bool operator> ( const sc_int_base & a,
const sc_int_base & b )
friend

Definition at line 830 of file sc_int_base.hh.

References a, b, and sc_int_base().

◆ operator>=

bool operator>= ( const sc_int_base & a,
const sc_int_base & b )
friend

Definition at line 836 of file sc_int_base.hh.

References a, b, and sc_int_base().

◆ sc_int_bitref

friend class sc_int_bitref
friend

Definition at line 497 of file sc_int_base.hh.

References sc_int_bitref.

Referenced by bit(), bit(), operator[](), operator[](), and sc_int_bitref.

◆ sc_int_bitref_r

friend class sc_int_bitref_r
friend

Definition at line 496 of file sc_int_base.hh.

References sc_int_bitref_r.

Referenced by sc_int_bitref_r.

◆ sc_int_subref

friend class sc_int_subref
friend

◆ sc_int_subref_r

Member Data Documentation

◆ m_len

◆ m_ulen

◆ m_val


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

Generated on Mon May 26 2025 09:20:44 for gem5 by doxygen 1.13.2