sc_signed.cc (13138:31951157e41e) | sc_signed.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 --- 118 unchanged lines hidden (view full) --- 127 sc_core::sc_abort(); // can't recover from here 128} 129 130void 131sc_signed::invalid_range(int l, int r) const 132{ 133 std::stringstream msg; 134 msg << "sc_bigint 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 --- 118 unchanged lines hidden (view full) --- 127 sc_core::sc_abort(); // can't recover from here 128} 129 130void 131sc_signed::invalid_range(int l, int r) const 132{ 133 std::stringstream msg; 134 msg << "sc_bigint part selection: left = " << |
135 l << ", right = " << r << "\n" | 135 l << ", right = " << r << " \n" |
136 " violates either (" << (nbits-1) << " >= left >= 0) or " 137 "(" << (nbits-1) << " >= right >= 0)"; 138 SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); 139 sc_core::sc_abort(); // can't recover from here 140} 141 142 143// ---------------------------------------------------------------------------- --- 3839 unchanged lines hidden --- | 136 " violates either (" << (nbits-1) << " >= left >= 0) or " 137 "(" << (nbits-1) << " >= right >= 0)"; 138 SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); 139 sc_core::sc_abort(); // can't recover from here 140} 141 142 143// ---------------------------------------------------------------------------- --- 3839 unchanged lines hidden --- |