sc_unsigned.cc (13138:31951157e41e) | sc_unsigned.cc (13160:1e959d3afc64) |
---|---|
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 --- 126 unchanged lines hidden (view full) --- 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 = " << | 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 --- 126 unchanged lines hidden (view full) --- 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" | 143 l << ", right = " << r << " \n" |
144 " violates either (" << (nbits - 2) << " >= left >= 0) or " 145 "(" << (nbits-2) << " >= right >= 0)"; 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. --- 2108 unchanged lines hidden --- | 144 " violates either (" << (nbits - 2) << " >= left >= 0) or " 145 "(" << (nbits-2) << " >= right >= 0)"; 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. --- 2108 unchanged lines hidden --- |