00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2014 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 (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.accellera.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_bit_ids.h -- Report ids for the datatypes/bit 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_bit_ids.h,v $ 00037 // Revision 1.1.1.1 2006/12/15 20:20:04 acg 00038 // SystemC 2.3 00039 // 00040 // Revision 1.5 2006/01/25 00:31:15 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:50:55 acg 00045 // Andy Goodrich: added warnings indicating that sc_bit is deprecated and that 00046 // the C bool data type should be used in its place. 00047 // 00048 // Revision 1.3 2006/01/13 18:53:53 acg 00049 // Andy Goodrich: added $Log command so that CVS comments are reproduced in 00050 // the source. 00051 // 00052 00053 #ifndef SC_BIT_IDS_H 00054 #define SC_BIT_IDS_H 00055 00056 00057 #include "sysc/utils/sc_report.h" 00058 00059 00060 // ---------------------------------------------------------------------------- 00061 // Report ids (datatypes/bit) 00062 // 00063 // Report ids in the range of 200-299. 00064 // ---------------------------------------------------------------------------- 00065 00066 #ifndef SC_DEFINE_MESSAGE 00067 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \ 00068 namespace sc_core { extern const char id[]; } 00069 namespace sc_core { 00070 extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp 00071 } 00072 #endif 00073 00074 00075 SC_DEFINE_MESSAGE( SC_ID_LENGTH_MISMATCH_, 200, 00076 "length mismatch in bit/logic vector assignment" ) 00077 SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_TYPES_, 201, 00078 "incompatible types" ) 00079 SC_DEFINE_MESSAGE( SC_ID_CANNOT_CONVERT_, 202, 00080 "cannot perform conversion" ) 00081 SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_VECTORS_, 203, 00082 "incompatible vectors" ) 00083 SC_DEFINE_MESSAGE( SC_ID_VALUE_NOT_VALID_, 204, 00084 "value is not valid" ) 00085 SC_DEFINE_MESSAGE( SC_ID_ZERO_LENGTH_, 205, 00086 "zero length" ) 00087 SC_DEFINE_MESSAGE( SC_ID_VECTOR_CONTAINS_LOGIC_VALUE_, 206, 00088 "vector contains 4-value logic" ) 00089 SC_DEFINE_MESSAGE( SC_ID_SC_BV_CANNOT_CONTAIN_X_AND_Z_, 207, 00090 "sc_bv cannot contain values X and Z" ) 00091 SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_LONG_, 208, 00092 "vector is too long: truncated" ) 00093 SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_SHORT_, 209, 00094 "vector is too short: 0-padded" ) 00095 SC_DEFINE_MESSAGE( SC_ID_WRONG_VALUE_, 210, 00096 "wrong value" ) 00097 SC_DEFINE_MESSAGE( SC_ID_LOGIC_Z_TO_BOOL_, 211, 00098 "sc_logic value 'Z' cannot be converted to bool" ) 00099 SC_DEFINE_MESSAGE( SC_ID_LOGIC_X_TO_BOOL_, 212, 00100 "sc_logic value 'X' cannot be converted to bool" ) 00101 00102 #endif 00103 00104 // Taf!