Changeset 136 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/src/Decod_queue_function_one_fifo_transition.cpp
- Timestamp:
- Oct 20, 2009, 8:52:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/src/Decod_queue_function_one_fifo_transition.cpp
r123 r136 46 46 //-----[ DECOD_IN ]--------------------------------------------------- 47 47 //-------------------------------------------------------------------- 48 { 48 49 decod_queue_entry_t * entry = NULL; 50 51 #ifdef STATISTICS 52 uint32_t nb_decod_in = 0; 53 #endif 54 49 55 for (uint32_t i=0; i<_param->_nb_inst_decod; i++) 50 56 { … … 58 64 entry = new decod_queue_entry_t (_param->_nb_inst_decod); 59 65 reg_QUEUE->push_back(entry); 60 61 #ifdef STATISTICS62 if (usage_is_set(_usage,USE_STATISTICS))63 (*_stat_sum_transaction_decod_in) ++;64 #endif65 66 } 66 67 67 68 #ifdef STATISTICS 68 if (usage_is_set(_usage,USE_STATISTICS)) 69 (*_stat_sum_inst_enable) ++; 69 nb_decod_in ++; 70 70 #endif 71 71 … … 106 106 } 107 107 } 108 109 #ifdef STATISTICS 110 if (usage_is_set(_usage,USE_STATISTICS)) 111 { 112 if (nb_decod_in > 0) 113 { 114 if (nb_decod_in == _param->_nb_inst_decod) 115 (*_stat_decode_in_full) ++; 116 else 117 (*_stat_decode_in_average) += nb_decod_in; 118 } 119 else 120 { 121 (*_stat_decode_in_empty) ++; 122 } 123 } 124 #endif 125 } 108 126 109 127 //-------------------------------------------------------------------- … … 217 235 if (usage_is_set(_usage,USE_STATISTICS)) 218 236 { 219 *(_stat_use_queue) += reg_QUEUE->size();237 (*_stat_use_queue) += reg_QUEUE->size(); 220 238 for (uint32_t i=0; i<_param->_nb_context; i++) 221 *(_stat_nb_inst [i]) += reg_NB_INST [i];239 (*_stat_nb_inst [i]) += reg_NB_INST [i]; 222 240 } 223 241 #endif
Note: See TracChangeset
for help on using the changeset viewer.