SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Member Functions | List of all members
sc_dt::sc_bv< W > Class Template Reference

#include <sysc/datatypes/bit/sc_bv.h>

Inheritance diagram for sc_dt::sc_bv< W >:
Inheritance graph
[legend]
Collaboration diagram for sc_dt::sc_bv< W >:
Collaboration graph
[legend]

Public Member Functions

 sc_bv ()
 
 sc_bv (bool init_value)
 
 sc_bv (char init_value)
 
 sc_bv (const char *a)
 
 sc_bv (const bool *a)
 
 sc_bv (const sc_logic *a)
 
 sc_bv (const sc_unsigned &a)
 
 sc_bv (const sc_signed &a)
 
template<int WO>
 sc_bv (const sc_bigint< WO > &a)
 
template<int WO>
 sc_bv (const sc_biguint< WO > &a)
 
 sc_bv (const sc_uint_base &a)
 
 sc_bv (const sc_int_base &a)
 
 sc_bv (unsigned long a)
 
 sc_bv (long a)
 
 sc_bv (unsigned int a)
 
 sc_bv (int a)
 
 sc_bv (uint64 a)
 
 sc_bv (int64 a)
 
template<class X >
 sc_bv (const sc_proxy< X > &a)
 
 sc_bv (const sc_bv< W > &a)
 
template<class X >
sc_bv< W > & operator= (const sc_proxy< X > &a)
 
sc_bv< W > & operator= (const sc_bv< W > &a)
 
sc_bv< W > & operator= (const char *a)
 
sc_bv< W > & operator= (const bool *a)
 
sc_bv< W > & operator= (const sc_logic *a)
 
sc_bv< W > & operator= (const sc_unsigned &a)
 
sc_bv< W > & operator= (const sc_signed &a)
 
sc_bv< W > & operator= (const sc_uint_base &a)
 
sc_bv< W > & operator= (const sc_int_base &a)
 
sc_bv< W > & operator= (unsigned long a)
 
sc_bv< W > & operator= (long a)
 
sc_bv< W > & operator= (unsigned int a)
 
sc_bv< W > & operator= (int a)
 
sc_bv< W > & operator= (uint64 a)
 
sc_bv< W > & operator= (int64 a)
 
- Public Member Functions inherited from sc_dt::sc_bv_base
 sc_bv_base (int length_=sc_length_param().len())
 
 sc_bv_base (bool a, int length_=sc_length_param().len())
 
 sc_bv_base (const char *a)
 
 sc_bv_base (const char *a, int length_)
 
template<class X >
 sc_bv_base (const sc_proxy< X > &a)
 
 sc_bv_base (const sc_bv_base &a)
 
virtual ~sc_bv_base ()
 
template<class X >
sc_bv_baseoperator= (const sc_proxy< X > &a)
 
sc_bv_baseoperator= (const sc_bv_base &a)
 
sc_bv_baseoperator= (const char *a)
 
sc_bv_baseoperator= (const bool *a)
 
sc_bv_baseoperator= (const sc_logic *a)
 
sc_bv_baseoperator= (const sc_unsigned &a)
 
sc_bv_baseoperator= (const sc_signed &a)
 
sc_bv_baseoperator= (const sc_uint_base &a)
 
sc_bv_baseoperator= (const sc_int_base &a)
 
sc_bv_baseoperator= (unsigned long a)
 
sc_bv_baseoperator= (long a)
 
sc_bv_baseoperator= (unsigned int a)
 
sc_bv_baseoperator= (int a)
 
sc_bv_baseoperator= (uint64 a)
 
sc_bv_baseoperator= (int64 a)
 
int length () const
 
int size () const
 
value_type get_bit (int i) const
 
void set_bit (int i, value_type value)
 
sc_digit get_word (int i) const
 
void set_word (int i, sc_digit w)
 
sc_digit get_cword (int) const
 
void set_cword (int i, sc_digit w)
 
void clean_tail ()
 
bool is_01 () const
 
- Public Member Functions inherited from sc_dt::sc_proxy< sc_bv_base >
virtual ~sc_proxy ()
 
sc_bv_baseback_cast ()
 
const sc_bv_baseback_cast () const
 
