sc_kernel_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_kernel_ids.h -- Report ids for the kernel 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 // $Log: sc_kernel_ids.h,v $
00037 // Revision 1.1.1.1  2006/12/15 20:31:37  acg
00038 // SystemC 2.2
00039 //
00040 // Revision 1.5  2006/01/25 00:31:19  acg
00041 //  Andy Goodrich: Changed over to use a standard message id of
00042 //  SC_ID_IEEE_1666_DEPRECATION for all deprecation messages.
00043 //
00044 // Revision 1.4  2006/01/24 20:49:04  acg
00045 // Andy Goodrich: changes to remove the use of deprecated features within the
00046 // simulator, and to issue warning messages when deprecated features are used.
00047 //
00048 // Revision 1.3  2006/01/13 18:44:29  acg
00049 // Added $Log to record CVS changes into the source.
00050 //
00051 
00052 #ifndef SC_KERNEL_IDS_H
00053 #define SC_KERNEL_IDS_H
00054 
00055 
00056 #include "sysc/utils/sc_report.h"
00057 
00058 
00059 // ----------------------------------------------------------------------------
00060 //  Report ids (kernel)
00061 //
00062 //  Report ids in the range of 500-599.
00063 // ----------------------------------------------------------------------------
00064 
00065 #ifndef SC_DEFINE_MESSAGE
00066 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
00067     namespace sc_core { extern const char id[]; }
00068 namespace sc_core {
00069     extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
00070 }
00071 #endif
00072 
00073 SC_DEFINE_MESSAGE(SC_ID_NO_BOOL_RETURNED_            , 500, 
00074     "operator does not return boolean")
00075 SC_DEFINE_MESSAGE(SC_ID_NO_INT_RETURNED_             , 501,
00076     "operator does not return int")
00077 SC_DEFINE_MESSAGE(SC_ID_NO_SC_LOGIC_RETURNED_        , 502,
00078     "operator does not return sc_logic")
00079 SC_DEFINE_MESSAGE(SC_ID_OPERAND_NOT_SC_LOGIC_        , 503,
00080     "operand is not sc_logic")
00081 SC_DEFINE_MESSAGE(SC_ID_OPERAND_NOT_BOOL_            , 504,
00082     "operand is not bool")
00083 SC_DEFINE_MESSAGE(SC_ID_OBJECT_EXISTS_               , 505,
00084     "object already exists")       
00085 SC_DEFINE_MESSAGE(SC_ID_ILLEGAL_CHARACTERS_          , 506,
00086     "illegal characters" )
00087 SC_DEFINE_MESSAGE(SC_ID_VC6_PROCESS_HELPER_          , 507,
00088     "internal error: sc_vc6_process_helper" )
00089 SC_DEFINE_MESSAGE(SC_ID_VC6_MAX_PROCESSES_EXCEEDED_  , 508,
00090     "maximum number of processes per module exceeded (VC6)" )
00091 SC_DEFINE_MESSAGE(SC_ID_END_MODULE_NOT_CALLED_       , 509,
00092     "module construction not properly completed: did "
00093     "you forget to add a sc_module_name parameter to "
00094     "your module constructor?" )
00095 SC_DEFINE_MESSAGE(SC_ID_HIER_NAME_INCORRECT_         , 510,
00096     "hierarchical name as shown may be incorrect due to previous errors" )
00097 SC_DEFINE_MESSAGE(SC_ID_SET_STACK_SIZE_              , 511,
00098     "set_stack_size() is only allowed for SC_THREADs and SC_CTHREADs" )
00099 SC_DEFINE_MESSAGE(SC_ID_SC_MODULE_NAME_USE_          , 512,
00100     "incorrect use of sc_module_name" )
00101 SC_DEFINE_MESSAGE(SC_ID_SC_MODULE_NAME_REQUIRED_     , 513,
00102     "an sc_module_name parameter for your constructor is required" )
00103 SC_DEFINE_MESSAGE(SC_ID_SET_TIME_RESOLUTION_         , 514,
00104     "set time resolution failed" )
00105 SC_DEFINE_MESSAGE(SC_ID_SET_DEFAULT_TIME_UNIT_       , 515,
00106     "set default time unit failed" )
00107 SC_DEFINE_MESSAGE(SC_ID_DEFAULT_TIME_UNIT_CHANGED_   , 516,
00108     "default time unit changed to time resolution" )
00109 SC_DEFINE_MESSAGE(SC_ID_WAIT_NOT_ALLOWED_            , 519,
00110     "wait() is only allowed in SC_THREADs and SC_CTHREADs" )
00111 SC_DEFINE_MESSAGE(SC_ID_NEXT_TRIGGER_NOT_ALLOWED_    , 520,
00112     "next_trigger() is only allowed in SC_METHODs" )
00113 SC_DEFINE_MESSAGE(SC_ID_IMMEDIATE_NOTIFICATION_      , 521,
00114     "immediate notification is not allowed during the update phase" )
00115 SC_DEFINE_MESSAGE(SC_ID_HALT_NOT_ALLOWED_            , 522,
00116     "halt() is only allowed in SC_CTHREADs" )
00117 SC_DEFINE_MESSAGE(SC_ID_WATCHING_NOT_ALLOWED_        , 523,
00118     "watching() has been deprecated, use reset_signal_is()" )
00119 SC_DEFINE_MESSAGE(SC_ID_DONT_INITIALIZE_             , 524,
00120     "dont_initialize() has no effect for SC_CTHREADs" )
00121 SC_DEFINE_MESSAGE(SC_ID_WAIT_N_INVALID_              , 525,
00122     "wait(n) is only valid for n > 0" )
00123 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_              , 526,
00124     "make sensitive failed" )
00125 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_POS_          , 527,
00126     "make sensitive pos failed" )
00127 SC_DEFINE_MESSAGE(SC_ID_MAKE_SENSITIVE_NEG_          , 528,
00128     "make sensitive neg failed" )
00129 SC_DEFINE_MESSAGE(SC_ID_INSERT_MODULE_               , 529,
00130     "insert module failed" )
00131 SC_DEFINE_MESSAGE(SC_ID_REMOVE_MODULE_               , 530,
00132     "remove module failed" )
00133 SC_DEFINE_MESSAGE(SC_ID_NOTIFY_DELAYED_              , 531,
00134     "notify_delayed() cannot be called on events "
00135     "that have pending notifications" )
00136 SC_DEFINE_MESSAGE(SC_ID_GEN_UNIQUE_NAME_             , 532,
00137     "cannot generate unique name from null string" )
00138 SC_DEFINE_MESSAGE(SC_ID_MODULE_NAME_STACK_EMPTY_     , 533,
00139     "module name stack is empty: did you forget to "
00140     "add a sc_module_name parameter to your module "
00141     "constructor?" )
00142 SC_DEFINE_MESSAGE(SC_ID_CYCLE_MISSES_EVENTS_         , 537,
00143          "the simulation contains timed-events but they are "
00144          "ignored by sc_cycle() ==> the simulation will be "
00145      "incorrect" )
00146 SC_DEFINE_MESSAGE(SC_ID_MODULE_METHOD_AFTER_START_   , 541,
00147     "call to SC_METHOD in sc_module while simulation running" )
00148 SC_DEFINE_MESSAGE(SC_ID_MODULE_THREAD_AFTER_START_   , 542,
00149     "call to SC_THREAD in sc_module while simulation running" )
00150 SC_DEFINE_MESSAGE(SC_ID_MODULE_CTHREAD_AFTER_START_   , 543,
00151     "call to SC_CTHREAD in sc_module while simulation running" )
00152 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_TIME_OVERFLOW_   , 544,
00153     "simulation time value overflow, simulation aborted" )
00154 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_STOP_CALLED_TWICE_ , 545,
00155     "sc_stop has already been called" ) 
00156 SC_DEFINE_MESSAGE(SC_ID_SIMULATION_START_AFTER_STOP_  , 546,
00157     "sc_start called after sc_stop has been called" ) 
00158 SC_DEFINE_MESSAGE(SC_ID_STOP_MODE_AFTER_START_        , 547,
00159     "attempt to set sc_stop mode  after start will be ignored" ) 
00160 SC_DEFINE_MESSAGE(SC_ID_METHOD_TERMINATION_EVENT_        , 560,
00161     "Attempt to get terminated event for a method process" ) 
00162 SC_DEFINE_MESSAGE(SC_ID_JOIN_ON_METHOD_HANDLE_        , 561,
00163     "Attempt to register method process with sc_join object" ) 
00164 SC_DEFINE_MESSAGE(SC_ID_NO_PROCESS_SEMANTICS_         , 563,
00165     "Attempt to invoke process with no semantics() method" )
00166 SC_DEFINE_MESSAGE(SC_ID_EVENT_ON_NULL_PROCESS_         , 564,
00167     "Attempt to get an event for non-existent process" )
00168 SC_DEFINE_MESSAGE(SC_ID_MULTIPLE_RESETS_,         565,
00169     "Attempt to set more than one signal as reset for a process" )
00170 SC_DEFINE_MESSAGE(SC_ID_UNKNOWN_PROCESS_TYPE_,       566,
00171     "Unknown process type" )
00172 SC_DEFINE_MESSAGE(SC_ID_RESET_SIGNAL_IS_NOT_ALLOWED_ , 567,
00173     "reset_signal_is() is only allowed for SC_CTHREADs" )
00174 SC_DEFINE_MESSAGE(SC_ID_NEGATIVE_SIMULATION_TIME_, 568,
00175     "negative simulation interval specified in sc_start call" )
00176 #endif
00177 
00178 // Taf!

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