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_stop_here.h -- Function provided for debugging purposes. 00021 This file is always compiled in debug mode, such that 00022 setting a breakpoint at this function can help locate 00023 the cause of a SystemC error or warning. 00024 00025 Original Author: Martin Janssen, Synopsys, Inc., 2001-11-14 00026 00027 CHANGE LOG AT END OF FILE 00028 *****************************************************************************/ 00029 00030 // $Log: sc_stop_here.h,v $ 00031 // Revision 1.3 2011/08/26 20:46:19 acg 00032 // Andy Goodrich: moved the modification log to the end of the file to 00033 // eliminate source line number skew when check-ins are done. 00034 // 00035 #ifndef SC_STOP_HERE_H 00036 #define SC_STOP_HERE_H 00037 00038 00039 #include "sysc/utils/sc_report.h" 00040 00041 00042 namespace sc_core { 00043 00044 // ---------------------------------------------------------------------------- 00045 // FUNCTION : sc_interrupt_here 00046 // 00047 // Debugging aid for interrupt warning, error, and fatal reports. 00048 // ---------------------------------------------------------------------------- 00049 00050 extern 00051 void 00052 sc_interrupt_here( const char* id, sc_severity severity ); 00053 00054 00055 // ---------------------------------------------------------------------------- 00056 // FUNCTION : sc_stop_here 00057 // 00058 // Debugging aid for warning, error, and fatal reports. 00059 // ---------------------------------------------------------------------------- 00060 00061 extern 00062 void 00063 sc_stop_here( const char* id, sc_severity severity ); 00064 00065 } // namespace sc_core 00066 00067 #endif 00068 00069 // Revision 1.2 2011/02/18 20:38:44 acg 00070 // Andy Goodrich: Updated Copyright notice. 00071 // 00072 // Revision 1.1.1.1 2006/12/15 20:20:06 acg 00073 // SystemC 2.3 00074 // 00075 // Revision 1.3 2006/01/13 18:53:11 acg 00076 // Andy Goodrich: Added $Log command so that CVS comments are reproduced in 00077 // the source. 00078 // 00079 00080 // Taf!