[1] | 1 | /*------------------------------------------------------------\ |
---|
[52] | 2 | | | |
---|
| 3 | | Tool : systemcass | |
---|
| 4 | | | |
---|
| 5 | | File : global_functions.h | |
---|
| 6 | | | |
---|
| 7 | | Author : Buchmann Richard | |
---|
| 8 | | | |
---|
| 9 | | Date : 09_07_2004 | |
---|
| 10 | | | |
---|
| 11 | \------------------------------------------------------------*/ |
---|
[1] | 12 | #ifndef __GLOBAL_FUNCTIONS_H__ |
---|
| 13 | #define __GLOBAL_FUNCTIONS_H__ |
---|
| 14 | |
---|
[27] | 15 | #include "sc_fwd.h" |
---|
| 16 | #include "sc_time.h" |
---|
[1] | 17 | |
---|
| 18 | extern int sc_main(int, char **); |
---|
| 19 | |
---|
| 20 | namespace sc_core { |
---|
| 21 | |
---|
| 22 | ///////////////////////// |
---|
| 23 | enum sc_stop_mode |
---|
| 24 | { |
---|
[52] | 25 | SC_STOP_FINISH_DELTA, |
---|
| 26 | SC_STOP_IMMEDIATE |
---|
[1] | 27 | }; |
---|
| 28 | ///////////////////////// |
---|
| 29 | |
---|
[52] | 30 | extern int main(int argc, char * argv[]); |
---|
[1] | 31 | |
---|
| 32 | extern void sc_initialize(void); |
---|
| 33 | |
---|
[52] | 34 | extern void sc_start(double d_val) __attribute__((deprecated)); |
---|
| 35 | extern void sc_start(); |
---|
| 36 | extern void sc_start(const sc_time & duration ); |
---|
| 37 | extern void sc_start(double d_val, sc_time_unit d_tu); |
---|
| 38 | extern void sc_stop(); |
---|
| 39 | extern void sc_set_stop_mode (sc_stop_mode); |
---|
[1] | 40 | extern sc_stop_mode sc_get_stop_mode (); |
---|
| 41 | |
---|
[52] | 42 | extern const char * sc_gen_unique_name(const char * basename_); |
---|
[1] | 43 | |
---|
| 44 | ///////////////////////// |
---|
| 45 | ///// SYSTEMCASS_SPECIFIC |
---|
| 46 | |
---|
[52] | 47 | extern void close_systemcass(); |
---|
| 48 | extern bool run_schedule_editor(const char *); |
---|
| 49 | extern const char * temporary_dir; |
---|
| 50 | extern const char * generated_files_dir; |
---|
| 51 | |
---|
[1] | 52 | ///////////////////////// |
---|
| 53 | |
---|
| 54 | } // end of namespace sc_core |
---|
| 55 | |
---|
| 56 | using sc_core::sc_gen_unique_name; |
---|
| 57 | using sc_core::sc_initialize; |
---|
| 58 | using sc_core::sc_start; |
---|
| 59 | using sc_core::sc_stop; |
---|
| 60 | |
---|
| 61 | ///////////////////////// |
---|
| 62 | |
---|
| 63 | #endif |
---|
| 64 | |
---|
[52] | 65 | /* |
---|
| 66 | # Local Variables: |
---|
| 67 | # tab-width: 4; |
---|
| 68 | # c-basic-offset: 4; |
---|
| 69 | # c-file-offsets:((innamespace . 0)(inline-open . 0)); |
---|
| 70 | # indent-tabs-mode: nil; |
---|
| 71 | # End: |
---|
| 72 | # |
---|
| 73 | # vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
| 74 | */ |
---|
| 75 | |
---|