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