Ignore:
Timestamp:
Aug 4, 2010, 10:09:03 PM (14 years ago)
Author:
rosiere
Message:

1) Full parallel compilation
2) Add statistics in ROB : list instruction affinity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src/Commit_unit_statistics_allocation.cpp

    r141 r142  
    88
    99#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/include/Commit_unit.h"
     10#include "Behavioural/include/Allocation.h"
    1011
    1112namespace morpheo {
     
    169170      {
    170171        _stat_nb_inst_insert [i] = _stat->create_counters("nb_inst_insert_"+toString(i),_param->_nb_inst_insert[i],"",
    171                                                              _("Cycle number with %d instruction(s) included ")+toString(_("(rename_unit %d)."),i),
    172                                                              _("Percent of cycle number with %d instruction(s) included ")+toString(_("(rename_unit %d)."),i),
    173                                                              _("Average of instruction(s) included ")+toString(_("(rename_unit %d)."),i)
    174                                                              );
     172                                                          _("Cycle number with %d instruction(s) included ")+toString(_("(rename_unit %d)."),i),
     173                                                          _("Percent of cycle number with %d instruction(s) included ")+toString(_("(rename_unit %d)."),i),
     174                                                          _("Average of instruction(s) included ")+toString(_("(rename_unit %d)."),i)
     175                                                          );
    175176       
    176177        _stat_nb_inst_retire [i] = _stat->create_counters("nb_inst_retire_"+toString(i),_param->_nb_inst_retire[i],"",
    177                                                              _("Cycle number with %d instruction(s) removed ")+toString(_("(rename_unit %d)."),i),
    178                                                              _("Percent of cycle number with %d instruction(s) removed ")+toString(_("(rename_unit %d)."),i),
    179                                                              _("Average of instruction(s) removed ")+toString(_("(rename_unit %d)."),i)
    180                                                              );
     178                                                          _("Cycle number with %d instruction(s) removed ")+toString(_("(rename_unit %d)."),i),
     179                                                          _("Percent of cycle number with %d instruction(s) removed ")+toString(_("(rename_unit %d)."),i),
     180                                                          _("Average of instruction(s) removed ")+toString(_("(rename_unit %d)."),i)
     181                                                          );
    181182       
    182183        _stat_nb_inst_commit [i] = _stat->create_counters("nb_inst_commit_"+toString(i),_param->_nb_inst_commit,"",
    183                                                              _("Cycle number with %d instruction(s) commited ")+toString(_("(rename_unit %d)."),i),
    184                                                              _("Percent of cycle number with %d instruction(s) commited ")+toString(_("(rename_unit %d)."),i),
    185                                                              _("Average of instruction(s) commited "+toString(_("(rename_unit %d)."),i))
    186                                                              );
     184                                                          _("Cycle number with %d instruction(s) commited ")+toString(_("(rename_unit %d)."),i),
     185                                                          _("Percent of cycle number with %d instruction(s) commited ")+toString(_("(rename_unit %d)."),i),
     186                                                          _("Average of instruction(s) commited ")+toString(_("(rename_unit %d)."),i)
     187                                                          );
    187188
    188189        average_nb_inst_commit = "+ average_nb_inst_commit_"+toString(i) + " " + average_nb_inst_commit;
     
    192193    _stat->create_expr_average_by_cycle("average_use_interface_commit_conflit_access","nb_inst_commit_conflit_access", "", _("Average access conflit by cycle on commit interface"));
    193194    _stat->create_expr_percent         ("percent_use_interface_commit_conflit_access","average_use_interface_commit_conflit_access", average_nb_inst_commit, _("Percent access conflit on commit interface"));
     195
     196
     197//  ALLOC1(_stat_last_inst          ,uint32_t          ,_param->_nb_thread);
     198    ALLOC1(_stat_last_inst_type     ,uint32_t          ,_param->_nb_thread);
     199    ALLOC1(_stat_last_inst_operation,uint32_t          ,_param->_nb_thread);
     200    ALLOC1(_stat_inst_fusion        ,stat_inst_fusion_t,_param->_nb_thread);
     201
     202    for (uint32_t i=0; i<_param->_nb_thread; ++i)
     203      {
     204      //_stat_last_inst           [i] = INSTRUCTION_L_NOP;
     205        _stat_last_inst_type      [i] = instruction_information(INSTRUCTION_L_NOP)._type     ;
     206        _stat_last_inst_operation [i] = instruction_information(INSTRUCTION_L_NOP)._operation;
     207      }
    194208
    195209    log_end(Commit_unit,FUNCTION);
Note: See TracChangeset for help on using the changeset viewer.