SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_stop_here.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4  more contributor license agreements. See the NOTICE file distributed
5  with this work for additional information regarding copyright ownership.
6  Accellera licenses this file to you under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with the
8  License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15  implied. See the License for the specific language governing
16  permissions and limitations under the License.
17 
18  *****************************************************************************/
19 
20 /*****************************************************************************
21 
22  sc_stop_here.h -- Function provided for debugging purposes.
23 */
36 // $Log: sc_stop_here.h,v $
37 // Revision 1.3 2011/08/26 20:46:19 acg
38 // Andy Goodrich: moved the modification log to the end of the file to
39 // eliminate source line number skew when check-ins are done.
40 //
41 #ifndef SC_STOP_HERE_H
42 #define SC_STOP_HERE_H
43 
44 
45 #include "sysc/utils/sc_report.h"
46 
47 
48 namespace sc_core {
49 
56 extern
57 SC_API void
58 sc_interrupt_here( const char* id, sc_severity severity );
59 
60 
67 extern
68 SC_API void
69 sc_stop_here( const char* id, sc_severity severity );
70 
71 } // namespace sc_core
72 
73 #endif
74 
75 // Revision 1.2 2011/02/18 20:38:44 acg
76 // Andy Goodrich: Updated Copyright notice.
77 //
78 // Revision 1.1.1.1 2006/12/15 20:20:06 acg
79 // SystemC 2.3
80 //
81 // Revision 1.3 2006/01/13 18:53:11 acg
82 // Andy Goodrich: Added $Log command so that CVS comments are reproduced in
83 // the source.
84 //
85 
86 // Taf!
SC_API void sc_interrupt_here(const char *id, sc_severity severity)
Debugging aid for interrupt warning, error, and fatal reports.
sc_severity
Enumeration of possible exception severity levels.
Definition: sc_report.h:58
SC_API void sc_stop_here(const char *id, sc_severity severity)
Debugging aid for warning, error, and fatal reports.
Run-time logging and reporting facilities.
#define SC_API
Definition: sc_cmnhdr.h:168