Changeset 109 for trunk/IPs/systemC/processor/Morpheo/Common/src
- Timestamp:
- Feb 16, 2009, 9:28:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/src/Debug.cpp
r100 r109 11 11 namespace morpheo { 12 12 13 #ifdef DEBUG14 13 static bool debug_initialized; 15 #endif16 14 debug_verbosity_t debug; 17 15 bool debug_cycle_test; 18 16 double debug_cycle_start; 19 17 double debug_cycle_stop ; 18 double debug_cycle_idle; 20 19 21 20 #undef FUNCTION … … 37 36 void debug_init (debug_verbosity_t level, 38 37 double cycle_start, 39 double cycle_stop ) 38 double cycle_stop , 39 double cycle_idle) 40 40 { 41 #ifdef DEBUG42 41 if (not debug_initialized) 43 42 { 43 #ifdef DEBUG 44 44 // Take min 45 45 debug = (level < DEBUG)?level:DEBUG; 46 46 47 # ifdef SYSTEMC48 debug_cycle_test 49 debug_cycle_start 50 debug_cycle_stop 51 # else47 # ifdef SYSTEMC 48 debug_cycle_test = (cycle_stop > cycle_start) or (cycle_stop == -1); 49 debug_cycle_start= cycle_start; 50 debug_cycle_stop = cycle_stop; 51 # else 52 52 debug_cycle_test = false; 53 # endif 53 54 #endif 55 debug_cycle_idle = cycle_idle; 54 56 55 57 debug_initialized = true; 56 58 } 57 #endif58 59 } 59 60
Note: See TracChangeset
for help on using the changeset viewer.