Last change
on this file since 137 was
137,
checked in by rosiere, 15 years ago
|
Various modif (add test, and vhdl)
|
-
Property svn:keywords set to
Id
|
File size:
595 bytes
|
Line | |
---|
1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Morpheo_signal_handler.cpp 137 2010-02-16 12:35:48Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "TopLevel/include/Morpheo.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | |
---|
13 | #undef FUNCTION |
---|
14 | #define FUNCTION "signal_handler" |
---|
15 | void signal_handler (int value) |
---|
16 | { |
---|
17 | sc_stop(); |
---|
18 | |
---|
19 | switch (value) |
---|
20 | { |
---|
21 | case SIGALRM : |
---|
22 | { |
---|
23 | DEBUG_SIGNAL_PRINT(); |
---|
24 | |
---|
25 | throw ERRORMORPHEO(FUNCTION,_("Signal Alarm : can have a combinatory loop.\n")); |
---|
26 | break; |
---|
27 | } |
---|
28 | default : |
---|
29 | { |
---|
30 | throw ERRORMORPHEO(FUNCTION,_("Unknow signal.\n")); |
---|
31 | break; |
---|
32 | } |
---|
33 | } |
---|
34 | }; |
---|
35 | |
---|
36 | }; // end namespace morpheo |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.