sc_bv_baseassign_ (const sc_proxy< Y > &a)
 
sc_bv_baseassign_ (const char *a)
 
sc_bv_baseassign_ (const bool *a)
 
sc_bv_baseassign_ (const sc_logic *a)
 
sc_bv_baseassign_ (const sc_unsigned &a)
 
sc_bv_baseassign_ (const sc_signed &a)
 
sc_bv_baseassign_ (const sc_uint_base &a)
 
sc_bv_baseassign_ (const sc_int_base &a)
 
sc_bv_baseassign_ (unsigned int a)
 
sc_bv_baseassign_ (int a)
 
sc_bv_baseassign_ (unsigned long a)
 
sc_bv_baseassign_ (long a)
 
sc_bv_baseassign_ (uint64 a)
 
sc_bv_baseassign_ (int64 a)
 
sc_bv_baseb_not ()
 
sc_lv_base operator~ () const
 
sc_bv_baseoperator&= (const char *b)
 
sc_bv_baseoperator&= (const bool *b)
 
sc_bv_baseoperator&= (const sc_logic *b)
 
sc_bv_baseoperator&= (const sc_unsigned &b)
 
sc_bv_baseoperator&= (const sc_signed &b)
 
sc_bv_baseoperator&= (const sc_uint_base &b)
 
sc_bv_baseoperator&= (const sc_int_base &b)
 
sc_bv_baseoperator&= (unsigned long b)
 
sc_bv_baseoperator&= (long b)
 
sc_bv_baseoperator&= (unsigned int b)
 
sc_bv_baseoperator&= (int b)
 
sc_bv_baseoperator&= (uint64 b)
 
sc_bv_baseoperator&= (int64 b)
 
sc_lv_base operator& (const char *b) const
 
sc_lv_base operator& (const bool *b) const
 
sc_lv_base operator& (const sc_logic *b) const
 
sc_lv_base operator& (const sc_unsigned &b) const
 
sc_lv_base operator& (const sc_signed &b) const
 
sc_lv_base operator& (const sc_uint_base &b) const
 
sc_lv_base operator& (const sc_int_base &b) const
 
sc_lv_base operator& (unsigned long b) const
 
sc_lv_base operator& (long b) const
 
sc_lv_base operator& (unsigned int b) const
 
sc_lv_base operator& (int b) const
 
sc_lv_base operator& (uint64 b) const
 
sc_lv_base operator& (int64 b) const
 
sc_bv_baseoperator|= (const char *b)
 
sc_bv_baseoperator|= (const bool *b)
 
sc_bv_baseoperator|= (const sc_logic *b)
 
sc_bv_baseoperator|= (const sc_unsigned &b)
 
sc_bv_baseoperator|= (const sc_signed &b)
 
sc_bv_baseoperator|= (const sc_uint_base &b)
 
sc_bv_baseoperator|= (const sc_int_base &b)
 
sc_bv_baseoperator|= (unsigned long b)
 
sc_bv_baseoperator|= (long b)
 
sc_bv_baseoperator|= (unsigned int b)
 
sc_bv_baseoperator|= (int b)
 
sc_bv_baseoperator|= (uint64 b)
 
sc_bv_baseoperator|= (int64 b)
 
sc_lv_base operator| (const char *b) const
 
sc_lv_base operator| (const bool *b) const
 
sc_lv_base operator| (const sc_logic *b) const
 
sc_lv_base operator| (const sc_unsigned &b) const
 
sc_lv_base operator| (const sc_signed &b) const
 
sc_lv_base operator| (const sc_uint_base &b) const
 
sc_lv_base operator| (const sc_int_base &b) const
 
sc_lv_base operator| (unsigned long b) const
 
sc_lv_base operator| (long b) const
 
sc_lv_base operator| (unsigned int b) const
 
sc_lv_base operator| (int b) const
 
sc_lv_base operator| (uint64 b) const
 
sc_lv_base operator| (int64 b) const
 
sc_bv_baseoperator^= (const char *b)
 
sc_bv_baseoperator^= (const bool *b)
 
sc_bv_baseoperator^= (const sc_logic *b)
 
sc_bv_baseoperator^= (const sc_unsigned &b)
 
