112027Sjungma@eit.uni-kl.de/***************************************************************************** 212027Sjungma@eit.uni-kl.de 312027Sjungma@eit.uni-kl.de Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 412027Sjungma@eit.uni-kl.de more contributor license agreements. See the NOTICE file distributed 512027Sjungma@eit.uni-kl.de with this work for additional information regarding copyright ownership. 612027Sjungma@eit.uni-kl.de Accellera licenses this file to you under the Apache License, Version 2.0 712027Sjungma@eit.uni-kl.de (the "License"); you may not use this file except in compliance with the 812027Sjungma@eit.uni-kl.de License. You may obtain a copy of the License at 912027Sjungma@eit.uni-kl.de 1012027Sjungma@eit.uni-kl.de http://www.apache.org/licenses/LICENSE-2.0 1112027Sjungma@eit.uni-kl.de 1212027Sjungma@eit.uni-kl.de Unless required by applicable law or agreed to in writing, software 1312027Sjungma@eit.uni-kl.de distributed under the License is distributed on an "AS IS" BASIS, 1412027Sjungma@eit.uni-kl.de WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1512027Sjungma@eit.uni-kl.de implied. See the License for the specific language governing 1612027Sjungma@eit.uni-kl.de permissions and limitations under the License. 1712027Sjungma@eit.uni-kl.de 1812027Sjungma@eit.uni-kl.de *****************************************************************************/ 1912027Sjungma@eit.uni-kl.de 2012027Sjungma@eit.uni-kl.de/***************************************************************************** 2112027Sjungma@eit.uni-kl.de 2212027Sjungma@eit.uni-kl.de sc_constants.h -- Default constants whose values may need to be 2312027Sjungma@eit.uni-kl.de changed depending on the application. 2412027Sjungma@eit.uni-kl.de 2512027Sjungma@eit.uni-kl.de Original Author: Ali Dasdan, Synopsys, Inc. 2612027Sjungma@eit.uni-kl.de 2712027Sjungma@eit.uni-kl.de CHANGE LOG AT THE END OF THE FILE 2812027Sjungma@eit.uni-kl.de *****************************************************************************/ 2912027Sjungma@eit.uni-kl.de 3012027Sjungma@eit.uni-kl.de#ifndef SC_CONSTANTS_H 3112027Sjungma@eit.uni-kl.de#define SC_CONSTANTS_H 3212027Sjungma@eit.uni-kl.de 3312027Sjungma@eit.uni-kl.denamespace sc_core { 3412027Sjungma@eit.uni-kl.de 3512027Sjungma@eit.uni-kl.de// Maximum number of bits for arbitrary precision arithmetic. If 3612027Sjungma@eit.uni-kl.de// defined, the arithmetic becomes faster. If not defined, the 3712027Sjungma@eit.uni-kl.de// arithmetic becomes slower and the precision becomes infinite. It 3812027Sjungma@eit.uni-kl.de// is a good idea to define this constant as a multiple of 3912027Sjungma@eit.uni-kl.de// BITS_PER_DIGIT, which is defined in numeric_bit/sc_nbdefs.h. 4012027Sjungma@eit.uni-kl.de//#define SC_MAX_NBITS 510 // 17 * BITS_PER_DIGIT 4112027Sjungma@eit.uni-kl.de 4212027Sjungma@eit.uni-kl.de 4312027Sjungma@eit.uni-kl.de// deprecated in 1666-2005 and later, but kept for backwards compatibility 4412027Sjungma@eit.uni-kl.de// - can be set by defining SC_OVERRIDE_DEFAULT_STACK_SIZE 4512027Sjungma@eit.uni-kl.de// - defaults defined in sc_thread_process.cpp 4612027Sjungma@eit.uni-kl.deextern const int SC_DEFAULT_STACK_SIZE; 4712027Sjungma@eit.uni-kl.de 4812027Sjungma@eit.uni-kl.de 4912027Sjungma@eit.uni-kl.de#ifdef DEBUG_SYSTEMC 5012027Sjungma@eit.uni-kl.deconst int SC_MAX_NUM_DELTA_CYCLES = 10000; 5112027Sjungma@eit.uni-kl.de#endif 5212027Sjungma@eit.uni-kl.de 5312027Sjungma@eit.uni-kl.de} // namespace sc_core 5412027Sjungma@eit.uni-kl.de 5512027Sjungma@eit.uni-kl.de// $Log: sc_constants.h,v $ 5612027Sjungma@eit.uni-kl.de// Revision 1.7 2011/08/26 20:46:09 acg 5712027Sjungma@eit.uni-kl.de// Andy Goodrich: moved the modification log to the end of the file to 5812027Sjungma@eit.uni-kl.de// eliminate source line number skew when check-ins are done. 5912027Sjungma@eit.uni-kl.de// 6012027Sjungma@eit.uni-kl.de// Revision 1.6 2011/02/18 20:33:26 acg 6112027Sjungma@eit.uni-kl.de// Philipp A. Hartmann: added default stack size for CYGWIN32. 6212027Sjungma@eit.uni-kl.de// 6312027Sjungma@eit.uni-kl.de// Revision 1.5 2011/02/18 20:27:14 acg 6412027Sjungma@eit.uni-kl.de// Andy Goodrich: Updated Copyrights. 6512027Sjungma@eit.uni-kl.de// 6612027Sjungma@eit.uni-kl.de// Revision 1.4 2011/02/13 21:47:37 acg 6712027Sjungma@eit.uni-kl.de// Andy Goodrich: update copyright notice. 6812027Sjungma@eit.uni-kl.de// 6912027Sjungma@eit.uni-kl.de// Revision 1.3 2010/03/15 18:29:25 acg 7012027Sjungma@eit.uni-kl.de// Andy Goodrich: Changed the default stack size to 128K from 64K. 7112027Sjungma@eit.uni-kl.de// 7212027Sjungma@eit.uni-kl.de// Revision 1.2 2008/05/22 17:06:24 acg 7312027Sjungma@eit.uni-kl.de// Andy Goodrich: updated copyright notice to include 2008. 7412027Sjungma@eit.uni-kl.de// 7512027Sjungma@eit.uni-kl.de// Revision 1.1.1.1 2006/12/15 20:20:05 acg 7612027Sjungma@eit.uni-kl.de// SystemC 2.3 7712027Sjungma@eit.uni-kl.de// 7812027Sjungma@eit.uni-kl.de// Revision 1.3 2006/01/13 18:44:29 acg 7912027Sjungma@eit.uni-kl.de// Added $Log to record CVS changes into the source. 8012027Sjungma@eit.uni-kl.de// 8112027Sjungma@eit.uni-kl.de 8212027Sjungma@eit.uni-kl.de#endif 83