Changeset 113 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Execute_queue.cpp
- Timestamp:
- Apr 14, 2009, 8:39:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Execute_queue.cpp
r88 r113 35 35 _name (name) 36 36 ,_param (param) 37 ,_usage (usage)38 37 { 39 log_ printf(FUNC,Execute_queue,FUNCTION,"Begin");38 log_begin(Execute_queue,FUNCTION); 40 39 41 #if DEBUG_Execute_queue == true 42 log_printf(INFO,Execute_queue,FUNCTION,_("<%s> Parameters"),_name.c_str()); 40 _usage = usage_environment(usage); 43 41 44 std::cout << *param << std::endl; 45 #endif 42 // #if DEBUG_Execute_queue == true 43 // log_printf(INFO,Execute_queue,FUNCTION,_("<%s> Parameters"),_name.c_str()); 46 44 47 log_printf(INFO,Execute_queue,FUNCTION,"Allocation"); 45 // std::cout << *param << std::endl; 46 // #endif 47 48 #ifdef MODELSIM_COSIMULATION 49 { 50 std::string param_id = param->id(); 51 52 if ((_model.get_type(_param->_type) == MODEL_VHDL) and 53 (param_id != "") 54 ) 55 { 56 std::string vhdl_id = vhdl_get_id(_name); 57 58 if (vhdl_id == param_id) 59 { 60 msgInformation(_("<%s> Use VHDL model\n"),_name.c_str()); 61 _usage = usage_cosimulation(_usage); 62 } 63 else 64 { 65 log_printf(TRACE,Execute_queue,FUNCTION,"get_id : %s",vhdl_id.c_str()); 66 log_printf(TRACE,Execute_queue,FUNCTION,"id : %s",param_id.c_str()); 67 68 msgWarning(_("<%s> Can't load VHDL model, continue with SystemC model\n"),_name.c_str()); 69 } 70 } 71 } 72 #endif 73 74 log_printf(INFO,Execute_queue,FUNCTION,_("<%s> Allocation"),_name.c_str()); 48 75 allocation (); 49 76 … … 51 78 if (usage_is_set(_usage,USE_STATISTICS)) 52 79 { 53 log_printf(INFO,Execute_queue,FUNCTION, "Allocation of statistics");80 log_printf(INFO,Execute_queue,FUNCTION,("<%s> Allocation of statistics"),_name.c_str()); 54 81 55 82 statistics_declaration(param_statistics); … … 61 88 { 62 89 // generate the vhdl 63 log_printf(INFO,Execute_queue,FUNCTION, "Generate the vhdl");90 log_printf(INFO,Execute_queue,FUNCTION,_("<%s> Generate the vhdl"),_name.c_str()); 64 91 65 92 vhdl(); … … 68 95 69 96 #ifdef SYSTEMC 70 if (usage_is_set(_usage,USE_SYSTEMC ))97 if (usage_is_set(_usage,USE_SYSTEMC_BODY)) 71 98 { 72 log_printf(INFO,Execute_queue,FUNCTION, "Method - transition");99 log_printf(INFO,Execute_queue,FUNCTION,_("<%s> Method - transition"),_name.c_str()); 73 100 74 101 SC_METHOD (transition); … … 80 107 # endif 81 108 82 log_printf(INFO,Execute_queue,FUNCTION, "Method - genMoore");109 log_printf(INFO,Execute_queue,FUNCTION,_("<%s> Method - genMoore"),_name.c_str()); 83 110 84 111 SC_METHOD (genMoore); … … 89 116 // List dependency information 90 117 # endif 91 118 } 92 119 #endif 93 } 94 log_printf(FUNC,Execute_queue,FUNCTION,"End"); 120 log_end(Execute_queue,FUNCTION); 95 121 }; 96 122 … … 99 125 Execute_queue::~Execute_queue (void) 100 126 { 101 log_ printf(FUNC,Execute_queue,FUNCTION,"Begin");127 log_begin(Execute_queue,FUNCTION); 102 128 103 129 #ifdef STATISTICS 104 130 if (usage_is_set(_usage,USE_STATISTICS)) 105 131 { 106 log_printf(INFO,Execute_queue,FUNCTION, "Generate Statistics file");132 log_printf(INFO,Execute_queue,FUNCTION,_("<%s> Generate Statistics file"),_name.c_str()); 107 133 108 134 delete _stat; … … 110 136 #endif 111 137 112 log_printf(INFO,Execute_queue,FUNCTION, "Deallocation");138 log_printf(INFO,Execute_queue,FUNCTION,_("<%s> Deallocation"),_name.c_str()); 113 139 deallocation (); 114 140 115 log_ printf(FUNC,Execute_queue,FUNCTION,"End");141 log_end(Execute_queue,FUNCTION); 116 142 }; 117 143
Note: See TracChangeset
for help on using the changeset viewer.