sc_bv_baseoperator^= (const sc_signed &b)
 
sc_bv_baseoperator^= (const sc_uint_base &b)
 
sc_bv_baseoperator^= (const sc_int_base &b)
 
sc_bv_baseoperator^= (unsigned long b)
 
sc_bv_baseoperator^= (long b)
 
sc_bv_baseoperator^= (unsigned int b)
 
sc_bv_baseoperator^= (int b)
 
sc_bv_baseoperator^= (uint64 b)
 
sc_bv_baseoperator^= (int64 b)
 
sc_lv_base operator^ (const char *b) const
 
sc_lv_base operator^ (const bool *b) const
 
sc_lv_base operator^ (const sc_logic *b) const
 
sc_lv_base operator^ (const sc_unsigned &b) const
 
sc_lv_base operator^ (const sc_signed &b) const
 
sc_lv_base operator^ (const sc_uint_base &b) const
 
sc_lv_base operator^ (const sc_int_base &b) const
 
sc_lv_base operator^ (unsigned long b) const
 
sc_lv_base operator^ (long b) const
 
sc_lv_base operator^ (unsigned int b) const
 
sc_lv_base operator^ (int b) const
 
sc_lv_base operator^ (uint64 b) const
 
sc_lv_base operator^ (int64 b) const
 
sc_bv_baseoperator<<= (int n)
 
sc_lv_base operator<< (int n) const
 
sc_bv_baseoperator>>= (int n)
 
sc_lv_base operator>> (int n) const
 
sc_bv_baselrotate (int n)
 
sc_bv_baserrotate (int n)
 
sc_bv_basereverse ()
 
sc_bitref< sc_bv_baseoperator[] (int i)
 
sc_bitref_r< sc_bv_baseoperator[] (int i) const
 
sc_bitref< sc_bv_basebit (int i)
 
sc_bitref_r< sc_bv_basebit (int i) const
 
sc_subref< sc_bv_baseoperator() (int hi, int lo)
 
sc_subref_r< sc_bv_baseoperator() (int hi, int lo) const
 
sc_subref< sc_bv_baserange (int hi, int lo)
 
sc_subref_r< sc_bv_baserange (int hi, int lo) const
 
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
 
bool operator== (const bool *b) const
 
bool operator== (const sc_logic *b) const
 
bool operator== (const sc_unsigned &b) const
 
bool operator== (const sc_signed &b) const
 
bool operator== (const sc_uint_base &b) const
 
bool operator== (const sc_int_base &b) const
 
bool operator== (unsigned long b) const
 
bool operator== (long b) const
 
bool operator== (unsigned int b) const
 
bool operator== (int b) const
 
bool operator== (uint64 b) const
 
bool operator== (int64 b) const
 
std::string to_string () const
 
std::string to_string (sc_numrep) const
 
std::string to_string (sc_numrep, bool) const
 
uint64 to_uint64 () const
 
int64 to_int64 () 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)
 

Additional Inherited Members

- Public Types inherited from sc_dt::sc_bv_base
typedef sc_proxy< sc_bv_basebase_type
 
typedef base_type::value_type value_type
 
- Public Types inherited from sc_dt::sc_proxy< sc_bv_base >
typedef sc_proxy_traits< sc_bv_base >::traits_type traits_type
 
typedef traits_type::bit_type bit_type
 
typedef traits_type::value_type value_type
 
- Protected Member Functions inherited from sc_dt::sc_proxy< sc_bv_base >
void check_bounds (int n) const
 
void check_wbounds (int n) const
 
- Protected Attributes inherited from sc_dt::sc_bv_base
int m_len
 
int m_size
 
sc_digitm_data
 
sc_digit m_base_vec [SC_BASE_VEC_DIGITS > 0 ? SC_BASE_VEC_DIGITS :1]
 

Detailed Description

template<int W>
class sc_dt::sc_bv< W >

Definition at line 73 of file sc_bv.h.

Constructor & Destructor Documentation

