SystemC  2.3.1
Accellera SystemC proof-of-concept library
sc_communication_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_communication_ids.h -- Report ids for the communication code.
21 
22  Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17
23 
24  CHANGE LOG IS AT THE END OF THE FILE
25  *****************************************************************************/
26 
27 #ifndef SC_COMMUNICATION_IDS_H
28 #define SC_COMMUNICATION_IDS_H
29 
30 
31 #include "sysc/utils/sc_report.h"
32 
33 
34 // ----------------------------------------------------------------------------
35 // Report ids (communication)
36 //
37 // Report ids in the range of 100-199.
38 // ----------------------------------------------------------------------------
39 
40 #ifndef SC_DEFINE_MESSAGE
41 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
42  namespace sc_core { extern const char id[]; }
43 namespace sc_core {
44  extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
45 } // namespace sc_core
46 #endif
47 
48 SC_DEFINE_MESSAGE( SC_ID_PORT_OUTSIDE_MODULE_, 100,
49  "port specified outside of module" )
50 SC_DEFINE_MESSAGE( SC_ID_CLOCK_PERIOD_ZERO_, 101,
51  "sc_clock period is zero" )
52 SC_DEFINE_MESSAGE( SC_ID_CLOCK_HIGH_TIME_ZERO_, 102,
53  "sc_clock high time is zero" )
54 SC_DEFINE_MESSAGE( SC_ID_CLOCK_LOW_TIME_ZERO_, 103,
55  "sc_clock low time is zero" )
56 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_FIFO_READER_, 104,
57  "sc_fifo<T> cannot have more than one reader" )
58 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_FIFO_WRITER_, 105,
59  "sc_fifo<T> cannot have more than one writer" )
60 SC_DEFINE_MESSAGE( SC_ID_INVALID_FIFO_SIZE_, 106,
61  "sc_fifo<T> must have a size of at least 1" )
62 SC_DEFINE_MESSAGE( SC_ID_BIND_IF_TO_PORT_, 107,
63  "bind interface to port failed" )
64 SC_DEFINE_MESSAGE( SC_ID_BIND_PORT_TO_PORT_, 108,
65  "bind parent port to port failed" )
66 SC_DEFINE_MESSAGE( SC_ID_COMPLETE_BINDING_, 109,
67  "complete binding failed" )
68 SC_DEFINE_MESSAGE( SC_ID_INSERT_PORT_, 110,
69  "insert port failed" )
70 SC_DEFINE_MESSAGE( SC_ID_REMOVE_PORT_, 111,
71  "remove port failed" )
72 SC_DEFINE_MESSAGE( SC_ID_GET_IF_, 112,
73  "get interface failed" )
74 SC_DEFINE_MESSAGE( SC_ID_INSERT_PRIM_CHANNEL_, 113,
75  "insert primitive channel failed" )
76 SC_DEFINE_MESSAGE( SC_ID_REMOVE_PRIM_CHANNEL_, 114,
77  "remove primitive channel failed" )
78 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_SIGNAL_DRIVER_, 115,
79  "sc_signal<T> cannot have more than one driver" )
80 SC_DEFINE_MESSAGE( SC_ID_NO_DEFAULT_EVENT_, 116,
81  "channel doesn't have a default event" )
82 SC_DEFINE_MESSAGE( SC_ID_RESOLVED_PORT_NOT_BOUND_, 117,
83  "resolved port not bound to resolved signal" )
84 SC_DEFINE_MESSAGE( SC_ID_FIND_EVENT_, 118,
85  "find event failed" )
86 SC_DEFINE_MESSAGE( SC_ID_INVALID_SEMAPHORE_VALUE_, 119,
87  "sc_semaphore requires an initial value >= 0" )
88 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_HAS_NO_INTERFACE_, 120,
89  "sc_export instance has no interface" )
90 SC_DEFINE_MESSAGE( SC_ID_INSERT_EXPORT_, 121,
91  "insert sc_export failed" )
92 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_NOT_REGISTERED_, 123,
93  "remove sc_export failed, sc_export not registered" )
94 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_NOT_BOUND_AFTER_CONSTRUCTION_, 124,
95  "sc_export instance not bound to interface at end of construction" )
96 SC_DEFINE_MESSAGE( SC_ID_ATTEMPT_TO_WRITE_TO_CLOCK_, 125,
97  "attempt to write the value of an sc_clock instance" )
98 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_ALREADY_BOUND_, 126,
99  "sc_export instance already bound" )
100 SC_DEFINE_MESSAGE( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, 127,
101  "attempted specalized signal operation on non-specialized signal" )
102 SC_DEFINE_MESSAGE( SC_ID_ATTEMPT_TO_BIND_CLOCK_TO_OUTPUT_, 128,
103  "attempted to bind sc_clock instance to sc_inout or sc_out" )
104 SC_DEFINE_MESSAGE( SC_ID_NO_ASYNC_UPDATE_, 129,
105  "this build has no asynchronous update support" )
106 
107 /*
108 $Log: sc_communication_ids.h,v $
109 Revision 1.5 2011/08/26 20:45:39 acg
110  Andy Goodrich: moved the modification log to the end of the file to
111  eliminate source line number skew when check-ins are done.
112 
113 Revision 1.4 2011/04/19 02:36:26 acg
114  Philipp A. Hartmann: new aysnc_update and mutex support.
115 
116 Revision 1.3 2011/02/18 20:23:45 acg
117  Andy Goodrich: Copyright update.
118 
119 Revision 1.2 2011/02/14 17:50:16 acg
120  Andy Goodrich: testing for sc_port and sc_export instantiations during
121  end of elaboration and issuing appropriate error messages.
122 
123 Revision 1.1.1.1 2006/12/15 20:20:04 acg
124 SystemC 2.3
125 
126 Revision 1.5 2006/01/25 00:31:11 acg
127  Andy Goodrich: Changed over to use a standard message id of
128  SC_ID_IEEE_1666_DEPRECATION for all deprecation messages.
129 
130 Revision 1.4 2006/01/24 20:46:31 acg
131 Andy Goodrich: changes to eliminate use of deprecated features. For instance,
132 using notify(SC_ZERO_TIME) in place of notify_delayed().
133 
134 Revision 1.3 2006/01/18 21:42:26 acg
135 Andy Goodrich: Changes for check writer support, and tightening up sc_clock
136 port usage.
137 
138 Revision 1.2 2006/01/03 23:18:26 acg
139 Changed copyright to include 2006.
140 
141 Revision 1.1.1.1 2005/12/19 23:16:43 acg
142 First check in of SystemC 2.1 into its own archive.
143 
144 Revision 1.12 2005/04/03 22:52:51 acg
145 Namespace changes.
146 
147 Revision 1.11 2005/03/21 22:31:32 acg
148 Changes to sc_core namespace.
149 
150 Revision 1.10 2004/10/28 00:21:48 acg
151 Added check that sc_export instances are not bound twice.
152 
153 Revision 1.9 2004/09/27 21:02:54 acg
154 Andy Goodrich - Forte Design Systems, Inc.
155  - Added a $Log comment so that CVS checkin comments will appear in
156  checked out source.
157 
158 */
159 
160 #endif
161 
162 // 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)