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