Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_bit_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-2004 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.3 (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_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 #ifndef SC_BIT_IDS_H
00037 #define SC_BIT_IDS_H
00038 
00039 
00040 #include "systemc/utils/sc_report.h"
00041 
00042 
00043 // ----------------------------------------------------------------------------
00044 //  Report ids (datatypes/bit)
00045 //
00046 //  Report ids in the range of 200-299.
00047 // ----------------------------------------------------------------------------
00048 
00049 #ifndef SC_DEFINE_MESSAGE
00050 #define SC_DEFINE_MESSAGE(id,unused1,unused2) extern const char id[];    
00051 extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
00052 #endif
00053 
00054 
00055 SC_DEFINE_MESSAGE( SC_ID_LENGTH_MISMATCH_, 200,
00056     "length mismatch in bit/logic vector assignment" )
00057 SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_TYPES_, 201,
00058     "incompatible types" )
00059 SC_DEFINE_MESSAGE( SC_ID_CANNOT_CONVERT_, 202,
00060     "cannot perform conversion" )
00061 SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_VECTORS_, 203,
00062     "incompatible vectors" )
00063 SC_DEFINE_MESSAGE( SC_ID_VALUE_NOT_VALID_, 204,
00064     "value is not valid" )
00065 SC_DEFINE_MESSAGE( SC_ID_ZERO_LENGTH_,     205,
00066     "zero length" )
00067 SC_DEFINE_MESSAGE( SC_ID_VECTOR_CONTAINS_LOGIC_VALUE_, 206,
00068     "vector contains 4-value logic" )  
00069 SC_DEFINE_MESSAGE( SC_ID_SC_BV_CANNOT_CONTAIN_X_AND_Z_, 207,
00070     "sc_bv cannot contain values X and Z" )
00071 SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_LONG_,  208,
00072     "vector is too long: truncated" )  
00073 SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_SHORT_, 209,
00074     "vector is too short: 0-padded" )  
00075 SC_DEFINE_MESSAGE( SC_ID_WRONG_VALUE_, 210,
00076     "wrong value" )
00077 SC_DEFINE_MESSAGE( SC_ID_LOGIC_Z_TO_BOOL_, 211,
00078     "sc_logic value 'Z' cannot be converted to bool" )
00079 SC_DEFINE_MESSAGE( SC_ID_LOGIC_X_TO_BOOL_, 212,
00080     "sc_logic value 'X' cannot be converted to bool" )
00081 
00082 
00083 
00084 
00085 #endif
00086 
00087 // Taf!

Generated on Fri Jan 14 08:28:59 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18