sc_nbcommon.inc (12854:c95c35407325) sc_nbcommon.inc (13011:8809582e38f6)
1/*****************************************************************************
2
3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4 more contributor license agreements. See the NOTICE file distributed
5 with this work for additional information regarding copyright ownership.
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
8 License. You may obtain a copy of the License at

--- 2566 unchanged lines hidden (view full) ---

2575CLASS_TYPE::dump(::std::ostream &os) const
2576{
2577 // Save the current setting, and set the base to decimal.
2578 ::std::ios::fmtflags old_flags =
2579 os.setf(::std::ios::dec, ::std::ios::basefield);
2580
2581 os << "width = " << length() << ::std::endl;
2582 os << "value = " << *this << ::std::endl;
1/*****************************************************************************
2
3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4 more contributor license agreements. See the NOTICE file distributed
5 with this work for additional information regarding copyright ownership.
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
8 License. You may obtain a copy of the License at

--- 2566 unchanged lines hidden (view full) ---

2575CLASS_TYPE::dump(::std::ostream &os) const
2576{
2577 // Save the current setting, and set the base to decimal.
2578 ::std::ios::fmtflags old_flags =
2579 os.setf(::std::ios::dec, ::std::ios::basefield);
2580
2581 os << "width = " << length() << ::std::endl;
2582 os << "value = " << *this << ::std::endl;
2583 os << "bits = ";
2583 os << "bits = ";
2584
2585 int len = length();
2586
2587 for (int i = len - 1; i >= 0; --i) {
2588 os << "01"[test(i)];
2589 if (--len % 4 == 0)
2590 os << " ";
2591 }

--- 26 unchanged lines hidden ---
2584
2585 int len = length();
2586
2587 for (int i = len - 1; i >= 0; --i) {
2588 os << "01"[test(i)];
2589 if (--len % 4 == 0)
2590 os << " ";
2591 }

--- 26 unchanged lines hidden ---