Changeset 141 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src
- Timestamp:
- Aug 2, 2010, 8:56:05 PM (14 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Decod_statistics_allocation.cpp
r110 r141 28 28 param_statistics); 29 29 30 _stat_ sum_inst_decod = _stat->create_variable("sum_inst_decod");31 32 33 _stat->create_expr_average_by_cycle ("average_nb_inst_decod","sum_inst_decod","","Average of decod instruction by cycle");34 _stat->create_expr_percent ("percent_nb_inst_decod","average_nb_inst_decod", toString(_param->_nb_inst_decod), "Percent of decod instruction by cycle");30 _stat_nb_inst_decod = _stat->create_counters("nb_inst_decod",_param->_nb_inst_decod,"", 31 _("Cycle number with %d decoded instruction(s)."), 32 _("Percent of cycle number with %d decoded instruction(s)."), 33 _("Average of decoded instructions.") 34 ); 35 35 36 36 log_printf(FUNC,Decod,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Decod_transition.cpp
r139 r141 53 53 #ifdef STATISTICS 54 54 if (usage_is_set(_usage,USE_STATISTICS)) 55 for (uint32_t i=0; i<_param->_nb_inst_decod; i++) 56 if (internal_DECOD_VAL [i] and PORT_READ(in_DECOD_ACK[i])) 57 (*_stat_sum_inst_decod) ++; 55 { 56 uint32_t stat_nb_inst_decod = 0; 57 for (uint32_t i=0; i<_param->_nb_inst_decod; i++) 58 if (internal_DECOD_VAL [i] and PORT_READ(in_DECOD_ACK[i])) 59 stat_nb_inst_decod ++; 60 (*_stat_nb_inst_decod) += stat_nb_inst_decod; 61 } 58 62 #endif 59 63 }
Note: See TracChangeset
for help on using the changeset viewer.