SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_bit_ids.h
Go to the documentation of this file.
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 */
32 /*****************************************************************************
33 
34  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
35  changes you are making here.
36 
37  Name, Affiliation, Date:
38  Description of Modification:
39 
40  *****************************************************************************/
41 
42 // $Log: sc_bit_ids.h,v $
43 // Revision 1.1.1.1 2006/12/15 20:20:04 acg
44 // SystemC 2.3
45 //
46 // Revision 1.5 2006/01/25 00:31:15 acg
47 // Andy Goodrich: Changed over to use a standard message id of
48 // SC_ID_IEEE_1666_DEPRECATION for all deprecation messages.
49 //
50 // Revision 1.4 2006/01/24 20:50:55 acg
51 // Andy Goodrich: added warnings indicating that sc_bit is deprecated and that
52 // the C bool data type should be used in its place.
53 //
54 // Revision 1.3 2006/01/13 18:53:53 acg
55 // Andy Goodrich: added $Log command so that CVS comments are reproduced in
56 // the source.
57 //
58 
59 #ifndef SC_BIT_IDS_H
60 #define SC_BIT_IDS_H
61 
62 
63 #include "sysc/utils/sc_report.h"
64 
65 
72 #ifndef SC_DEFINE_MESSAGE
73 
74 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
75  namespace sc_core { extern SC_API const char id[]; }
76 namespace sc_core {
77  extern SC_API const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
78 }
79 #endif
80 
81 
82 SC_DEFINE_MESSAGE( SC_ID_LENGTH_MISMATCH_, 200,
83  "length mismatch in bit/logic vector assignment" )
84 SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_TYPES_, 201,
85  "incompatible types" )
86 SC_DEFINE_MESSAGE( SC_ID_CANNOT_CONVERT_, 202,
87  "cannot perform conversion" )
88 SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_VECTORS_, 203,
89  "incompatible vectors" )
90 SC_DEFINE_MESSAGE( SC_ID_VALUE_NOT_VALID_, 204,
91  "value is not valid" )
92 SC_DEFINE_MESSAGE( SC_ID_ZERO_LENGTH_, 205,
93  "zero length" )
94 SC_DEFINE_MESSAGE( SC_ID_VECTOR_CONTAINS_LOGIC_VALUE_, 206,
95  "vector contains 4-value logic" )
96 SC_DEFINE_MESSAGE( SC_ID_SC_BV_CANNOT_CONTAIN_X_AND_Z_, 207,
97  "sc_bv cannot contain values X and Z" )
98 SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_LONG_, 208,
99  "vector is too long: truncated" )
100 SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_SHORT_, 209,
101  "vector is too short: 0-padded" )
102 SC_DEFINE_MESSAGE( SC_ID_WRONG_VALUE_, 210,
103  "wrong value" )
104 SC_DEFINE_MESSAGE( SC_ID_LOGIC_Z_TO_BOOL_, 211,
105  "sc_logic value 'Z' cannot be converted to bool" )
106 SC_DEFINE_MESSAGE( SC_ID_LOGIC_X_TO_BOOL_, 212,
107  "sc_logic value 'X' cannot be converted to bool" )
108 
109 #endif
110 
111 // Taf!
#define SC_DEFINE_MESSAGE(id, unused1, unused2)
Definition: sc_bit_ids.h:74
sc_clock period is zero sc_clock low time is zero sc_fifo< T > cannot have more than one writer bind interface to port failed complete binding failed remove port failed insert primitive channel failed sc_signal< T > cannot have more than one driver resolved port not bound to resolved signal sc_semaphore requires an initial value
SC_API const char SC_ID_REGISTER_ID_FAILED_[]
Definition: sc_bit_ids.h:77
Run-time logging and reporting facilities.
class SC_API sc_logic
Definition: sc_signal_ifs.h:43
#define SC_API
Definition: sc_cmnhdr.h:168