SystemC  2.3.1
Accellera SystemC proof-of-concept library
sc_fx_ids.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  The following code is derived, directly or indirectly, from the SystemC
4  source code Copyright (c) 1996-2014 by all Contributors.
5  All Rights reserved.
6 
7  The contents of this file are subject to the restrictions and limitations
8  set forth in the SystemC Open Source License (the "License")
9  You may not use this file except in compliance with such restrictions and
10  limitations. You may obtain instructions on how to receive a copy of the
11  License at http://www.accellera.org/. Software distributed by Contributors
12  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
13  ANY KIND, either express or implied. See the License for the specific
14  language governing rights and limitations under the License.
15 
16  *****************************************************************************/
17 
18 /*****************************************************************************
19 
20  sc_fx_ids.h -- Report ids for the datatypes/fx code.
21 
22  Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17
23 
24  *****************************************************************************/
25 
26 /*****************************************************************************
27 
28  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
29  changes you are making here.
30 
31  Name, Affiliation, Date:
32  Description of Modification:
33 
34  *****************************************************************************/
35 
36 // $Log: sc_fx_ids.h,v $
37 // Revision 1.1.1.1 2006/12/15 20:20:04 acg
38 // SystemC 2.3
39 //
40 // Revision 1.3 2006/01/13 18:53:57 acg
41 // Andy Goodrich: added $Log command so that CVS comments are reproduced in
42 // the source.
43 //
44 
45 #ifndef SC_FX_IDS_H
46 #define SC_FX_IDS_H
47 
48 
49 #include "sysc/utils/sc_report.h"
50 
51 
52 // ----------------------------------------------------------------------------
53 // Report ids (datatypes/fx)
54 //
55 // Report ids in the range of 300-399.
56 // ----------------------------------------------------------------------------
57 
58 #ifndef SC_DEFINE_MESSAGE
59 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
60  namespace sc_core { extern const char id[]; }
61 namespace sc_core {
62  extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
63 }
64 #endif
65 
66 
67 SC_DEFINE_MESSAGE( SC_ID_INVALID_WL_, 300,
68  "total wordlength <= 0 is not valid" )
69 SC_DEFINE_MESSAGE( SC_ID_INVALID_N_BITS_, 301,
70  "number of bits < 0 is not valid" )
71 SC_DEFINE_MESSAGE( SC_ID_INVALID_DIV_WL_, 302,
72  "division wordlength <= 0 is not valid" )
73 SC_DEFINE_MESSAGE( SC_ID_INVALID_CTE_WL_, 303,
74  "constant wordlength <= 0 is not valid" )
75 SC_DEFINE_MESSAGE( SC_ID_INVALID_MAX_WL_, 304,
76  "maximum wordlength <= 0 and != -1 is not valid" )
77 SC_DEFINE_MESSAGE( SC_ID_INVALID_FX_VALUE_, 305,
78  "invalid fixed-point value" )
79 SC_DEFINE_MESSAGE( SC_ID_INVALID_O_MODE_, 306,
80  "invalid overflow mode" )
81 SC_DEFINE_MESSAGE( SC_ID_OUT_OF_RANGE_, 307,
82  "index out of range" )
83 SC_DEFINE_MESSAGE( SC_ID_CONTEXT_BEGIN_FAILED_, 308,
84  "context begin failed" )
85 SC_DEFINE_MESSAGE( SC_ID_CONTEXT_END_FAILED_, 309,
86  "context end failed" )
87 SC_DEFINE_MESSAGE( SC_ID_WRAP_SM_NOT_DEFINED_, 310,
88  "SC_WRAP_SM not defined for unsigned numbers" )
89 
90 
91 
92 #endif
93 
94 // Taf!
sc_clock period is zero sc_clock low time is zero sc_fifo< T > cannot have more than one writer bind interface to port failed complete binding failed remove port failed insert primitive channel failed sc_signal< T > cannot have more than one driver resolved port not bound to resolved signal sc_semaphore requires an initial value
const char SC_ID_REGISTER_ID_FAILED_[]
Definition: sc_bit_ids.h:70
#define SC_DEFINE_MESSAGE(id, unused1, unused2)
Definition: sc_fx_ids.h:59