Ignore:
Timestamp:
Feb 16, 2010, 1:35:48 PM (14 years ago)
Author:
rosiere
Message:

Various modif (add test, and vhdl)

File:
1 edited

Legend:

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

    r136 r137  
    252252                      entry->rename_unit_id          = x;
    253253                      entry->depth                   = (_param->_have_port_depth)?PORT_READ(in_INSERT_DEPTH [x][y]):0;
     254#ifdef STATISTICS
     255                      entry->instruction             = PORT_READ(in_INSERT_INSTRUCTION           [x][y]);
     256#endif
    254257                      entry->type                    = type;
    255258                      entry->operation               = operation;
     
    266269                      entry->num_reg_ra_log          = PORT_READ(in_INSERT_NUM_REG_RA_LOG        [x][y]);
    267270                      entry->num_reg_ra_phy          = PORT_READ(in_INSERT_NUM_REG_RA_PHY        [x][y]);
     271#endif
    268272                      entry->read_rb                 = PORT_READ(in_INSERT_READ_RB               [x][y]);
     273#ifdef DEBUG
    269274                      entry->num_reg_rb_log          = PORT_READ(in_INSERT_NUM_REG_RB_LOG        [x][y]);
    270275                      entry->num_reg_rb_phy          = PORT_READ(in_INSERT_NUM_REG_RB_PHY        [x][y]);
     
    287292#ifdef DEBUG       
    288293                      entry->address                 = PORT_READ(in_INSERT_ADDRESS               [x][y]);
    289 #else
    290                       entry->address                 = 0; // not necessary
    291294#endif               
    292295                      entry->address_next            = PORT_READ(in_INSERT_ADDRESS_NEXT          [x][y]);
     
    823826                        if (retire_ok)
    824827                          {
    825                             (*_stat_nb_inst_retire_ok [num_thread]) ++;
    826                             (*_stat_nb_inst_type      [type]      ) ++;
     828                            uint32_t instruction = entry->instruction;
     829
     830                            (*_stat_nb_inst_retire_ok   [num_thread] ) ++;
     831                            (*_stat_nb_inst_instruction [instruction]) ++;
     832                            (*_stat_nb_inst_type        [type]       ) ++;
    827833                          }
    828834                        else
     
    10481054                      // Read information
    10491055                      rob_state_t  state        = entry->state;
    1050                       Tdepth_t     depth        = entry->depth;
    1051                      
    1052                       Tdepth_t     depth_min    = (_param->_have_port_depth)?PORT_READ(in_DEPTH_MIN[front_end_id][context_id]):0;
    1053                       Tdepth_t     depth_max    = (_param->_have_port_depth)?PORT_READ(in_DEPTH_MAX[front_end_id][context_id]):0;
    1054                       Tcontrol_t   depth_full   = PORT_READ(in_DEPTH_FULL [front_end_id][context_id]);
     1056//                       Tdepth_t     depth        = entry->depth;
     1057                     
     1058//                       Tdepth_t     depth_min    = (_param->_have_port_depth)?PORT_READ(in_DEPTH_MIN[front_end_id][context_id]):0;
     1059//                       Tdepth_t     depth_max    = (_param->_have_port_depth)?PORT_READ(in_DEPTH_MAX[front_end_id][context_id]):0;
     1060//                       Tcontrol_t   depth_full   = PORT_READ(in_DEPTH_FULL [front_end_id][context_id]);
    10551061                     
    10561062                      // is a valid instruction ?
     
    10881094                     
    10891095                      log_printf(TRACE,Commit_unit,FUNCTION,"    * is_valid        : %d ((depth == depth_min) and not flush)",is_valid);
    1090                       log_printf(TRACE,Commit_unit,FUNCTION,"    * depth           : %d",depth    );
    1091                       log_printf(TRACE,Commit_unit,FUNCTION,"    * depth_min       : %d",depth_min);
    1092                       log_printf(TRACE,Commit_unit,FUNCTION,"    * depth_max       : %d",depth_max);
    1093                       log_printf(TRACE,Commit_unit,FUNCTION,"    * depth_full      : %d",depth_full);
     1096//                       log_printf(TRACE,Commit_unit,FUNCTION,"    * depth           : %d",depth    );
     1097//                       log_printf(TRACE,Commit_unit,FUNCTION,"    * depth_min       : %d",depth_min);
     1098//                       log_printf(TRACE,Commit_unit,FUNCTION,"    * depth_max       : %d",depth_max);
     1099//                       log_printf(TRACE,Commit_unit,FUNCTION,"    * depth_full      : %d",depth_full);
    10941100                      log_printf(TRACE,Commit_unit,FUNCTION,"    * speculative     : %d",speculative);
    10951101                      log_printf(TRACE,Commit_unit,FUNCTION,"    * flush           : %d",flush);
Note: See TracChangeset for help on using the changeset viewer.