src/sysc/communication/sc_communication_ids.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002 
00003   The following code is derived, directly or indirectly, from the SystemC
00004   source code Copyright (c) 1996-2005 by all Contributors.
00005   All Rights reserved.
00006 
00007   The contents of this file are subject to the restrictions and limitations
00008   set forth in the SystemC Open Source License Version 2.4 (the "License");
00009   You may not use this file except in compliance with such restrictions and
00010   limitations. You may obtain instructions on how to receive a copy of the
00011   License at http://www.systemc.org/. Software distributed by Contributors
00012   under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
00013   ANY KIND, either express or implied. See the License for the specific
00014   language governing rights and limitations under the License.
00015 
00016  *****************************************************************************/
00017 
00018 /*****************************************************************************
00019 
00020   sc_communication_ids.h -- Report ids for the communication code.
00021 
00022   Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17
00023 
00024  *****************************************************************************/
00025 
00026 /*****************************************************************************
00027 
00028   MODIFICATION LOG - modifiers, enter your name, affiliation, date and
00029   changes you are making here.
00030 
00031       Name, Affiliation, Date:
00032   Description of Modification:
00033     
00034  *****************************************************************************/
00035 
00036 /* 
00037 $Log: sc_communication_ids.h,v $
00038 Revision 1.12  2005/04/03 22:52:51  acg
00039 Namespace changes.
00040 
00041 Revision 1.11  2005/03/21 22:31:32  acg
00042 Changes to sc_core namespace.
00043 
00044 Revision 1.10  2004/10/28 00:21:48  acg
00045 Added check that sc_export instances are not bound twice.
00046 
00047 Revision 1.9  2004/09/27 21:02:54  acg
00048 Andy Goodrich - Forte Design Systems, Inc.
00049    - Added a $Log comment so that CVS checkin comments will appear in
00050      checked out source.
00051 
00052 */
00053 
00054 #ifndef SC_COMMUNICATION_IDS_H
00055 #define SC_COMMUNICATION_IDS_H
00056 
00057 
00058 #include "sysc/utils/sc_report.h"
00059 
00060 
00061 // ----------------------------------------------------------------------------
00062 //  Report ids (communication)
00063 //
00064 //  Report ids in the range of 100-199.
00065 // ----------------------------------------------------------------------------
00066 
00067 #ifndef SC_DEFINE_MESSAGE
00068 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
00069     namespace sc_core { extern const char id[]; }
00070 namespace sc_core {
00071     extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
00072 } // namespace sc_core
00073 #endif
00074 
00075 SC_DEFINE_MESSAGE( SC_ID_PORT_OUTSIDE_MODULE_, 100,
00076                         "port specified outside of module" )
00077 SC_DEFINE_MESSAGE( SC_ID_CLOCK_PERIOD_ZERO_, 101,
00078                         "sc_clock period is zero" )              
00079 SC_DEFINE_MESSAGE( SC_ID_CLOCK_HIGH_TIME_ZERO_, 102,
00080                         "sc_clock high time is zero" )    
00081 SC_DEFINE_MESSAGE( SC_ID_CLOCK_LOW_TIME_ZERO_, 103,
00082                         "sc_clock low time is zero" )     
00083 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_FIFO_READER_, 104,
00084                         "sc_fifo<T> cannot have more than one reader" )
00085 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_FIFO_WRITER_, 105,
00086                         "sc_fifo<T> cannot have more than one writer" )
00087 SC_DEFINE_MESSAGE( SC_ID_INVALID_FIFO_SIZE_, 106,
00088                         "sc_fifo<T> must have a size of at least 1" )
00089 SC_DEFINE_MESSAGE( SC_ID_BIND_IF_TO_PORT_, 107,
00090                         "bind interface to port failed" ) 
00091 SC_DEFINE_MESSAGE( SC_ID_BIND_PORT_TO_PORT_, 108,
00092                         "bind parent port to port failed" )
00093 SC_DEFINE_MESSAGE( SC_ID_COMPLETE_BINDING_, 109,
00094                         "complete binding failed" )
00095 SC_DEFINE_MESSAGE( SC_ID_INSERT_PORT_, 110,
00096                         "insert port failed" )
00097 SC_DEFINE_MESSAGE( SC_ID_REMOVE_PORT_, 111,
00098                         "remove port failed" )
00099 SC_DEFINE_MESSAGE( SC_ID_GET_IF_, 112,
00100                         "get interface failed" )
00101 SC_DEFINE_MESSAGE( SC_ID_INSERT_PRIM_CHANNEL_, 113,
00102                         "insert primitive channel failed" )
00103 SC_DEFINE_MESSAGE( SC_ID_REMOVE_PRIM_CHANNEL_, 114, 
00104                         "remove primitive channel failed" ) 
00105 SC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_SIGNAL_DRIVER_, 115,
00106                         "sc_signal<T> cannot have more than one driver" )
00107 SC_DEFINE_MESSAGE( SC_ID_NO_DEFAULT_EVENT_,    116,
00108                         "channel doesn't have a default event" )
00109 SC_DEFINE_MESSAGE( SC_ID_RESOLVED_PORT_NOT_BOUND_, 117,
00110                         "resolved port not bound to resolved signal" )
00111 SC_DEFINE_MESSAGE( SC_ID_FIND_EVENT_, 118,
00112                         "find event failed" )
00113 SC_DEFINE_MESSAGE( SC_ID_INVALID_SEMAPHORE_VALUE_,  119,
00114                         "sc_semaphore requires an initial value >= 0" )
00115 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_HAS_NO_INTERFACE_,  120,
00116                         "sc_export instance has no interface" )
00117 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_AFTER_START_,  121,
00118                         "insert sc_export failed, sc_export instance after simulation has started" )
00119 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_ALREADY_REGISTERED_,  122,
00120                         "insert sc_export failed, sc_export already inserted" )
00121 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_NOT_REGISTERED_,  123,
00122                         "remove sc_export failed, sc_export not registered" )
00123 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_NOT_BOUND_AFTER_CONSTRUCTION_,  124,
00124                         "sc_export instance not bound to interface at end of construction" )
00125 SC_DEFINE_MESSAGE( SC_ID_ATTEMPT_TO_WRITE_TO_CLOCK_,  125,
00126                         "attempt to write the value of an sc_clock instance" )
00127 SC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_ALREADY_BOUND_,  126,
00128                     "sc_export instance already bound" )
00129 SC_DEFINE_MESSAGE( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_,  127,
00130                         "attempted specalized signal operation on non-specialized signal" )
00131 
00132 #endif
00133 
00134 // Taf!

Generated on Wed Apr 25 13:53:25 2007 for SystemC by  doxygen 1.5.1