00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2006 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 Version 2.4 (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.systemc.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 *****************************************************************************/ 00028 00029 /***************************************************************************** 00030 00031 MODIFICATION LOG - modifiers, enter your name, affiliation, date and 00032 changes you are making here. 00033 00034 Name, Affiliation, Date: 00035 Description of Modification: 00036 00037 *****************************************************************************/ 00038 00039 // $Log: sc_stop_here.h,v $ 00040 // Revision 1.1.1.1 2006/12/15 20:31:39 acg 00041 // SystemC 2.2 00042 // 00043 // Revision 1.3 2006/01/13 18:53:11 acg 00044 // Andy Goodrich: Added $Log command so that CVS comments are reproduced in 00045 // the source. 00046 // 00047 00048 #ifndef SC_STOP_HERE_H 00049 #define SC_STOP_HERE_H 00050 00051 00052 #include "sysc/utils/sc_report.h" 00053 00054 00055 namespace sc_core { 00056 00057 // ---------------------------------------------------------------------------- 00058 // FUNCTION : sc_interrupt_here 00059 // 00060 // Debugging aid for interrupt warning, error, and fatal reports. 00061 // ---------------------------------------------------------------------------- 00062 00063 extern 00064 void 00065 sc_interrupt_here( const char* id, sc_severity severity ); 00066 00067 00068 // ---------------------------------------------------------------------------- 00069 // FUNCTION : sc_stop_here 00070 // 00071 // Debugging aid for warning, error, and fatal reports. 00072 // ---------------------------------------------------------------------------- 00073 00074 extern 00075 void 00076 sc_stop_here( const char* id, sc_severity severity ); 00077 00078 } // namespace sc_core 00079 00080 #endif 00081 00082 // Taf!