◆ sc_bv() [1/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( )
inline

Definition at line 80 of file sc_bv.h.

◆ sc_bv() [2/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( bool  init_value)
inlineexplicit

Definition at line 84 of file sc_bv.h.

◆ sc_bv() [3/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( char  init_value)
inlineexplicit

Definition at line 88 of file sc_bv.h.

◆ sc_bv() [4/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( const char *  a)
inline

Definition at line 92 of file sc_bv.h.

◆ sc_bv() [5/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( const bool *  a)
inline

Definition at line 96 of file sc_bv.h.

◆ sc_bv() [6/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( const sc_logic a)
inline

Definition at line 100 of file sc_bv.h.

◆ sc_bv() [7/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( const sc_unsigned a)
inline

Definition at line 104 of file sc_bv.h.

◆ sc_bv() [8/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( const sc_signed a)
inline

Definition at line 109 of file sc_bv.h.

◆ sc_bv() [9/20]

template<int W>
template<int WO>
sc_dt::sc_bv< W >::sc_bv ( const sc_bigint< WO > &  a)

Definition at line 526 of file sc_bigint_inlines.h.

◆ sc_bv() [10/20]

template<int W>
template<int WO>
sc_dt::sc_bv< W >::sc_bv ( const sc_biguint< WO > &  a)

Definition at line 517 of file sc_biguint_inlines.h.

◆ sc_bv() [11/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( const sc_uint_base a)
inline

Definition at line 117 of file sc_bv.h.

◆ sc_bv() [12/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( const sc_int_base a)
inline

Definition at line 121 of file sc_bv.h.

◆ sc_bv() [13/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( unsigned long  a)
inline

Definition at line 125 of file sc_bv.h.

◆ sc_bv() [14/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( long  a)
inline

Definition at line 129 of file sc_bv.h.

◆ sc_bv() [15/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( unsigned int  a)
inline

Definition at line 133 of file sc_bv.h.

◆ sc_bv() [16/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( int  a)
inline

Definition at line 137 of file sc_bv.h.

◆ sc_bv() [17/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( uint64  a)
inline

Definition at line 141 of file sc_bv.h.

◆ sc_bv() [18/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( int64  a)
inline

Definition at line 145 of file sc_bv.h.

◆ sc_bv() [19/20]

template<int W>
template<class X >
sc_dt::sc_bv< W >::sc_bv ( const sc_proxy< X > &  a)
inline

Definition at line 150 of file sc_bv.h.

◆ sc_bv() [20/20]

template<int W>
sc_dt::sc_bv< W >::sc_bv ( const sc_bv< W > &  a)
inline

Definition at line 154 of file sc_bv.h.

Member Function Documentation

◆ operator=() [1/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const bool *  a)
inline

Definition at line 171 of file sc_bv.h.

◆ operator=() [2/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const char *  a)
inline

Definition at line 168 of file sc_bv.h.

◆ operator=() [3/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const sc_bv< W > &  a)
inline

Definition at line 165 of file sc_bv.h.

◆ operator=() [4/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const sc_int_base a)
inline

Definition at line 187 of file sc_bv.h.

◆ operator=() [5/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const sc_logic a)
inline

Definition at line 174 of file sc_bv.h.

◆ operator=() [6/15]

template<int W>
template<class X >
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const sc_proxy< X > &  a)
inline

Definition at line 162 of file sc_bv.h.

◆ operator=() [7/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const sc_signed a)
inline

Definition at line 181 of file sc_bv.h.

◆ operator=() [8/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const sc_uint_base a)
inline

Definition at line 184 of file sc_bv.h.

◆ operator=() [9/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( const sc_unsigned a)
inline

Definition at line 178 of file sc_bv.h.

◆ operator=() [10/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( int  a)
inline

Definition at line 199 of file sc_bv.h.

◆ operator=() [11/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( int64  a)
inline

Definition at line 205 of file sc_bv.h.

◆ operator=() [12/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( long  a)
inline

Definition at line 193 of file sc_bv.h.

◆ operator=() [13/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( uint64  a)
inline

Definition at line 202 of file sc_bv.h.

◆ operator=() [14/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( unsigned int  a)
inline

Definition at line 196 of file sc_bv.h.

◆ operator=() [15/15]

template<int W>
sc_bv< W > & sc_dt::sc_bv< W >::operator= ( unsigned long  a)
inline

Definition at line 190 of file sc_bv.h.


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