SystemC 3.0.0
Accellera SystemC proof-of-concept library
sc_kernel_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_kernel_ids.h -- Report ids for the kernel code.
23
24 Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17
25
26 CHANGE LOG AT THE END OF THE FILE
27 *****************************************************************************/
28
29#ifndef SC_KERNEL_IDS_H
30#define SC_KERNEL_IDS_H
31
32
34
35
36// ----------------------------------------------------------------------------
37// Report ids (kernel)
38//
39// Report ids in the range of 500-599.
40// ----------------------------------------------------------------------------
41
42#ifndef SC_DEFINE_MESSAGE
43#define SC_DEFINE_MESSAGE(id,unused1,unused2) \
44 namespace sc_core { extern SC_API const char id[]; }
45namespace sc_core {
46 extern SC_API const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
47}
48#endif
49
51 "operator does not return boolean")
53 "operator does not return int")
55 "operator does not return sc_logic")
57 "operand is not sc_logic")
59 "operand is not bool")
61 "object already exists")
63 "illegal characters" )
65 "internal error: sc_vc6_process_helper" )
67 "maximum number of processes per module exceeded (VC6)" )
69 "module construction not properly completed: did "
70 "you forget to add a sc_module_name parameter to "
71 "your module constructor?" )
73 "hierarchical name as shown may be incorrect due to previous errors" )
75 "set_stack_size() is only allowed for SC_THREADs and SC_CTHREADs" )
77 "incorrect use of sc_module_name" )
79 "an sc_module_name parameter for your constructor is required" )
81 "set time resolution failed" )
83 "set default time unit failed" )
85 "default time unit changed to time resolution" )
87 "inconsistent library configuration detected" )
89 "coroutine package error" )
91 "wait() is only allowed in SC_THREADs and SC_CTHREADs" )
93 "next_trigger() is only allowed in SC_METHODs" )
95 "immediate notification is not allowed during update phase or elaboration" )
97 "halt() is only allowed in SC_CTHREADs" )
99 "watching() has been deprecated, use reset_signal_is()" )
101 "dont_initialize() has no effect for SC_CTHREADs" )
103 "wait(n) is only valid for n > 0" )
105 "make sensitive failed" )
107 "make sensitive pos failed" )
109 "make sensitive neg failed" )
111 "insert module failed" )
113 "remove module failed" )
115 "notify_delayed() cannot be called on events "
116 "that have pending notifications" )
118 "cannot generate unique name from null string" )
120 "module name stack is empty: did you forget to "
121 "add a sc_module_name parameter to your module "
122 "constructor?" )
124 "name already exists")
126 "wait(n) not allowed for n <= 0" )
128 "immediate self-notification ignored as of IEEE 1666-2011" )
130 "wait() not allowed during unwinding" )
132 "the simulation contains timed-events but they are "
133 "ignored by sc_cycle() ==> the simulation will be "
134 "incorrect" )
136 "sc_unwind_exception not re-thrown during kill/reset" )
138 "kill/reset ignored during unwinding" )
140 "call to SC_METHOD in sc_module while simulation running" )
142 "call to SC_THREAD in sc_module while simulation running" )
144 "call to SC_CTHREAD in sc_module while simulation running" )
146 "simulation time value overflow, simulation aborted" )
148 "sc_stop has already been called" )
150 "sc_start called after sc_stop has been called" )
152 "attempt to set sc_stop mode after start will be ignored" )
154 "attempt to restart simulation after error" )
156 "uncaught exception" )
157// available message number 550
158// available message number 551
160 "register stage callback" )
162 "forbidden action in stage callback" )
164 "sc_start called unexpectedly" )
165// available message number 555
167 "throw_it on method/non-running process is being ignored " )
169 "dynamic event notification encountered when sensitivity is static" )
171 "disable() or dont_initialize() called on process with no static sensitivity, it will be orphaned" )
173 "Undefined process control interaction" )
175 "Attempt to get terminated event for a method process" )
177 "Attempt to register method process with sc_join object" )
179 "Attempt to invoke process with no semantics() method" )
181 "Attempt to get an event for non-existent process" )
183 "invalid use of sc_(and|or)_event_list" )
185 "Unknown process type" )
187 "sc_time conversion failed")
189 "failed to insert initializer function" )
191 "sc_module(const char*), sc_module(const std::string&) "
192 "have been deprecated, use sc_module(const sc_module_name&)" )
194 "attempt to use an empty process handle ignored" )
196 "no activity or clock movement for sc_start() invocation" )
198 "a process may not be killed before it is initialized" )
200 "a process may not be asynchronously reset while the simulation is not running" )
202 "throw_it not allowed unless simulation is running " )
204 "corrupted sc_hierarchy_scope unwinding" )
206 "Unmatched unsuspendable/suspendable request " )
208 "unsuspendable/suspendable only valid inside a process" )
210 "Unmatched unsuspendall/suspendall" )
211
212/*****************************************************************************
213
214 MODIFICATION LOG - modifiers, enter your name, affiliation, date and
215 changes you are making here.
216
217 Name, Affiliation, Date:
218 Description of Modification:
219
220 *****************************************************************************/
221
222// $Log: sc_kernel_ids.h,v $
223// Revision 1.25 2011/08/26 22:06:34 acg
224// Torsten Maehne: formating fix.
225//
226// Revision 1.24 2011/08/07 19:08:04 acg
227// Andy Goodrich: moved logs to end of file so line number synching works
228// better between versions.
229//
230// Revision 1.23 2011/07/24 11:15:47 acg
231// Philipp A. Hartmann: Improvements to error/warning messages related to
232// process control.
233//
234// Revision 1.22 2011/05/09 04:07:48 acg
235// Philipp A. Hartmann:
236// (1) Restore hierarchy in all phase callbacks.
237// (2) Ensure calls to before_end_of_elaboration.
238//
239// Revision 1.21 2011/04/19 19:15:41 acg
240// Andy Goodrich: fix so warning message is always issued for a throw_it()
241// on a method process.
242//
243// Revision 1.20 2011/04/19 15:04:27 acg
244// Philipp A. Hartmann: clean up SC_ID messages.
245//
246// Revision 1.19 2011/04/19 02:39:09 acg
247// Philipp A. Hartmann: added checks for additional throws during stack unwinds.
248//
249// Revision 1.18 2011/04/05 06:23:45 acg
250// Andy Goodrich: comments for throws while the simulator is not running.
251//
252// Revision 1.17 2011/04/01 22:30:39 acg
253// Andy Goodrich: change hard assertion to warning for trigger_dynamic()
254// getting called when there is only STATIC sensitivity. This can result
255// because of sc_process_handle::throw_it().
256//
257// Revision 1.16 2011/03/28 13:02:51 acg
258// Andy Goodrich: Changes for disable() interactions.
259//
260// Revision 1.15 2011/03/07 17:34:21 acg
261// Andy Goodrich: changed process control corner case message. Added more
262// place holders for unused message numbers.
263//
264// Revision 1.14 2011/03/06 19:57:11 acg
265// Andy Goodrich: refinements for the illegal suspend - synchronous reset
266// interaction.
267//
268// Revision 1.13 2011/03/06 15:56:29 acg
269// Andy Goodrich: added process control corner case error message, remove
270// unused messages.
271//
272// Revision 1.12 2011/03/05 19:44:20 acg
273// Andy Goodrich: changes for object and event naming and structures.
274//
275// Revision 1.11 2011/02/18 20:27:14 acg
276// Andy Goodrich: Updated Copyrights.
277//
278// Revision 1.10 2011/02/13 21:47:37 acg
279// Andy Goodrich: update copyright notice.
280//
281// Revision 1.9 2011/02/13 21:29:16 acg
282// Andy Goodrich: added error messages for throws that occur before
283// simulator intialization.
284//
285// Revision 1.8 2011/02/11 13:25:24 acg
286// Andy Goodrich: Philipp A. Hartmann's changes:
287// (1) Removal of SC_CTHREAD method overloads.
288// (2) New exception processing code.
289//
290// Revision 1.7 2011/02/07 19:17:20 acg
291// Andy Goodrich: changes for IEEE 1666 compatibility.
292//
293// Revision 1.6 2011/01/19 23:21:50 acg
294// Andy Goodrich: changes for IEEE 1666 2011
295//
296// Revision 1.5 2010/07/30 05:21:22 acg
297// Andy Goodrich: release 2.3 fixes.
298//
299// Revision 1.4 2009/02/28 00:26:58 acg
300// Andy Goodrich: changed boost name space to sc_boost to allow use with
301// full boost library applications.
302//
303// Revision 1.3 2008/11/17 15:57:15 acg
304// Andy Goodrich: added deprecation message for sc_module(const char*)
305//
306// Revision 1.2 2008/05/22 17:06:25 acg
307// Andy Goodrich: updated copyright notice to include 2008.
308//
309// Revision 1.1.1.1 2006/12/15 20:20:05 acg
310// SystemC 2.3
311//
312// Revision 1.7 2006/08/29 23:37:13 acg
313// Andy Goodrich: Added check for negative time.
314//
315// Revision 1.6 2006/04/20 17:08:16 acg
316// Andy Goodrich: 3.0 style process changes.
317//
318// Revision 1.5 2006/01/25 00:31:19 acg
319// Andy Goodrich: Changed over to use a standard message id of
320// SC_ID_IEEE_1666_DEPRECATION for all deprecation messages.
321//
322// Revision 1.4 2006/01/24 20:49:04 acg
323// Andy Goodrich: changes to remove the use of deprecated features within the
324// simulator, and to issue warning messages when deprecated features are used.
325//
326// Revision 1.3 2006/01/13 18:44:29 acg
327// Added $Log to record CVS changes into the source.
328//
329
330#endif
331
332// Taf!
#define SC_CTHREAD(func, edge)
Definition: sc_module.h:449
#define SC_THREAD(func)
Definition: sc_module.h:459
#define SC_METHOD(func)
Definition: sc_module.h:454
#define SC_DEFINE_MESSAGE(id, unused1, unused2)
Definition: sc_kernel_ids.h:43
#define SC_API
Definition: sc_cmnhdr.h:148
const char SC_ID_WAIT_NEGATIVE_CYCLES_[]
void SC_API halt(sc_simcontext *)
const char SC_ID_SET_DEFAULT_TIME_UNIT_[]
const char SC_ID_INSTANCE_EXISTS_[]
const char SC_ID_EVENT_ON_NULL_PROCESS_[]
const char SC_ID_RESET_PROCESS_WHILE_NOT_RUNNING_[]
const char SC_ID_WAIT_N_INVALID_[]
const char SC_ID_IMMEDIATE_NOTIFICATION_[]
const char SC_ID_REMOVE_MODULE_[]
const char SC_ID_DONT_INITIALIZE_[]
const char SC_ID_VC6_PROCESS_HELPER_[]
const char SC_ID_MAKE_SENSITIVE_NEG_[]
const char SC_ID_CYCLE_MISSES_EVENTS_[]
const char SC_ID_OPERAND_NOT_SC_LOGIC_[]
const char SC_ID_OPERAND_NOT_BOOL_[]
const char SC_ID_SET_TIME_RESOLUTION_[]
const char SC_ID_NO_SC_START_ACTIVITY_[]
SC_API void wait(int, sc_simcontext *)
const char SC_ID_SIMULATION_START_AFTER_ERROR_[]
const char SC_ID_NO_BOOL_RETURNED_[]
SC_API void sc_start()
const char SC_ID_DISABLE_WILL_ORPHAN_PROCESS_[]
const char SC_ID_WAIT_DURING_UNWINDING_[]
const char SC_ID_EMPTY_PROCESS_HANDLE_[]
const char SC_ID_BAD_SC_MODULE_CONSTRUCTOR_[]
const char SC_ID_TIME_CONVERSION_FAILED_[]
const char SC_ID_METHOD_TERMINATION_EVENT_[]
const char SC_ID_INSERT_MODULE_[]
const char SC_ID_NOTIFY_DELAYED_[]
const char SC_ID_RETHROW_UNWINDING_[]
const char SC_ID_SIMULATION_UNCAUGHT_EXCEPTION_[]
const char SC_ID_EVENT_LIST_FAILED_[]
SC_API void sc_stop()
const char SC_ID_DEFAULT_TIME_UNIT_CHANGED_[]
const char SC_ID_SIMULATION_STOP_CALLED_TWICE_[]
const char SC_ID_VC6_MAX_PROCESSES_EXCEEDED_[]
const char SC_ID_SC_MODULE_NAME_USE_[]
SC_API void next_trigger(sc_simcontext *)
const char SC_ID_COROUTINE_ERROR_[]
const char SC_ID_SIMULATION_START_AFTER_STOP_[]
const char SC_ID_SET_STACK_SIZE_[]
const char SC_ID_PROCESS_ALREADY_UNWINDING_[]
const char SC_ID_CORRUPT_HIERARCHY_SCOPE_[]
const char SC_ID_MODULE_THREAD_AFTER_START_[]
const char SC_ID_UNKNOWN_PROCESS_TYPE_[]
const char SC_ID_INCONSISTENT_API_CONFIG_[]
const char SC_ID_MODULE_METHOD_AFTER_START_[]
const char SC_ID_NEXT_TRIGGER_NOT_ALLOWED_[]
const char SC_ID_ILLEGAL_CHARACTERS_[]
const char SC_ID_UNMATCHED_SUSPENDABLE_[]
const char SC_ID_END_MODULE_NOT_CALLED_[]
const char SC_ID_SC_MODULE_NAME_REQUIRED_[]
const char SC_ID_INSERT_INITIALIZER_FN_[]
const char SC_ID_SIMULATION_START_UNEXPECTED_[]
const char SC_ID_THROW_IT_WHILE_NOT_RUNNING_[]
const char SC_ID_WAIT_NOT_ALLOWED_[]
SC_API const char SC_ID_REGISTER_ID_FAILED_[]
Definition: sc_bit_ids.h:72
const char SC_ID_UNSUSPENDABLE_NOTHREAD_[]
const char SC_ID_SIMULATION_TIME_OVERFLOW_[]
const char SC_ID_MODULE_NAME_STACK_EMPTY_[]
const char SC_ID_NO_PROCESS_SEMANTICS_[]
const char SC_ID_STAGE_CALLBACK_REGISTER_[]
const char SC_ID_STAGE_CALLBACK_FORBIDDEN_[]
const char SC_ID_THROW_IT_IGNORED_[]
const char SC_ID_JOIN_ON_METHOD_HANDLE_[]
const char SC_ID_IMMEDIATE_SELF_NOTIFICATION_[]
const char SC_ID_NO_SC_LOGIC_RETURNED_[]
const char SC_ID_MAKE_SENSITIVE_POS_[]
const char SC_ID_MODULE_CTHREAD_AFTER_START_[]
const char SC_ID_STOP_MODE_AFTER_START_[]
class SC_API sc_module
Definition: sc_object.h:44
const char SC_ID_GEN_UNIQUE_NAME_[]
const char SC_ID_NAME_EXISTS_[]
const char SC_ID_MAKE_SENSITIVE_[]
const char SC_ID_UNBALANCED_UNSUSPENDALL_[]
const char SC_ID_PROCESS_CONTROL_CORNER_CASE_[]
const char SC_ID_WATCHING_NOT_ALLOWED_[]
const char SC_ID_HIER_NAME_INCORRECT_[]
const char SC_ID_KILL_PROCESS_WHILE_UNITIALIZED_[]
const char SC_ID_NO_INT_RETURNED_[]
const char SC_ID_NOT_EXPECTING_DYNAMIC_EVENT_NOTIFY_[]
const char SC_ID_HALT_NOT_ALLOWED_[]
void neg(sc_fxval &c, const sc_fxnum &a)
Definition: sc_fxnum.h:2758
class SC_API sc_logic
Definition: sc_signal_ifs.h:39
sc_core::sc_signal_in_if< T > & value(const T &val)
Definition: sc_stub.h:217