SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_uint_base.h File Reference

An unsigned integer whose length is less than 64 bits. More...

Include dependency graph for sc_uint_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sc_dt::sc_uint_bitref_r
 Proxy class for sc_uint bit selection (r-value only). More...
 
class  sc_dt::sc_uint_bitref
 Proxy class for sc_uint bit selection (r-value and l-value). More...
 
class  sc_dt::sc_uint_subref_r
 Proxy class for sc_uint part selection (r-value only). More...
 
class  sc_dt::sc_uint_subref
 Proxy class for sc_uint part selection (r-value and l-value). More...
 
class  sc_dt::sc_uint_base
 Base class for sc_uint. More...
 

Namespaces

 sc_dt
 
 sc_core
 

Functions

bool sc_dt::operator== (const sc_uint_base &a, const sc_uint_base &b)
 
bool sc_dt::operator!= (const sc_uint_base &a, const sc_uint_base &b)
 
bool sc_dt::operator< (const sc_uint_base &a, const sc_uint_base &b)
 
bool sc_dt::operator<= (const sc_uint_base &a, const sc_uint_base &b)
 
bool sc_dt::operator> (const sc_uint_base &a, const sc_uint_base &b)
 
bool sc_dt::operator>= (const sc_uint_base &a, const sc_uint_base &b)
 
inline ::std::ostream & sc_dt::operator<< (::std::ostream &, const sc_uint_bitref_r &)
 
inline ::std::istream & sc_dt::operator>> (::std::istream &, sc_uint_bitref &)
 
inline ::std::ostream & sc_dt::operator<< (::std::ostream &, const sc_uint_subref_r &)
 
inline ::std::istream & sc_dt::operator>> (::std::istream &, sc_uint_subref &)
 
inline ::std::ostream & sc_dt::operator<< (::std::ostream &, const sc_uint_base &)
 
inline ::std::istream & sc_dt::operator>> (::std::istream &, sc_uint_base &)
 
bool sc_dt::and_reduce (const sc_uint_subref_r &a)
 
bool sc_dt::nand_reduce (const sc_uint_subref_r &a)
 
bool sc_dt::or_reduce (const sc_uint_subref_r &a)
 
bool sc_dt::nor_reduce (const sc_uint_subref_r &a)
 
bool sc_dt::xor_reduce (const sc_uint_subref_r &a)
 
bool sc_dt::xnor_reduce (const sc_uint_subref_r &a)
 
bool sc_dt::and_reduce (const sc_uint_base &a)
 
bool sc_dt::nand_reduce (const sc_uint_base &a)
 
bool sc_dt::or_reduce (const sc_uint_base &a)
 
bool sc_dt::nor_reduce (const sc_uint_base &a)
 
bool sc_dt::xor_reduce (const sc_uint_base &a)
 
bool sc_dt::xnor_reduce (const sc_uint_base &a)
 

Detailed Description

An unsigned integer whose length is less than 64 bits.

Unlike arbitrary precision, arithmetic and bitwise operations are performed using the native types (hence capped at 64 bits). The sc_uint integer is useful when the user does not need arbitrary precision and the performance is superior to sc_bigint/sc_biguint.

Original Author: Amit Rao, Synopsys, Inc.

Definition in file sc_uint_base.h.