SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_fx_ids.h
Go to the documentation of this file.
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 */
32 /*****************************************************************************
33 
34  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
35  changes you are making here.
36 
37  Name, Affiliation, Date:
38  Description of Modification:
39 
40  *****************************************************************************/
41 
42 // $Log: sc_fx_ids.h,v $
43 // Revision 1.1.1.1 2006/12/15 20:20:04 acg
44 // SystemC 2.3
45 //
46 // Revision 1.3 2006/01/13 18:53:57 acg
47 // Andy Goodrich: added $Log command so that CVS comments are reproduced in
48 // the source.
49 //
50 
51 #ifndef SC_FX_IDS_H
52 #define SC_FX_IDS_H
53 
54 
55 #include "sysc/utils/sc_report.h"
56 
57 
64 #ifndef SC_DEFINE_MESSAGE
65 
66 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
67  namespace sc_core { extern SC_API const char id[]; }
68 namespace sc_core {
69  extern SC_API const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
70 }
71 #endif
72 
73 
74 SC_DEFINE_MESSAGE( SC_ID_INVALID_WL_, 300,
75  "total wordlength <= 0 is not valid" )
76 SC_DEFINE_MESSAGE( SC_ID_INVALID_N_BITS_, 301,
77  "number of bits < 0 is not valid" )
78 SC_DEFINE_MESSAGE( SC_ID_INVALID_DIV_WL_, 302,
79  "division wordlength <= 0 is not valid" )
80 SC_DEFINE_MESSAGE( SC_ID_INVALID_CTE_WL_, 303,
81  "constant wordlength <= 0 is not valid" )
82 SC_DEFINE_MESSAGE( SC_ID_INVALID_MAX_WL_, 304,
83  "maximum wordlength <= 0 and != -1 is not valid" )
84 SC_DEFINE_MESSAGE( SC_ID_INVALID_FX_VALUE_, 305,
85  "invalid fixed-point value" )
86 SC_DEFINE_MESSAGE( SC_ID_INVALID_O_MODE_, 306,
87  "invalid overflow mode" )
88 SC_DEFINE_MESSAGE( SC_ID_OUT_OF_RANGE_, 307,
89  "index out of range" )
90 SC_DEFINE_MESSAGE( SC_ID_CONTEXT_BEGIN_FAILED_, 308,
91  "context begin failed" )
92 SC_DEFINE_MESSAGE( SC_ID_CONTEXT_END_FAILED_, 309,
93  "context end failed" )
94 SC_DEFINE_MESSAGE( SC_ID_WRAP_SM_NOT_DEFINED_, 310,
95  "SC_WRAP_SM not defined for unsigned numbers" )
96 
97 
98 
99 #endif
100 
101 // Taf!
#define SC_DEFINE_MESSAGE(id, unused1, unused2)
Definition: sc_fx_ids.h:66
SC_API const char SC_ID_REGISTER_ID_FAILED_[]
Definition: sc_bit_ids.h:77
Run-time logging and reporting facilities.
#define SC_API
Definition: sc_cmnhdr.h:168