Changeset 129 for trunk/IPs/systemC/processor/Morpheo/Common
- Timestamp:
- Jun 29, 2009, 6:38:40 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Common/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/Debug.h
r118 r129 81 81 debug_init(); \ 82 82 \ 83 if (debug_test_simulation_time) \ 84 if ((debug == DEBUG_ALL ) or \ 85 (DEBUG_ ## level == DEBUG_NONE) or \ 86 (( DEBUG_ ## level <= debug) and \ 87 ( morpheo::behavioural::_model.get_debug(NAME_ ## component))) ) \ 88 { \ 89 if (DEBUG_ ## level <= DEBUG_INFO) \ 90 { \ 91 msg("%s ",MSG_INFORMATION); \ 92 } \ 93 else \ 94 { \ 95 msg("%s ",MSG_DEBUG); \ 96 } \ 83 if (debug_test_simulation_time and \ 84 ((debug == DEBUG_ALL ) or \ 85 (( DEBUG_ ## level <= debug) and \ 86 ( morpheo::behavioural::_model.get_debug(NAME_ ## component))))) \ 87 { \ 88 if (DEBUG_ ## level <= DEBUG_INFO) \ 89 { \ 90 msg("%s ",MSG_INFORMATION); \ 91 } \ 92 else \ 93 { \ 94 msg("%s ",MSG_DEBUG); \ 95 } \ 97 96 \ 98 if (debug >= DEBUG_ALL ) \ 99 { \ 100 switch (DEBUG_ ## level) \ 101 { \ 102 case DEBUG_NONE : msg(_("(none ) ")); break; \ 103 case DEBUG_INFO : msg(_("(information) ")); break; \ 104 case DEBUG_TRACE : msg(_("(trace ) ")); break; \ 105 case DEBUG_FUNC : msg(_("(function ) ")); break; \ 106 case DEBUG_ALL : msg(_("(all ) ")); break; \ 107 default : msg(_("(undefine ) ")); break; \ 108 } \ 109 } \ 110 if (debug >= DEBUG_FUNC) \ 111 { \ 112 msg( "<%s> " ,func); \ 113 msg(_("In file %s, "),__FILE__); \ 114 msg(_("at line %d " ),__LINE__); \ 115 msg( ": " ); \ 116 } \ 117 msg(str); \ 118 msg("\n"); \ 119 } \ 97 if (debug >= DEBUG_FUNC) \ 98 { \ 99 msg( "<%s> " ,func); \ 100 msg(_("In file %s, "),__FILE__); \ 101 msg(_("at line %d " ),__LINE__); \ 102 msg( ": " ); \ 103 } \ 104 msg(str); \ 105 msg("\n"); \ 106 } \ 120 107 } while(0) 121 108 -
trunk/IPs/systemC/processor/Morpheo/Common/include/Types.h
r88 r129 10 10 11 11 #include <stdint.h> 12 #include "Behavioural/include/Debug_signal.h" 12 13 13 14 namespace morpheo { … … 41 42 # define SC_OUT(type) sc_out <type > 42 43 43 # define PORT_READ(sig) sig->read()44 # define PORT_WRITE(sig,val) sig->write(val)44 # define PORT_READ(sig) sig->read() 45 # define PORT_WRITE(sig,val) do {DEBUG_SIGNAL_ACCESS(sig); sig->write(val);} while(0) 45 46 //#define INTERNAL_READ(sig) (*sig) 46 47 //#define INTERNAL_WRITE(sig,val) (*sig) = val
Note: See TracChangeset
for help on using the changeset viewer.