SystemC 3.0.0
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
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
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 SC_API const char id[]; }
71namespace sc_core {
72 extern SC_API const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
73}
74#endif
75
76
78 "length mismatch in bit/logic vector assignment" )
80 "incompatible types" )
82 "cannot perform conversion" )
84 "incompatible vectors" )
86 "value is not valid" )
88 "zero length" )
90 "vector contains 4-value logic" )
92 "sc_bv cannot contain values X and Z" )
94 "vector is too long: truncated" )
96 "vector is too short: 0-padded" )
98 "wrong value" )
100 "sc_logic value 'Z' cannot be converted to bool" )
102 "sc_logic value 'X' cannot be converted to bool" )
103
104#endif
105
106// Taf!
#define SC_DEFINE_MESSAGE(id, unused1, unused2)
Definition: sc_bit_ids.h:69
#define SC_API
Definition: sc_cmnhdr.h:148
const char SC_ID_VECTOR_TOO_LONG_[]
const char SC_ID_INCOMPATIBLE_VECTORS_[]
const char SC_ID_LOGIC_Z_TO_BOOL_[]
const char SC_ID_CANNOT_CONVERT_[]
const char SC_ID_LOGIC_X_TO_BOOL_[]
const char SC_ID_ZERO_LENGTH_[]
const char SC_ID_VALUE_NOT_VALID_[]
const char SC_ID_INCOMPATIBLE_TYPES_[]
const char SC_ID_SC_BV_CANNOT_CONTAIN_X_AND_Z_[]
SC_API const char SC_ID_REGISTER_ID_FAILED_[]
Definition: sc_bit_ids.h:72
const char SC_ID_VECTOR_TOO_SHORT_[]
const char SC_ID_WRONG_VALUE_[]
const char SC_ID_LENGTH_MISMATCH_[]
const char SC_ID_VECTOR_CONTAINS_LOGIC_VALUE_[]
class SC_API sc_logic
Definition: sc_signal_ifs.h:39
sc_core::sc_signal_in_if< T > & value(const T &val)
Definition: sc_stub.h:217