00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2014 by all Contributors. 00005 All Rights reserved. 00006 00007 The contents of this file are subject to the restrictions and limitations 00008 set forth in the SystemC Open Source License (the "License"); 00009 You may not use this file except in compliance with such restrictions and 00010 limitations. You may obtain instructions on how to receive a copy of the 00011 License at http://www.accellera.org/. Software distributed by Contributors 00012 under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 00013 ANY KIND, either express or implied. See the License for the specific 00014 language governing rights and limitations under the License. 00015 00016 *****************************************************************************/ 00017 00018 /***************************************************************************** 00019 00020 sc_constants.h -- Default constants whose values may need to be 00021 changed depending on the application. 00022 00023 Original Author: Ali Dasdan, Synopsys, Inc. 00024 00025 CHANGE LOG AT THE END OF THE FILE 00026 *****************************************************************************/ 00027 00028 #ifndef SC_CONSTANTS_H 00029 #define SC_CONSTANTS_H 00030 00031 namespace sc_core { 00032 00033 // Maximum number of bits for arbitrary precision arithmetic. If 00034 // defined, the arithmetic becomes faster. If not defined, the 00035 // arithmetic becomes slower and the precision becomes infinite. It 00036 // is a good idea to define this constant as a multiple of 00037 // BITS_PER_DIGIT, which is defined in numeric_bit/sc_nbdefs.h. 00038 //#define SC_MAX_NBITS 510 // 17 * BITS_PER_DIGIT 00039 00040 00041 // deprecated in 1666-2005 and later, but kept for backwards compatibility 00042 // - can be set by defining SC_OVERRIDE_DEFAULT_STACK_SIZE 00043 // - defaults defined in sc_thread_process.cpp 00044 extern const int SC_DEFAULT_STACK_SIZE; 00045 00046 00047 #ifdef DEBUG_SYSTEMC 00048 const int SC_MAX_NUM_DELTA_CYCLES = 10000; 00049 #endif 00050 00051 } // namespace sc_core 00052 00053 // $Log: sc_constants.h,v $ 00054 // Revision 1.7 2011/08/26 20:46:09 acg 00055 // Andy Goodrich: moved the modification log to the end of the file to 00056 // eliminate source line number skew when check-ins are done. 00057 // 00058 // Revision 1.6 2011/02/18 20:33:26 acg 00059 // Philipp A. Hartmann: added default stack size for CYGWIN32. 00060 // 00061 // Revision 1.5 2011/02/18 20:27:14 acg 00062 // Andy Goodrich: Updated Copyrights. 00063 // 00064 // Revision 1.4 2011/02/13 21:47:37 acg 00065 // Andy Goodrich: update copyright notice. 00066 // 00067 // Revision 1.3 2010/03/15 18:29:25 acg 00068 // Andy Goodrich: Changed the default stack size to 128K from 64K. 00069 // 00070 // Revision 1.2 2008/05/22 17:06:24 acg 00071 // Andy Goodrich: updated copyright notice to include 2008. 00072 // 00073 // Revision 1.1.1.1 2006/12/15 20:20:05 acg 00074 // SystemC 2.3 00075 // 00076 // Revision 1.3 2006/01/13 18:44:29 acg 00077 // Added $Log to record CVS changes into the source. 00078 // 00079 00080 #endif