91 std::stringstream msg;
92 msg <<
"sc_uint_concref<T1,T2> initialization: length = " << length <<
115 *
this = aa = (low_i < 64) ? src >> low_i : src >> 63;
123 *
this = aa = 1 & (src >> low_i);
125 *
this = aa = (src < 0) ? (
int_type)-1 : 0;
133 *
this = aa = 1 & (src >> low_i);
142 *
this = aa = (low_i < 64) ? src >> low_i : 0;
175 dst_p[dst_i] = (
sc_digit)((dst_p[dst_i] & mask));
178 for (; dst_i <= end_i; dst_i++)
205 dst_p[dst_i] = (
sc_digit)(((dst_p[dst_i] & mask)) |
208 switch (end_i - dst_i) {
265 return (*
this = aa =
a);
272 return (*
this = aa =
a);
279 return (*
this = aa =
a);
286 return (*
this = aa =
a);
296 *
this = aa = (low_i < 64) ? src >> low_i : src >> 63;
304 *
this = aa = src >> low_i;
306 *
this = aa = (src < 0) ? (
int_type)-1 : 0;
314 *
this = aa = src >> low_i;
323 *
this = aa = (low_i < 64) ? src >> low_i : 0;
347 std::stringstream msg;
348 msg <<
"sc_uint[_base] initialization: length = " <<
m_len <<
357 std::stringstream msg;
358 msg <<
"sc_uint[_base] bit selection: index = " << i <<
359 " violates 0 <= index <= " << (
m_len - 1);
367 std::stringstream msg;
368 msg <<
"sc_uint[_base] part selection: " <<
369 "left = " << l <<
", right = " << r <<
" violates " <<
370 (
m_len - 1) <<
" >= left >= right >= 0";
381 std::stringstream msg;
382 msg <<
"sc_uint[_base]: value does not fit into a length of " <<
m_len;
405 *
this = v.to_uint64();
411 *
this = v.to_uint64();
417 *
this = v.to_uint64();
424 *
this =
a.to_uint64();
431 *
this =
a.to_uint64();
441 for (; i < minlen; ++i) {
445 for (; i <
m_len; ++i) {
458 for (; i < minlen; ++i) {
461 for (; i <
m_len; ++i) {
475 for (; i < minlen; ++i) {
476 set(i,
a.get_bit(i));
478 for (; i <
m_len; ++i) {
491 for (; i < minlen; ++i) {
494 for (; i <
m_len; ++i) {
507 "character string is zero");
508 }
else if (*
a == 0) {
510 "character string is empty");
516 std::stringstream msg;
517 msg <<
"character string '" <<
a <<
"' is not valid";
530 return aa.to_string(numrep);
538 return aa.to_string(numrep, w_prefix);
564 val = ((val & (mask << n)) >> n) ^ (val & mask);
584 dst_p[dst_i] = (
sc_digit)((dst_p[dst_i] & mask));
587 for (; dst_i <= end_i; dst_i++)
620 high_i = low_i + (
m_len - 1);
633 dst_p[dst_i] = (
sc_digit)(((dst_p[dst_i] & mask)) |
636 switch (end_i - dst_i) {
671 *
this = (low_i < 64) ? src >> low_i : src >> 63;
678 *
this = src >> low_i;
680 *
this = (src < 0) ? (
int_type)-1 : 0;
687 *
this = src >> low_i;
695 *
this = (low_i < 64) ? src >> low_i : 0;
sc_uint_base(int w=sc_length_param().len())
sc_uint_base & operator=(uint_type v)
void scan(::std::istream &is=::std::cin)
void check_length() const
virtual void concat_set(int64 src, int low_i)
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
const std::string to_string(sc_numrep numrep=SC_DEC) const
friend class sc_uint_base
void scan(::std::istream &is=::std::cin)
virtual void concat_set(int64 src, int low_i)
virtual bool concat_get_data(sc_digit *dst_p, int low_i) const
virtual bool concat_get_ctrl(sc_digit *dst_p, int low_i) const
void scan(::std::istream &is=::std::cin)
friend class sc_uint_base
virtual void concat_set(int64 src, int low_i)
static sc_core::sc_vpool< sc_uint_subref > m_pool
void invalid_index(int i) const
sc_uint_base(int w=sc_length_param().len())
void invalid_range(int l, int r) const
void invalid_length() const
const char SC_ID_CONVERSION_FAILED_[]
const char SC_ID_OUT_OF_BOUNDS_[]
void sc_uint_concref_invalid_length(int length)
const T sc_min(const T &a, const T &b)
const uint_type mask_int[SC_INTWIDTH][SC_INTWIDTH]
static const uint64 UINT_ZERO
#define SC_REPORT_WARNING(msg_type, msg)
#define SC_REPORT_ERROR(msg_type, msg)