#include <sc_bv_base.h>

Public Types | |
| typedef sc_proxy< sc_bv_base > | base_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_base & | operator= (const sc_proxy< X > &a) |
| sc_bv_base & | operator= (const sc_bv_base &a) |
| sc_bv_base & | operator= (const char *a) |
| sc_bv_base & | operator= (const bool *a) |
| sc_bv_base & | operator= (const sc_logic *a) |
| sc_bv_base & | operator= (const sc_unsigned &a) |
| sc_bv_base & | operator= (const sc_signed &a) |
| sc_bv_base & | operator= (const sc_uint_base &a) |
| sc_bv_base & | operator= (const sc_int_base &a) |
| sc_bv_base & | operator= (unsigned long a) |
| sc_bv_base & | operator= (long a) |
| sc_bv_base & | operator= (unsigned int a) |
| sc_bv_base & | operator= (int a) |
| sc_bv_base & | operator= (uint64 a) |
| sc_bv_base & | operator= (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) |
| unsigned long | get_word (int i) const |
| void | set_word (int i, unsigned long w) |
| unsigned long | get_cword (int i) const |
| void | set_cword (int i, unsigned long w) |
| void | clean_tail () |
| bool | is_01 () const |
Protected Attributes | |
| int | m_len |
| int | m_size |
| unsigned long * | m_data |
Private Member Functions | |
| void | init (int length_, bool init_value=false) |
| void | assign_from_string (const std::string &) |
Friends | |
| class | sc_lv_base |
| sc_dt::sc_bv_base::sc_bv_base | ( | int | length_ = sc_length_param().len() |
) | [inline, explicit] |
References init().
| sc_dt::sc_bv_base::sc_bv_base | ( | bool | a, | |
| int | length_ = sc_length_param().len() | |||
| ) | [inline, explicit] |
References init().
| sc_dt::sc_bv_base::sc_bv_base | ( | const char * | a | ) |
References assign_from_string(), sc_dt::convert_to_bin(), and init().
| sc_dt::sc_bv_base::sc_bv_base | ( | const char * | a, | |
| int | length_ | |||
| ) |
References assign_from_string(), sc_dt::convert_to_bin(), and init().
| sc_dt::sc_bv_base::sc_bv_base | ( | const sc_proxy< X > & | a | ) | [inline] |
References sc_dt::sc_proxy< sc_bv_base >::assign_(), sc_dt::sc_proxy< X >::back_cast(), and init().
| sc_dt::sc_bv_base::sc_bv_base | ( | const sc_bv_base & | a | ) |
| virtual sc_dt::sc_bv_base::~sc_bv_base | ( | ) | [inline, virtual] |
References m_data.
| void sc_dt::sc_bv_base::assign_from_string | ( | const std::string & | s | ) | [private] |
References m_len, sc_core::SC_ID_CANNOT_CONVERT_, sc_dt::sc_min(), SC_REPORT_ERROR, and set_bit().
Referenced by operator=(), and sc_bv_base().
| void sc_dt::sc_bv_base::clean_tail | ( | ) | [inline] |
| sc_logic_value_t sc_dt::sc_bv_base::get_bit | ( | int | i | ) | const [inline] |
References m_data, sc_dt::UL_ONE, and sc_dt::UL_SIZE.
Referenced by sc_dt::sc_unsigned::operator=(), sc_dt::sc_uint_base::operator=(), sc_dt::sc_signed::operator=(), and sc_dt::sc_int_base::operator=().
| unsigned long sc_dt::sc_bv_base::get_cword | ( | int | i | ) | const [inline] |
References sc_dt::UL_ZERO.
| unsigned long sc_dt::sc_bv_base::get_word | ( | int | i | ) | const [inline] |
References m_data.
| void sc_dt::sc_bv_base::init | ( | int | length_, | |
| bool | init_value = false | |||
| ) | [private] |
References clean_tail(), m_data, m_len, m_size, sc_core::SC_ID_ZERO_LENGTH_, SC_REPORT_ERROR, sc_dt::UL_SIZE, and sc_dt::UL_ZERO.
Referenced by sc_bv_base().
| bool sc_dt::sc_bv_base::is_01 | ( | ) | const [inline] |
| int sc_dt::sc_bv_base::length | ( | ) | const [inline] |
References m_len.
Referenced by sc_dt::scfx_rep::get_slice(), sc_dt::sc_fxnum_fast::get_slice(), sc_dt::sc_fxnum_fast_subref::length(), sc_dt::sc_fxnum_subref::length(), sc_dt::sc_unsigned::operator=(), sc_dt::sc_uint_base::operator=(), sc_dt::sc_signed::operator=(), sc_dt::sc_int_base::operator=(), sc_dt::sc_concatref::operator=(), sc_dt::scfx_rep::set_slice(), and sc_dt::sc_fxnum_fast::set_slice().
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | int64 | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | uint64 | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | int | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | unsigned int | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | long | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | unsigned long | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | const sc_int_base & | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | const sc_uint_base & | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | const sc_signed & | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | const sc_unsigned & | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | const sc_logic * | a | ) | [inline] |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | const bool * | a | ) | [inline] |
| sc_bv_base & sc_dt::sc_bv_base::operator= | ( | const char * | a | ) |
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | const sc_bv_base & | a | ) | [inline] |
References sc_dt::assign_p_().
| sc_bv_base& sc_dt::sc_bv_base::operator= | ( | const sc_proxy< X > & | a | ) | [inline] |
| void sc_dt::sc_bv_base::set_bit | ( | int | i, | |
| sc_logic_value_t | value | |||
| ) | [inline] |
| void sc_dt::sc_bv_base::set_cword | ( | int | i, | |
| unsigned long | w | |||
| ) | [inline] |
References sc_core::SC_ID_SC_BV_CANNOT_CONTAIN_X_AND_Z_, and SC_REPORT_WARNING.
| void sc_dt::sc_bv_base::set_word | ( | int | i, | |
| unsigned long | w | |||
| ) | [inline] |
References m_data.
| int sc_dt::sc_bv_base::size | ( | ) | const [inline] |
References m_size.
friend class sc_lv_base [friend] |
unsigned long* sc_dt::sc_bv_base::m_data [protected] |
Referenced by clean_tail(), get_bit(), get_word(), init(), sc_bv_base(), set_bit(), set_word(), and ~sc_bv_base().
int sc_dt::sc_bv_base::m_len [protected] |
Referenced by assign_from_string(), clean_tail(), init(), and length().
int sc_dt::sc_bv_base::m_size [protected] |
Referenced by clean_tail(), init(), sc_bv_base(), and size().