- Timestamp:
- Aug 2, 2010, 8:56:05 PM (14 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/include/Decod.h
r139 r141 56 56 #ifdef STATISTICS 57 57 public : Stat * _stat; 58 public : counter _t * _stat_sum_inst_decod;58 public : counters_t * _stat_nb_inst_decod; 59 59 #endif 60 60 -
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 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Ifetch_queue.h
r136 r141 55 55 private : counter_t * _sum_use_queue_error_wait_rsp; 56 56 57 private : counter_t * _sum_inst_enable;58 57 private : counter_t * _sum_transaction_address; 59 58 60 private : counter_t * _average_occupation_bundle; 59 private : counters_t * _stat_nb_inst_fetch; 60 61 61 #endif 62 62 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/src/Ifetch_queue_function_full_assoc_transition.cpp
r136 r141 51 51 // =====[ ADDRESS ]========================================== 52 52 // ========================================================== 53 #ifdef STATISTICS 54 uint32_t stat_nb_inst_fetch=0; 55 #endif 56 53 57 if (PORT_READ(in_ADDRESS_VAL) and internal_ADDRESS_ACK) 54 58 { … … 70 74 Tcontrol_t enable = PORT_READ(in_ADDRESS_INSTRUCTION_ENABLE [i]); 71 75 #ifdef STATISTICS 72 if (usage_is_set(_usage,USE_STATISTICS)) 73 (*_sum_inst_enable) += enable; 76 stat_nb_inst_fetch+=enable; 74 77 #endif 75 78 _queue[reg_PTR_WRITE]->_instruction_enable [i] = enable; … … 83 86 reg_PTR_WRITE = (reg_PTR_WRITE+1)%_param->_size_queue; 84 87 } 88 89 #ifdef STATISTICS 90 if (usage_is_set(_usage,USE_STATISTICS)) 91 (*_stat_nb_inst_fetch)+=stat_nb_inst_fetch; 92 #endif 93 85 94 86 95 // ========================================================== -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/src/Ifetch_queue_function_no_assoc_transition.cpp
r136 r141 51 51 // =====[ ADDRESS ]========================================== 52 52 // ========================================================== 53 #ifdef STATISTICS 54 uint32_t stat_nb_inst_fetch=0; 55 #endif 56 53 57 if (PORT_READ(in_ADDRESS_VAL) and internal_ADDRESS_ACK) 54 58 { … … 70 74 Tcontrol_t enable = PORT_READ(in_ADDRESS_INSTRUCTION_ENABLE [i]); 71 75 #ifdef STATISTICS 72 if (usage_is_set(_usage,USE_STATISTICS)) 73 (*_sum_inst_enable) += enable; 76 stat_nb_inst_fetch += enable; 74 77 #endif 75 78 _queue[reg_PTR_WRITE]->_instruction_enable [i] = enable; … … 83 86 reg_PTR_WRITE = (reg_PTR_WRITE+1)%_param->_size_queue; 84 87 } 88 #ifdef STATISTICS 89 if (usage_is_set(_usage,USE_STATISTICS)) 90 (*_stat_nb_inst_fetch) += stat_nb_inst_fetch; 91 #endif 85 92 86 93 // ========================================================== -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/src/Ifetch_queue_statistics_allocation.cpp
r110 r141 34 34 _sum_use_queue_have_rsp = _stat->create_variable("sum_use_queue_have_rsp"); 35 35 _sum_use_queue_error_wait_rsp = _stat->create_variable("sum_use_queue_error_wait_rsp"); 36 _sum_inst_enable = _stat->create_variable("sum_inst_enable");37 36 38 _average_occupation_bundle = _stat->create_counter ("average_occupation_bundle", "", "Occupation average of instruction's bundle.");39 40 _stat->create_expr ("average_occupation_bundle" ,"/ sum_inst_enable sum_transaction_address");41 _stat->create_expr_percent ("percent_occupation_bundle" ,"average_occupation_bundle", toString(_param->_nb_instruction),"Percent of instruction's bundle occupation.");42 37 _stat->create_expr ("sum_use_queue" ,"+ + sum_use_queue_wait_rsp sum_use_queue_have_rsp sum_use_queue_error_wait_rsp"); 43 38 _stat->create_expr_average_by_cycle("average_use_queue" ,"sum_use_queue" ,"","Average occupation of ifetch queue"); … … 48 43 49 44 _stat->create_expr_average ("average_miss_icache" ,"+ sum_use_queue_wait_rsp sum_use_queue_error_wait_rsp", "sum_transaction_address", "", "Average Miss Instruction Cache"); 45 46 _stat_nb_inst_fetch = _stat->create_counters("nb_inst_fetch",_param->_nb_instruction,"", 47 _("Number bundle with %d instruction(s)."), 48 _("Percent of bundle with %d instruction(s)."), 49 _("Average instruction in a bundle.") 50 ); 50 51 51 52 log_printf(FUNC,Ifetch_queue,FUNCTION,"End");
Note: See TracChangeset
for help on using the changeset viewer.