93 std::stringstream msg;
94 msg <<
"sc_int_concref<T1,T2> initialization: length = " << length <<
115 *
this = aa = (low_i < 64) ? src >> low_i : src >> 63;
122 *
this = aa = 1 & (src >> low_i);
124 *
this = aa = (src < 0) ? (
int_type)-1 : 0;
131 *
this = aa = 1 & (src >> low_i);
139 *
this = aa = (low_i < 64) ? src >> low_i : 0;
173 dst_p[dst_i] = (
sc_digit)(dst_p[dst_i] & mask);
174 switch (end_i - dst_i) {
220 dst_p[dst_i] = (
sc_digit)((dst_p[dst_i] & mask) |
223 switch (end_i - dst_i) {
280 return (*
this = aa =
a);
287 return (*
this = aa =
a);
294 return (*
this = aa =
a);
301 return (*
this = aa =
a);
311 *
this = aa = (low_i < 64) ? src >> low_i : src >> 63;
319 *
this = aa = src >> low_i;
321 *
this = (src < 0) ? (
int_type)-1 : 0;
329 *
this = aa = src >> low_i;
338 *
this = aa = (low_i < 64) ? src >> low_i : 0;
362 std::stringstream msg;
363 msg <<
"sc_int[_base] initialization: length = " <<
m_len <<
372 std::stringstream msg;
373 msg <<
"sc_int[_base] bit selection: index = " << i <<
374 " violates 0 <= index <= " << (
m_len - 1);
382 std::stringstream msg;
383 msg <<
"sc_int[_base] part selection: " <<
384 "left = " << l <<
", right = " << r <<
" violates " <<
385 (
m_len-1) <<
" >= left >= right >= 0";
395 std::stringstream msg;
396 msg <<
"sc_int[_base]: value does not fit into a length of " <<
m_len;
419 *
this = v.to_uint64();
425 *
this = v.to_uint64();
431 *
this = v.to_uint64();
438 *
this =
a.to_int64();
445 *
this =
a.to_int64();
455 for (; i < minlen; ++i) {
459 for (; i <
m_len; ++i) {
472 for (; i < minlen; ++i) {
475 for (; i <
m_len; ++i) {
489 for (; i < minlen; ++i) {
490 set(i,
a.get_bit(i));
492 for (; i <
m_len; ++i) {
505 for (; i < minlen; ++i) {
508 for (; i <
m_len; ++i) {
521 "character string is zero");
522 }
else if (*
a == 0) {
524 "character string is empty");
530 std::stringstream msg;
531 msg <<
"character string '" <<
a <<
"' is not valid";
543 return aa.to_string(numrep);
551 return aa.to_string(numrep, w_prefix);
568 val = ((val & (mask << n)) >> n) ^ (val & mask);
586 dst_p[dst_i] = (
sc_digit)(dst_p[dst_i] & mask);
588 for (; dst_i <= end_i; dst_i++)
621 high_i = low_i + (
m_len - 1);
634 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;
virtual bool concat_get_ctrl(sc_digit *dst_p, int low_i) const
void check_length() const
sc_int_base & operator=(int_type v)
virtual bool concat_get_data(sc_digit *dst_p, int low_i) const
void scan(::std::istream &is=::std::cin)
sc_int_base(int w=sc_length_param().len())
const std::string to_string(sc_numrep numrep=SC_DEC) const
virtual void concat_set(int64 src, int low_i)
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
virtual void concat_set(int64 src, int low_i)
static sc_core::sc_vpool< sc_int_subref > m_pool
void scan(::std::istream &is=::std::cin)
void invalid_length() const
void invalid_index(int i) const
sc_int_base(int w=sc_length_param().len())
void invalid_range(int l, int r) const
const char SC_ID_CONVERSION_FAILED_[]
const char SC_ID_OUT_OF_BOUNDS_[]
const T sc_min(const T &a, const T &b)
const uint_type mask_int[SC_INTWIDTH][SC_INTWIDTH]
void sc_int_concref_invalid_length(int length)
static const uint64 UINT_ZERO
#define SC_REPORT_WARNING(msg_type, msg)
#define SC_REPORT_ERROR(msg_type, msg)