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 --- 109 unchanged lines hidden (view full) --- 118// ---------------------------------------------------------------------------- 119 120void 121sc_signed::invalid_index(int i) const 122{ 123 std::stringstream msg; 124 msg << "sc_bigint bit selection: index = " << i << " violates " 125 "0 <= index <= " << (nbits - 1); |
126 SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); |
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" 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// ---------------------------------------------------------------------------- 144 145// ---------------------------------------------------------------------------- 146// SECTION: Public members. --- 3836 unchanged lines hidden --- |