1/*****************************************************************************
2
3  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4  more contributor license agreements.  See the NOTICE file distributed
5  with this work for additional information regarding copyright ownership.
6  Accellera licenses this file to you under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with the
8  License.  You may obtain a copy of the License at
9
10    http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15  implied.  See the License for the specific language governing
16  permissions and limitations under the License.
17
18 *****************************************************************************/
19
20/*****************************************************************************
21
22  sc_bit_ids.h -- Report ids for the datatypes/bit code.
23
24  Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17
25
26 *****************************************************************************/
27
28/*****************************************************************************
29
30  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
31  changes you are making here.
32
33      Name, Affiliation, Date:
34  Description of Modification:
35
36 *****************************************************************************/
37
38// $Log: sc_bit_ids.h,v $
39// Revision 1.1.1.1  2006/12/15 20:20:04  acg
40// SystemC 2.3
41//
42// Revision 1.5  2006/01/25 00:31:15  acg
43//  Andy Goodrich: Changed over to use a standard message id of
44//  SC_ID_IEEE_1666_DEPRECATION for all deprecation messages.
45//
46// Revision 1.4  2006/01/24 20:50:55  acg
47// Andy Goodrich: added warnings indicating that sc_bit is deprecated and that
48// the C bool data type should be used in its place.
49//
50// Revision 1.3  2006/01/13 18:53:53  acg
51// Andy Goodrich: added $Log command so that CVS comments are reproduced in
52// the source.
53//
54
55#ifndef SC_BIT_IDS_H
56#define SC_BIT_IDS_H
57
58
59#include "sysc/utils/sc_report.h"
60
61
62// ----------------------------------------------------------------------------
63//  Report ids (datatypes/bit)
64//
65//  Report ids in the range of 200-299.
66// ----------------------------------------------------------------------------
67
68#ifndef SC_DEFINE_MESSAGE
69#define SC_DEFINE_MESSAGE(id,unused1,unused2) \
70    namespace sc_core { extern const char id[]; }
71namespace sc_core {
72    extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
73}
74#endif
75
76
77SC_DEFINE_MESSAGE( SC_ID_LENGTH_MISMATCH_, 200,
78		"length mismatch in bit/logic vector assignment" )
79SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_TYPES_, 201,
80		"incompatible types" )
81SC_DEFINE_MESSAGE( SC_ID_CANNOT_CONVERT_, 202,
82		"cannot perform conversion" )
83SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_VECTORS_, 203,
84		"incompatible vectors" )
85SC_DEFINE_MESSAGE( SC_ID_VALUE_NOT_VALID_, 204,
86		"value is not valid" )
87SC_DEFINE_MESSAGE( SC_ID_ZERO_LENGTH_,     205,
88		"zero length" )
89SC_DEFINE_MESSAGE( SC_ID_VECTOR_CONTAINS_LOGIC_VALUE_, 206,
90		"vector contains 4-value logic" )
91SC_DEFINE_MESSAGE( SC_ID_SC_BV_CANNOT_CONTAIN_X_AND_Z_, 207,
92		"sc_bv cannot contain values X and Z" )
93SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_LONG_,  208,
94		"vector is too long: truncated" )
95SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_SHORT_, 209,
96		"vector is too short: 0-padded" )
97SC_DEFINE_MESSAGE( SC_ID_WRONG_VALUE_, 210,
98		"wrong value" )
99SC_DEFINE_MESSAGE( SC_ID_LOGIC_Z_TO_BOOL_, 211,
100		"sc_logic value 'Z' cannot be converted to bool" )
101SC_DEFINE_MESSAGE( SC_ID_LOGIC_X_TO_BOOL_, 212,
102		"sc_logic value 'X' cannot be converted to bool" )
103
104#endif
105
106// Taf!
107