sc_fx_ids.h revision 12027:1eb7dc7aa10b
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 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 15 implied. See the License for the specific language governing 16 permissions and limitations under the License. 17 18 *****************************************************************************/ 19 20/***************************************************************************** 21 22 sc_fx_ids.h -- Report ids for the datatypes/fx code. 23 24 Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17 25 26 *****************************************************************************/ 27 28/***************************************************************************** 29 30 MODIFICATION LOG - modifiers, enter your name, affiliation, date and 31 changes you are making here. 32 33 Name, Affiliation, Date: 34 Description of Modification: 35 36 *****************************************************************************/ 37 38// $Log: sc_fx_ids.h,v $ 39// Revision 1.1.1.1 2006/12/15 20:20:04 acg 40// SystemC 2.3 41// 42// Revision 1.3 2006/01/13 18:53:57 acg 43// Andy Goodrich: added $Log command so that CVS comments are reproduced in 44// the source. 45// 46 47#ifndef SC_FX_IDS_H 48#define SC_FX_IDS_H 49 50 51#include "sysc/utils/sc_report.h" 52 53 54// ---------------------------------------------------------------------------- 55// Report ids (datatypes/fx) 56// 57// Report ids in the range of 300-399. 58// ---------------------------------------------------------------------------- 59 60#ifndef SC_DEFINE_MESSAGE 61#define SC_DEFINE_MESSAGE(id,unused1,unused2) \ 62 namespace sc_core { extern const char id[]; } 63namespace sc_core { 64 extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp 65} 66#endif 67 68 69SC_DEFINE_MESSAGE( SC_ID_INVALID_WL_, 300, 70 "total wordlength <= 0 is not valid" ) 71SC_DEFINE_MESSAGE( SC_ID_INVALID_N_BITS_, 301, 72 "number of bits < 0 is not valid" ) 73SC_DEFINE_MESSAGE( SC_ID_INVALID_DIV_WL_, 302, 74 "division wordlength <= 0 is not valid" ) 75SC_DEFINE_MESSAGE( SC_ID_INVALID_CTE_WL_, 303, 76 "constant wordlength <= 0 is not valid" ) 77SC_DEFINE_MESSAGE( SC_ID_INVALID_MAX_WL_, 304, 78 "maximum wordlength <= 0 and != -1 is not valid" ) 79SC_DEFINE_MESSAGE( SC_ID_INVALID_FX_VALUE_, 305, 80 "invalid fixed-point value" ) 81SC_DEFINE_MESSAGE( SC_ID_INVALID_O_MODE_, 306, 82 "invalid overflow mode" ) 83SC_DEFINE_MESSAGE( SC_ID_OUT_OF_RANGE_, 307, 84 "index out of range" ) 85SC_DEFINE_MESSAGE( SC_ID_CONTEXT_BEGIN_FAILED_, 308, 86 "context begin failed" ) 87SC_DEFINE_MESSAGE( SC_ID_CONTEXT_END_FAILED_, 309, 88 "context end failed" ) 89SC_DEFINE_MESSAGE( SC_ID_WRAP_SM_NOT_DEFINED_, 310, 90 "SC_WRAP_SM not defined for unsigned numbers" ) 91 92 93 94#endif 95 96// Taf! 97