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
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef SC_KERNEL_IDS_H
00037 #define SC_KERNEL_IDS_H
00038
00039
00040 #include "sysc/utils/sc_report.h"
00041
00042
00043
00044
00045
00046
00047
00048
00049 #ifndef SC_DEFINE_MESSAGE
00050 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
00051 namespace sc_core { extern const char id[]; }
00052 namespace sc_core {
00053 extern const char SC_ID_REGISTER_ID_FAILED_[];
00054 }
00055 #endif
00056
00057 SC_DEFINE_MESSAGE(SC_ID_NO_BOOL_RETURNED_ , 500,
00058 "operator does not return boolean")
00059 SC_DEFINE_MESSAGE(SC_ID_NO_INT_RETURNED_ , 501,
00060 "operator does not return int")
00061 SC_DEFINE_MESSAGE(SC_ID_NO_SC_LOGIC_RETURNED_ , 502,
00062 "operator does not return sc_logic")
00063 SC_DEFINE_MESSAGE(SC_ID_OPERAND_NOT_SC_LOGIC_ , 503,
00064 "operand is not sc_logic")
00065 SC_DEFINE_MESSAGE(SC_ID_OPERAND_NOT_BOOL_ , 504,
00066 "operand is not bool")
00067 SC_DEFINE_MESSAGE(SC_ID_OBJECT_EXISTS_ , 505,
00068 "object already exists")
00069 SC_DEFINE_MESSAGE(SC_ID_ILLEGAL_CHARACTERS_ , 506,
00070 "illegal characters" )
00071 SC_DEFINE_MESSAGE(SC_ID_VC6_PROCESS_HELPER_ , 507,
00072 "internal error: sc_vc6_process_helper" )
00073 SC_DEFINE_MESSAGE(SC_ID_VC6_MAX_PROCESSES_EXCEEDED_ , 508,
00074 "maximum number of processes per module exceeded (VC6)" )
00075 SC_DEFINE_MESSAGE(SC_ID_END_MODULE_NOT_CALLED_ , 509,
00076 "module construction not properly completed: did "
00077 "you forget to add a sc_module_name parameter to "
00078 "your module constructor?" )
00079 SC_DEFINE_MESSAGE(SC_ID_HIER_NAME_INCORRECT_ , 510,
00080 "hierarchical name as shown may be incorrect due to previous errors" )
00081 SC_DEFINE_MESSAGE(SC_ID_SET_STACK_SIZE_ , 511,
00082 "set_stack_size() is only allowed for SC_THREADs and SC_CTHREADs" )
00083 SC_DEFINE_MESSAGE(SC_ID_SC_MODULE_NAME_USE_ , 512,
00084 "incorrect use of sc_module_name" )
00085 SC_DEFINE_MESSAGE(SC_ID_SC_MODULE_NAME_REQUIRED_ , 513,
00086 "an sc_module_name parameter for your constructor is required" )
00087 SC_DEFINE_MESSAGE(SC_ID_SET_TIME_RESOLUTION_ , 514,
00088 "set time resolution failed" )
00089 SC_DEFINE_MESSAGE(SC_ID_SET_DEFAULT_TIME_UNIT_ , 515,
00090 "set default time unit failed" )
00091 SC_DEFINE_MESSAGE(SC_ID_DEFAULT_TIME_UNIT_CHANGED_ , 516,
00092 "default time unit changed to time resolution" )
00093 SC_DEFINE_MESSAGE(SC_ID_WAIT_UNTIL_NOT_ALLOWED_ , 518,
00094 "wait_until() is only allowed in SC_CTHREADs" )
00095 SC_DEFINE_MESSAGE(SC_ID_WAIT_NOT_ALLOWED_ , 519,
00096 "wait() is only allowed in SC_THREADs and SC_CTHREADs" )
00097 SC_DEFINE_MESSAGE(SC_ID_NEXT_TRIGGER_NOT_ALLOWED_ , 520,
00098 "next_trigger() is only allowed in SC_METHODs" )
00099 SC_DEFINE_MESSAGE(SC_ID_IMMEDIATE_NOTIFICATION_ , 521,
00100 "immediate notification is not allowed during the update phase" )
00101 SC_DEFINE_MESSAGE(SC_ID_HALT_NOT_ALLOWED_ , 522,
00102 "halt() is only allowed in SC_CTHREADs" )
00103 SC_DEFINE_MESSAGE(SC_ID_WATCHING_NOT_ALLOWED_ , 523,
00104 "watching() is only allowed in SC_CTHREADs" )
00105 SC_DEFINE_MESSAGE(SC_ID_DONT_INITIALIZE_ , 524,
00106 "dont_initialize() has no effect for SC_CTHREADs" )
00107 SC_DEFINE_MESSAGE(SC_ID_WAIT_N_INVALID_ , 525,
00108 "wait(n) is only valid for n > 0" )
00109 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_ , 526,
00110 "make sensitive failed" )
00111 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_POS_ , 527,
00112 "make sensitive pos failed" )
00113 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_NEG_ , 528,
00114 "make sensitive neg failed" )
00115 SC_DEFINE_MESSAGE(SC_ID_INSERT_MODULE_ , 529,
00116 "insert module failed" )
00117 SC_DEFINE_MESSAGE(SC_ID_REMOVE_MODULE_ , 530,
00118 "remove module failed" )
00119 SC_DEFINE_MESSAGE(SC_ID_NOTIFY_DELAYED_ , 531,
00120 "notify_delayed() cannot be called on events "
00121 "that have pending notifications" )
00122 SC_DEFINE_MESSAGE(SC_ID_GEN_UNIQUE_NAME_ , 532,
00123 "cannot generate unique name from null string" )
00124 SC_DEFINE_MESSAGE(SC_ID_MODULE_NAME_STACK_EMPTY_ , 533,
00125 "module name stack is empty: did you forget to "
00126 "add a sc_module_name parameter to your module "
00127 "constructor?" )
00128 SC_DEFINE_MESSAGE(SC_ID_CYCLE_MISSES_EVENTS_ , 537,
00129 "the simulation contains timed-events but they are "
00130 "ignored by sc_cycle() ==> the simulation will be "
00131 "incorrect" )
00132 SC_DEFINE_MESSAGE(SC_ID_SC_CYCLE_DEPRECATED_ , 540,
00133 "sc_cycle is deprecated: use sc_start(...) instead" )
00134 SC_DEFINE_MESSAGE(SC_ID_MODULE_METHOD_AFTER_START_ , 541,
00135 "call to SC_METHOD in sc_module while simulation running" )
00136 SC_DEFINE_MESSAGE(SC_ID_MODULE_THREAD_AFTER_START_ , 542,
00137 "call to SC_THREAD in sc_module while simulation running" )
00138 SC_DEFINE_MESSAGE(SC_ID_MODULE_CTHREAD_AFTER_START_ , 543,
00139 "call to SC_CTHREAD in sc_module while simulation running" )
00140 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_TIME_OVERFLOW_ , 544,
00141 "simulation time value overflow, simulation aborted" )
00142 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_STOP_CALLED_TWICE_ , 545,
00143 "sc_stop has already been called" )
00144 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_START_AFTER_STOP_ , 546,
00145 "sc_start called after sc_stop has been called" )
00146 SC_DEFINE_MESSAGE(SC_ID_STOP_MODE_AFTER_START_ , 547,
00147 "attempt to set sc_stop mode after start will be ignored" )
00148 SC_DEFINE_MESSAGE(SC_ID_WAIT_ON_METHOD_HANDLE_ , 560,
00149 "Attempt to wait on process handle associated with method process" )
00150 SC_DEFINE_MESSAGE(SC_ID_JOIN_ON_METHOD_HANDLE_ , 561,
00151 "Attempt to register method process with sc_join object" )
00152 SC_DEFINE_MESSAGE(SC_ID_SC_INITIALIZE_DEPRECATED_ , 562,
00153 "sc_initialize is deprecated: use sc_start(0) instead" )
00154 SC_DEFINE_MESSAGE(SC_ID_NULL_PROCESS_HANDLE , 563,
00155 "Attempt to set sc_process_handle to null target" )
00156
00157 #endif
00158
00159