SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_constants.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_constants.h -- Default constants whose values may need to be
23 */
34 #ifndef SC_CONSTANTS_H
35 #define SC_CONSTANTS_H
36 
37 namespace sc_core {
38 
39 // Maximum number of bits for arbitrary precision arithmetic. If
40 // defined, the arithmetic becomes faster. If not defined, the
41 // arithmetic becomes slower and the precision becomes infinite. It
42 // is a good idea to define this constant as a multiple of
43 // BITS_PER_DIGIT, which is defined in numeric_bit/sc_nbdefs.h.
44 //#define SC_MAX_NBITS 510 // 17 * BITS_PER_DIGIT
45 
46 
47 // deprecated in 1666-2005 and later, but kept for backwards compatibility
48 // - can be set by defining SC_OVERRIDE_DEFAULT_STACK_SIZE
49 // - defaults defined in sc_thread_process.cpp
50 extern const int SC_DEFAULT_STACK_SIZE;
51 
52 
53 #ifdef DEBUG_SYSTEMC
54 const int SC_MAX_NUM_DELTA_CYCLES = 10000;
55 #endif
56 
57 } // namespace sc_core
58 
59 // $Log: sc_constants.h,v $
60 // Revision 1.7 2011/08/26 20:46:09 acg
61 // Andy Goodrich: moved the modification log to the end of the file to
62 // eliminate source line number skew when check-ins are done.
63 //
64 // Revision 1.6 2011/02/18 20:33:26 acg
65 // Philipp A. Hartmann: added default stack size for CYGWIN32.
66 //
67 // Revision 1.5 2011/02/18 20:27:14 acg
68 // Andy Goodrich: Updated Copyrights.
69 //
70 // Revision 1.4 2011/02/13 21:47:37 acg
71 // Andy Goodrich: update copyright notice.
72 //
73 // Revision 1.3 2010/03/15 18:29:25 acg
74 // Andy Goodrich: Changed the default stack size to 128K from 64K.
75 //
76 // Revision 1.2 2008/05/22 17:06:24 acg
77 // Andy Goodrich: updated copyright notice to include 2008.
78 //
79 // Revision 1.1.1.1 2006/12/15 20:20:05 acg
80 // SystemC 2.3
81 //
82 // Revision 1.3 2006/01/13 18:44:29 acg
83 // Added $Log to record CVS changes into the source.
84 //
85 
86 #endif
const int SC_DEFAULT_STACK_SIZE