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-2006 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.1.1.1  2006/12/15 20:31:35  acg
00039 SystemC 2.2
00040 
00041 Revision 1.5  2006/01/25 00:31:11  acg
00042  Andy Goodrich: Changed over to use a standard message id of
00043  SC_ID_IEEE_1666_DEPRECATION for all deprecation messages.
00044 
00045 Revision 1.4  2006/01/24 20:46:31  acg
00046 Andy Goodrich: changes to eliminate use of deprecated features. For instance,
00047 using notify(SC_ZERO_TIME) in place of notify_delayed().
00048 
00049 Revision 1.3  2006/01/18 21:42:26  acg
00050 Andy Goodrich: Changes for check writer support, and tightening up sc_clock
00051 port usage.
00052 
00053 Revision 1.2  2006/01/03 23:18:26  acg
00054 Changed copyright to include 2006.
00055 
00056 Revision 1.1.1.1  2005/12/19 23:16:43  acg
00057 First check in of SystemC 2.1 into its own archive.
00058 
00059 Revision 1.12  2005/04/03 22:52:51  acg
00060 Namespace changes.
00061 
00062 Revision 1.11  2005/03/21 22:31:32  acg
00063 Changes to sc_core namespace.
00064 
00065 Revision 1.10  2004/10/28 00:21:48  acg
00066 Added check that sc_export instances are not bound twice.
00067 
00068 Revision 1.9  2004/09/27 21:02:54  acg
00069 Andy Goodrich - Forte Design Systems, Inc.
00070    - Added a $Log comment so that CVS checkin comments will appear in
00071      checked out source.
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 //  Report ids (communication)
00084 //
00085 //  Report ids in the range of 100-199.
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_[]; // in sc_report_handler.cpp
00093 } // namespace sc_core
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 // Taf!

Generated on Wed Jan 21 15:32:06 2009 for SystemC by  doxygen 1.5.5