SystemC  Recoding Infrastructure for SystemC v0.6.3 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
sc_bit_ids.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  The following code is derived, directly or indirectly, from the SystemC
4  source code Copyright (c) 1996-2014 by all Contributors.
5  All Rights reserved.
6 
7  The contents of this file are subject to the restrictions and limitations
8  set forth in the SystemC Open Source License (the "License");
9  You may not use this file except in compliance with such restrictions and
10  limitations. You may obtain instructions on how to receive a copy of the
11  License at http://www.accellera.org/. Software distributed by Contributors
12  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
13  ANY KIND, either express or implied. See the License for the specific
14  language governing rights and limitations under the License.
15 
16  *****************************************************************************/
17 
18 /*****************************************************************************
19 
20  sc_bit_ids.h -- Report ids for the datatypes/bit code.
21 
22  Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17
23 
24  *****************************************************************************/
25 
26 /*****************************************************************************
27 
28  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
29  changes you are making here.
30 
31  Name, Affiliation, Date:
32  Description of Modification:
33 
34  *****************************************************************************/
35 
36 // $Log: sc_bit_ids.h,v $
37 // Revision 1.1.1.1 2006/12/15 20:20:04 acg
38 // SystemC 2.3
39 //
40 // Revision 1.5 2006/01/25 00:31:15 acg
41 // Andy Goodrich: Changed over to use a standard message id of
42 // SC_ID_IEEE_1666_DEPRECATION for all deprecation messages.
43 //
44 // Revision 1.4 2006/01/24 20:50:55 acg
45 // Andy Goodrich: added warnings indicating that sc_bit is deprecated and that
46 // the C bool data type should be used in its place.
47 //
48 // Revision 1.3 2006/01/13 18:53:53 acg
49 // Andy Goodrich: added $Log command so that CVS comments are reproduced in
50 // the source.
51 //
52 
53 #ifndef SC_BIT_IDS_H
54 #define SC_BIT_IDS_H
55 
56 
57 #include "sysc/utils/sc_report.h"
58 
59 
60 // ----------------------------------------------------------------------------
61 // Report ids (datatypes/bit)
62 //
63 // Report ids in the range of 200-299.
64 // ----------------------------------------------------------------------------
65 
66 #ifndef SC_DEFINE_MESSAGE
67 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
68  namespace sc_core { extern const char id[]; }
69 namespace sc_core {
70  extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
71 }
72 #endif
73 
74 
75 SC_DEFINE_MESSAGE( SC_ID_LENGTH_MISMATCH_, 200,
76  "length mismatch in bit/logic vector assignment" )
77 SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_TYPES_, 201,
78  "incompatible types" )
79 SC_DEFINE_MESSAGE( SC_ID_CANNOT_CONVERT_, 202,
80  "cannot perform conversion" )
81 SC_DEFINE_MESSAGE( SC_ID_INCOMPATIBLE_VECTORS_, 203,
82  "incompatible vectors" )
83 SC_DEFINE_MESSAGE( SC_ID_VALUE_NOT_VALID_, 204,
84  "value is not valid" )
85 SC_DEFINE_MESSAGE( SC_ID_ZERO_LENGTH_, 205,
86  "zero length" )
87 SC_DEFINE_MESSAGE( SC_ID_VECTOR_CONTAINS_LOGIC_VALUE_, 206,
88  "vector contains 4-value logic" )
89 SC_DEFINE_MESSAGE( SC_ID_SC_BV_CANNOT_CONTAIN_X_AND_Z_, 207,
90  "sc_bv cannot contain values X and Z" )
91 SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_LONG_, 208,
92  "vector is too long: truncated" )
93 SC_DEFINE_MESSAGE( SC_ID_VECTOR_TOO_SHORT_, 209,
94  "vector is too short: 0-padded" )
95 SC_DEFINE_MESSAGE( SC_ID_WRONG_VALUE_, 210,
96  "wrong value" )
97 SC_DEFINE_MESSAGE( SC_ID_LOGIC_Z_TO_BOOL_, 211,
98  "sc_logic value 'Z' cannot be converted to bool" )
99 SC_DEFINE_MESSAGE( SC_ID_LOGIC_X_TO_BOOL_, 212,
100  "sc_logic value 'X' cannot be converted to bool" )
101 
102 #endif
103 
104 // Taf!
#define SC_DEFINE_MESSAGE(id, unused1, unused2)
const char SC_ID_REGISTER_ID_FAILED_[]
Definition: sc_bit_ids.h:70
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