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_COMMUNICATION_IDS_H
00028 #define SC_COMMUNICATION_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_PORT_OUTSIDE_MODULE_, 100,
00049 "port specified outside of module" )
00050 SC_DEFINE_MESSAGE( SC_ID_CLOCK_PERIOD_ZERO_, 101,
00051 "sc_clock period is zero" )
00052 SC_DEFINE_MESSAGE( SC_ID_CLOCK_HIGH_TIME_ZERO_, 102,
00053 "sc_clock high time is zero" )
00054 SC_DEFINE_MESSAGE( SC_ID_CLOCK_LOW_TIME_ZERO_, 103,
00055 "sc_clock low time is zero" )
00056 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_FIFO_READER_, 104,
00057 "sc_fifo<T> cannot have more than one reader" )
00058 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_FIFO_WRITER_, 105,
00059 "sc_fifo<T> cannot have more than one writer" )
00060 SC_DEFINE_MESSAGE( SC_ID_INVALID_FIFO_SIZE_, 106,
00061 "sc_fifo<T> must have a size of at least 1" )
00062 SC_DEFINE_MESSAGE( SC_ID_BIND_IF_TO_PORT_, 107,
00063 "bind interface to port failed" )
00064 SC_DEFINE_MESSAGE( SC_ID_BIND_PORT_TO_PORT_, 108,
00065 "bind parent port to port failed" )
00066 SC_DEFINE_MESSAGE( SC_ID_COMPLETE_BINDING_, 109,
00067 "complete binding failed" )
00068 SC_DEFINE_MESSAGE( SC_ID_INSERT_PORT_, 110,
00069 "insert port failed" )
00070 SC_DEFINE_MESSAGE( SC_ID_REMOVE_PORT_, 111,
00071 "remove port failed" )
00072 SC_DEFINE_MESSAGE( SC_ID_GET_IF_, 112,
00073 "get interface failed" )
00074 SC_DEFINE_MESSAGE( SC_ID_INSERT_PRIM_CHANNEL_, 113,
00075 "insert primitive channel failed" )
00076 SC_DEFINE_MESSAGE( SC_ID_REMOVE_PRIM_CHANNEL_, 114,
00077 "remove primitive channel failed" )
00078 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_SIGNAL_DRIVER_, 115,
00079 "sc_signal<T> cannot have more than one driver" )
00080 SC_DEFINE_MESSAGE( SC_ID_NO_DEFAULT_EVENT_, 116,
00081 "channel doesn't have a default event" )
00082 SC_DEFINE_MESSAGE( SC_ID_RESOLVED_PORT_NOT_BOUND_, 117,
00083 "resolved port not bound to resolved signal" )
00084 SC_DEFINE_MESSAGE( SC_ID_FIND_EVENT_, 118,
00085 "find event failed" )
00086 SC_DEFINE_MESSAGE( SC_ID_INVALID_SEMAPHORE_VALUE_, 119,
00087 "sc_semaphore requires an initial value >= 0" )
00088 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_HAS_NO_INTERFACE_, 120,
00089 "sc_export instance has no interface" )
00090 SC_DEFINE_MESSAGE( SC_ID_INSERT_EXPORT_, 121,
00091 "insert sc_export failed" )
00092 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_NOT_REGISTERED_, 123,
00093 "remove sc_export failed, sc_export not registered" )
00094 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_NOT_BOUND_AFTER_CONSTRUCTION_, 124,
00095 "sc_export instance not bound to interface at end of construction" )
00096 SC_DEFINE_MESSAGE( SC_ID_ATTEMPT_TO_WRITE_TO_CLOCK_, 125,
00097 "attempt to write the value of an sc_clock instance" )
00098 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_ALREADY_BOUND_, 126,
00099 "sc_export instance already bound" )
00100 SC_DEFINE_MESSAGE( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, 127,
00101 "attempted specalized signal operation on non-specialized signal" )
00102 SC_DEFINE_MESSAGE( SC_ID_ATTEMPT_TO_BIND_CLOCK_TO_OUTPUT_, 128,
00103 "attempted to bind sc_clock instance to sc_inout or sc_out" )
00104 SC_DEFINE_MESSAGE( SC_ID_NO_ASYNC_UPDATE_, 129,
00105 "this build has no asynchronous update support" )
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160 #endif
00161
00162