00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef SC_KERNEL_IDS_H
00028 #define SC_KERNEL_IDS_H
00029
00030
00031 #include "sysc/utils/sc_report.h"
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef SC_DEFINE_MESSAGE
00041 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
00042 namespace sc_core { extern const char id[]; }
00043 namespace sc_core {
00044 extern const char SC_ID_REGISTER_ID_FAILED_[];
00045 }
00046 #endif
00047
00048 SC_DEFINE_MESSAGE(SC_ID_NO_BOOL_RETURNED_ , 500,
00049 "operator does not return boolean")
00050 SC_DEFINE_MESSAGE(SC_ID_NO_INT_RETURNED_ , 501,
00051 "operator does not return int")
00052 SC_DEFINE_MESSAGE(SC_ID_NO_SC_LOGIC_RETURNED_ , 502,
00053 "operator does not return sc_logic")
00054 SC_DEFINE_MESSAGE(SC_ID_OPERAND_NOT_SC_LOGIC_ , 503,
00055 "operand is not sc_logic")
00056 SC_DEFINE_MESSAGE(SC_ID_OPERAND_NOT_BOOL_ , 504,
00057 "operand is not bool")
00058 SC_DEFINE_MESSAGE(SC_ID_INSTANCE_EXISTS_ , 505,
00059 "object already exists")
00060 SC_DEFINE_MESSAGE(SC_ID_ILLEGAL_CHARACTERS_ , 506,
00061 "illegal characters" )
00062 SC_DEFINE_MESSAGE(SC_ID_VC6_PROCESS_HELPER_ , 507,
00063 "internal error: sc_vc6_process_helper" )
00064 SC_DEFINE_MESSAGE(SC_ID_VC6_MAX_PROCESSES_EXCEEDED_ , 508,
00065 "maximum number of processes per module exceeded (VC6)" )
00066 SC_DEFINE_MESSAGE(SC_ID_END_MODULE_NOT_CALLED_ , 509,
00067 "module construction not properly completed: did "
00068 "you forget to add a sc_module_name parameter to "
00069 "your module constructor?" )
00070 SC_DEFINE_MESSAGE(SC_ID_HIER_NAME_INCORRECT_ , 510,
00071 "hierarchical name as shown may be incorrect due to previous errors" )
00072
00073
00074
00075
00076 SC_DEFINE_MESSAGE(SC_ID_SET_STACK_SIZE_ , 511,
00077 "set_stack_size() is only allowed for SC_METHODs, SC_THREADs and SC_CTHREADs" )
00078 SC_DEFINE_MESSAGE(SC_ID_SC_MODULE_NAME_USE_ , 512,
00079 "incorrect use of sc_module_name" )
00080 SC_DEFINE_MESSAGE(SC_ID_SC_MODULE_NAME_REQUIRED_ , 513,
00081 "an sc_module_name parameter for your constructor is required" )
00082 SC_DEFINE_MESSAGE(SC_ID_SET_TIME_RESOLUTION_ , 514,
00083 "set time resolution failed" )
00084 SC_DEFINE_MESSAGE(SC_ID_SET_DEFAULT_TIME_UNIT_ , 515,
00085 "set default time unit failed" )
00086 SC_DEFINE_MESSAGE(SC_ID_DEFAULT_TIME_UNIT_CHANGED_ , 516,
00087 "default time unit changed to time resolution" )
00088 SC_DEFINE_MESSAGE(SC_ID_INCONSISTENT_API_CONFIG_ , 517,
00089 "inconsistent library configuration detected" )
00090
00091 SC_DEFINE_MESSAGE(SC_ID_WAIT_NOT_ALLOWED_ , 519,
00092 "wait() is only allowed in SC_THREADs and SC_CTHREADs" )
00093 SC_DEFINE_MESSAGE(SC_ID_NEXT_TRIGGER_NOT_ALLOWED_ , 520,
00094 "next_trigger() is only allowed in SC_METHODs" )
00095 SC_DEFINE_MESSAGE(SC_ID_IMMEDIATE_NOTIFICATION_ , 521,
00096 "immediate notification is not allowed during the update phase" )
00097 SC_DEFINE_MESSAGE(SC_ID_HALT_NOT_ALLOWED_ , 522,
00098 "halt() is only allowed in SC_CTHREADs" )
00099 SC_DEFINE_MESSAGE(SC_ID_WATCHING_NOT_ALLOWED_ , 523,
00100 "watching() has been deprecated, use reset_signal_is()" )
00101 SC_DEFINE_MESSAGE(SC_ID_DONT_INITIALIZE_ , 524,
00102 "dont_initialize() has no effect for SC_CTHREADs" )
00103 SC_DEFINE_MESSAGE(SC_ID_WAIT_N_INVALID_ , 525,
00104 "wait(n) is only valid for n > 0" )
00105 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_ , 526,
00106 "make sensitive failed" )
00107 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_POS_ , 527,
00108 "make sensitive pos failed" )
00109 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_NEG_ , 528,
00110 "make sensitive neg failed" )
00111 SC_DEFINE_MESSAGE(SC_ID_INSERT_MODULE_ , 529,
00112 "insert module failed" )
00113 SC_DEFINE_MESSAGE(SC_ID_REMOVE_MODULE_ , 530,
00114 "remove module failed" )
00115 SC_DEFINE_MESSAGE(SC_ID_NOTIFY_DELAYED_ , 531,
00116 "notify_delayed() cannot be called on events "
00117 "that have pending notifications" )
00118 SC_DEFINE_MESSAGE(SC_ID_GEN_UNIQUE_NAME_ , 532,
00119 "cannot generate unique name from null string" )
00120 SC_DEFINE_MESSAGE(SC_ID_MODULE_NAME_STACK_EMPTY_ , 533,
00121 "module name stack is empty: did you forget to "
00122 "add a sc_module_name parameter to your module "
00123 "constructor?" )
00124
00125
00126 SC_DEFINE_MESSAGE( SC_ID_IMMEDIATE_SELF_NOTIFICATION_, 536,
00127 "immediate self-notification ignored as of IEEE 1666-2011" )
00128 SC_DEFINE_MESSAGE( SC_ID_WAIT_DURING_UNWINDING_ , 537,
00129 "wait() not allowed during unwinding" )
00130 SC_DEFINE_MESSAGE(SC_ID_CYCLE_MISSES_EVENTS_ , 538,
00131 "the simulation contains timed-events but they are "
00132 "ignored by sc_cycle() ==> the simulation will be "
00133 "incorrect" )
00134 SC_DEFINE_MESSAGE( SC_ID_RETHROW_UNWINDING_ , 539,
00135 "sc_unwind_exception not re-thrown during kill/reset" )
00136 SC_DEFINE_MESSAGE( SC_ID_PROCESS_ALREADY_UNWINDING_ , 540,
00137 "kill/reset ignored during unwinding" )
00138 SC_DEFINE_MESSAGE(SC_ID_MODULE_METHOD_AFTER_START_ , 541,
00139 "call to SC_METHOD in sc_module while simulation running" )
00140 SC_DEFINE_MESSAGE(SC_ID_MODULE_THREAD_AFTER_START_ , 542,
00141 "call to SC_THREAD in sc_module while simulation running" )
00142 SC_DEFINE_MESSAGE(SC_ID_MODULE_CTHREAD_AFTER_START_ , 543,
00143 "call to SC_CTHREAD in sc_module while simulation running" )
00144 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_TIME_OVERFLOW_ , 544,
00145 "simulation time value overflow, simulation aborted" )
00146 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_STOP_CALLED_TWICE_ , 545,
00147 "sc_stop has already been called" )
00148 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_START_AFTER_STOP_ , 546,
00149 "sc_start called after sc_stop has been called" )
00150 SC_DEFINE_MESSAGE(SC_ID_STOP_MODE_AFTER_START_ , 547,
00151 "attempt to set sc_stop mode after start will be ignored" )
00152 SC_DEFINE_MESSAGE( SC_ID_SIMULATION_START_AFTER_ERROR_, 548,
00153 "attempt to restart simulation after error" )
00154 SC_DEFINE_MESSAGE( SC_ID_SIMULATION_UNCAUGHT_EXCEPTION_, 549,
00155 "uncaught exception" )
00156 SC_DEFINE_MESSAGE(SC_ID_PHASE_CALLBACKS_UNSUPPORTED_ , 550,
00157 "simulation phase callbacks not enabled")
00158 SC_DEFINE_MESSAGE(SC_ID_PHASE_CALLBACK_NOT_IMPLEMENTED_, 551,
00159 "empty simulation phase callback called" )
00160 SC_DEFINE_MESSAGE(SC_ID_PHASE_CALLBACK_REGISTER_, 552,
00161 "register simulation phase callback" )
00162 SC_DEFINE_MESSAGE(SC_ID_PHASE_CALLBACK_FORBIDDEN_, 553,
00163 "forbidden action in simulation phase callback" )
00164
00165
00166 SC_DEFINE_MESSAGE(SC_ID_THROW_IT_IGNORED_ , 556,
00167 "throw_it on method/non-running process is being ignored " )
00168 SC_DEFINE_MESSAGE(SC_ID_NOT_EXPECTING_DYNAMIC_EVENT_NOTIFY_ , 557,
00169 "dynamic event notification encountered when sensitivity is static" )
00170 SC_DEFINE_MESSAGE(SC_ID_DISABLE_WILL_ORPHAN_PROCESS_ , 558,
00171 "disable() or dont_initialize() called on process with no static sensitivity, it will be orphaned" )
00172 SC_DEFINE_MESSAGE(SC_ID_PROCESS_CONTROL_CORNER_CASE_ , 559,
00173 "Undefined process control interaction" )
00174 SC_DEFINE_MESSAGE(SC_ID_METHOD_TERMINATION_EVENT_ , 560,
00175 "Attempt to get terminated event for a method process" )
00176 SC_DEFINE_MESSAGE(SC_ID_JOIN_ON_METHOD_HANDLE_ , 561,
00177 "Attempt to register method process with sc_join object" )
00178 SC_DEFINE_MESSAGE(SC_ID_NO_PROCESS_SEMANTICS_ , 563,
00179 "Attempt to invoke process with no semantics() method" )
00180 SC_DEFINE_MESSAGE(SC_ID_EVENT_ON_NULL_PROCESS_ , 564,
00181 "Attempt to get an event for non-existent process" )
00182
00183 SC_DEFINE_MESSAGE(SC_ID_UNKNOWN_PROCESS_TYPE_, 566,
00184 "Unknown process type" )
00185
00186 SC_DEFINE_MESSAGE(SC_ID_NEGATIVE_SIMULATION_TIME_, 568,
00187 "negative simulation interval specified in sc_start call" )
00188 SC_DEFINE_MESSAGE(SC_ID_BAD_SC_MODULE_CONSTRUCTOR_ , 569,
00189 "sc_module(const char*), sc_module(const std::string&) "
00190 "have been deprecated, use sc_module(const sc_module_name&)" )
00191 SC_DEFINE_MESSAGE(SC_ID_EMPTY_PROCESS_HANDLE_ , 570,
00192 "attempt to use an empty process handle ignored" )
00193 SC_DEFINE_MESSAGE(SC_ID_NO_SC_START_ACTIVITY_ , 571,
00194 "no activity or clock movement for sc_start() invocation" )
00195 SC_DEFINE_MESSAGE(SC_ID_KILL_PROCESS_WHILE_UNITIALIZED_ , 572,
00196 "a process may not be killed before it is initialized" )
00197 SC_DEFINE_MESSAGE(SC_ID_RESET_PROCESS_WHILE_NOT_RUNNING_ , 573,
00198 "a process may not be asynchronously reset while the simulation is not running" )
00199 SC_DEFINE_MESSAGE(SC_ID_THROW_IT_WHILE_NOT_RUNNING_ , 574,
00200 "throw_it not allowed unless simulation is running " )
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321 #endif
00322
00323