SystemC  2.3.1
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
sc_dt::sc_bv_base Class Reference

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

Inheritance diagram for sc_dt::sc_bv_base:
Inheritance graph
[legend]
Collaboration diagram for sc_dt::sc_bv_base:
Collaboration graph
[legend]

Public Types

typedef sc_proxy< sc_bv_basebase_type
 
- Public Types inherited from sc_dt::sc_proxy< sc_bv_base >
typedef sc_proxy_traits
< sc_bv_base >::type 
traits_type
 
typedef traits_type::bit_type bit_type
 

Public Member Functions

 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
 
sc_logic_value_t get_bit (int i) const
 
void set_bit (int i, sc_logic_value_t 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 ()
 
const 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)
 
const sc_lv_base operator& (const char *b) const
 
const sc_lv_base operator& (const bool *b) const
 
const sc_lv_base operator& (const sc_logic *b) const
 
const sc_lv_base operator& (const sc_unsigned &b) const
 
const sc_lv_base operator& (const sc_signed &b) const
 
const sc_lv_base operator& (const sc_uint_base &b) const
 
const sc_lv_base operator& (const sc_int_base &b) const
 
const sc_lv_base operator& (unsigned long b) const
 
const sc_lv_base operator& (long b) const
 
const sc_lv_base operator& (unsigned int b) const
 
const sc_lv_base operator& (int b) const
 
const sc_lv_base operator& (uint64 b) const
 
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)
 
const sc_lv_base operator| (const char *b) const
 
const sc_lv_base operator| (const bool *b) const
 
const sc_lv_base operator| (const sc_logic *b) const
 
const sc_lv_base operator| (const sc_unsigned &b) const
 
const sc_lv_base operator| (const sc_signed &b) const
 
const sc_lv_base operator| (const sc_uint_base &b) const
 
const sc_lv_base operator| (const sc_int_base &b) const
 
const sc_lv_base operator| (unsigned long b) const
 
const sc_lv_base operator| (long b) const
 
const sc_lv_base operator| (unsigned int b) const
 
const sc_lv_base operator| (int b) const
 
const sc_lv_base operator| (uint64 b) const
 
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)
 
const sc_lv_base operator^ (const char *b) const
 
const sc_lv_base operator^ (const bool *b) const
 
const sc_lv_base operator^ (const sc_logic *b) const
 
const sc_lv_base operator^ (const sc_unsigned &b) const
 
const sc_lv_base operator^ (const sc_signed &b) const
 
const sc_lv_base operator^ (const sc_uint_base &b) const
 
const sc_lv_base operator^ (const sc_int_base &b) const
 
const sc_lv_base operator^ (unsigned long b) const
 
const sc_lv_base operator^ (long b) const
 
const sc_lv_base operator^ (unsigned int b) const
 
const sc_lv_base operator^ (int b) const
 
const sc_lv_base operator^ (uint64 b) const
 
const sc_lv_base operator^ (int64 b) const
 
sc_bv_baseoperator<<= (int n)
 
const sc_lv_base operator<< (int n) const
 
sc_bv_baseoperator>>= (int n)
 
const 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
 
sc_logic_value_t and_reduce () const
 
sc_logic_value_t nand_reduce () const
 
sc_logic_value_t or_reduce () const
 
sc_logic_value_t nor_reduce () const
 
sc_logic_value_t xor_reduce () const
 
sc_logic_value_t 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
 
const std::string to_string () const
 
const std::string to_string (sc_numrep) const
 
const std::string to_string (sc_numrep, bool) 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

int m_len
 
int m_size
 
sc_digitm_data
 

Friends

class sc_lv_base
 

Additional Inherited Members

- Protected Member Functions inherited from sc_dt::sc_proxy< sc_bv_base >
void check_bounds (int n) const
 
void check_wbounds (int n) const
 
sc_digit to_anything_unsigned () const
 
int64 to_anything_signed () const
 

Detailed Description

