sc_unsigned.cc (12854:c95c35407325) | sc_unsigned.cc (13138:31951157e41e) |
---|---|
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 --- 117 unchanged lines hidden (view full) --- 126// ---------------------------------------------------------------------------- 127 128void 129sc_unsigned::invalid_index(int i) const 130{ 131 std::stringstream msg; 132 msg << "sc_biguint bit selection: index = " << i << " violates " 133 "0 <= index <= " << (nbits-2); | 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 --- 117 unchanged lines hidden (view full) --- 126// ---------------------------------------------------------------------------- 127 128void 129sc_unsigned::invalid_index(int i) const 130{ 131 std::stringstream msg; 132 msg << "sc_biguint bit selection: index = " << i << " violates " 133 "0 <= index <= " << (nbits-2); |
134 SC_REPORT_ERROR("out of bounds", msg.str().c_str()); | 134 SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); |
135 sc_core::sc_abort(); // can't recover from here 136} 137 138void 139sc_unsigned::invalid_range(int l, int r) const 140{ 141 std::stringstream msg; 142 msg << "sc_biguint part selection: left = " << 143 l << ", right = " << r << "\n" 144 " violates either (" << (nbits - 2) << " >= left >= 0) or " 145 "(" << (nbits-2) << " >= right >= 0)"; | 135 sc_core::sc_abort(); // can't recover from here 136} 137 138void 139sc_unsigned::invalid_range(int l, int r) const 140{ 141 std::stringstream msg; 142 msg << "sc_biguint part selection: left = " << 143 l << ", right = " << r << "\n" 144 " violates either (" << (nbits - 2) << " >= left >= 0) or " 145 "(" << (nbits-2) << " >= right >= 0)"; |
146 SC_REPORT_ERROR("out of bounds", msg.str().c_str()); | 146 SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); |
147 sc_core::sc_abort(); // can't recover from here 148} 149 150// ---------------------------------------------------------------------------- 151// SECTION: Public members - Concatenation support. 152// ---------------------------------------------------------------------------- 153 154// Most public members are included from sc_nbcommon.inc. However, some --- 2105 unchanged lines hidden --- | 147 sc_core::sc_abort(); // can't recover from here 148} 149 150// ---------------------------------------------------------------------------- 151// SECTION: Public members - Concatenation support. 152// ---------------------------------------------------------------------------- 153 154// Most public members are included from sc_nbcommon.inc. However, some --- 2105 unchanged lines hidden --- |