Definition at line 74 of file sc_bv_base.h.

Member Typedef Documentation

Definition at line 88 of file sc_bv_base.h.

Constructor & Destructor Documentation

sc_dt::sc_bv_base::sc_bv_base ( int  length_ = sc_length_param().len())
inlineexplicit

Definition at line 93 of file sc_bv_base.h.

sc_dt::sc_bv_base::sc_bv_base ( bool  a,
int  length_ = sc_length_param().len() 
)
inlineexplicit

Definition at line 97 of file sc_bv_base.h.

sc_dt::sc_bv_base::sc_bv_base ( const char *  a)
sc_dt::sc_bv_base::sc_bv_base ( const char *  a,
int  length_ 
)
template<class X >
sc_dt::sc_bv_base::sc_bv_base ( const sc_proxy< X > &  a)
inline

Definition at line 107 of file sc_bv_base.h.

sc_dt::sc_bv_base::sc_bv_base ( const sc_bv_base a)
virtual sc_dt::sc_bv_base::~sc_bv_base ( )
inlinevirtual

Definition at line 136 of file sc_bv_base.h.

Member Function Documentation

void sc_dt::sc_bv_base::clean_tail ( )
inline

Definition at line 327 of file sc_bv_base.h.

sc_logic_value_t sc_dt::sc_bv_base::get_bit ( int  i) const
inline

Definition at line 296 of file sc_bv_base.h.

sc_digit sc_dt::sc_bv_base::get_cword ( int  ) const
inline

Definition at line 243 of file sc_bv_base.h.

sc_digit sc_dt::sc_bv_base::get_word ( int  i) const
inline

Definition at line 237 of file sc_bv_base.h.

bool sc_dt::sc_bv_base::is_01 ( ) const
inline

Definition at line 253 of file sc_bv_base.h.

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

Definition at line 228 of file sc_bv_base.h.

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

Definition at line 143 of file sc_bv_base.h.

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

Definition at line 146 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= ( const char *  a)
sc_bv_base& sc_dt::sc_bv_base::operator= ( const bool *  a)
inline

Definition at line 151 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= ( const sc_logic a)
inline

Definition at line 154 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= ( const sc_unsigned a)
inline

Definition at line 157 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= ( const sc_signed a)
inline

Definition at line 160 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= ( const sc_uint_base a)
inline

Definition at line 163 of file sc_bv_base.h.

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

Definition at line 166 of file sc_bv_base.h.

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

Definition at line 169 of file sc_bv_base.h.

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

Definition at line 172 of file sc_bv_base.h.

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

Definition at line 175 of file sc_bv_base.h.

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

Definition at line 178 of file sc_bv_base.h.

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

Definition at line 181 of file sc_bv_base.h.

sc_bv_base& sc_dt::sc_bv_base::operator= ( int64  a)
inline

Definition at line 184 of file sc_bv_base.h.

void sc_dt::sc_bv_base::set_bit ( int  i,
sc_logic_value_t  value 
)
inline

Definition at line 305 of file sc_bv_base.h.

void sc_dt::sc_bv_base::set_cword ( int  i,
sc_digit  w 
)
inline

Definition at line 317 of file sc_bv_base.h.

void sc_dt::sc_bv_base::set_word ( int  i,
sc_digit  w 
)
inline

Definition at line 240 of file sc_bv_base.h.

int sc_dt::sc_bv_base::size ( ) const
inline

Definition at line 231 of file sc_bv_base.h.

Friends And Related Function Documentation

friend class sc_lv_base
friend

Definition at line 77 of file sc_bv_base.h.

Member Data Documentation

sc_digit* sc_dt::sc_bv_base::m_data
protected

Definition at line 260 of file sc_bv_base.h.

int sc_dt::sc_bv_base::m_len
protected

Definition at line 258 of file sc_bv_base.h.

int sc_dt::sc_bv_base::m_size
protected

Definition at line 259 of file sc_bv_base.h.


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