Ignore:
Timestamp:
Aug 2, 2010, 8:56:05 PM (14 years ago)
Author:
rosiere
Message:

Add statistics in stage IFETCH, DECODE and COMMIT (insert, retire and commit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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  
    5151        // =====[ ADDRESS ]==========================================
    5252        // ==========================================================
     53#ifdef STATISTICS
     54        uint32_t stat_nb_inst_fetch=0;
     55#endif
     56
    5357        if (PORT_READ(in_ADDRESS_VAL) and internal_ADDRESS_ACK)
    5458          {
     
    7074                Tcontrol_t enable = PORT_READ(in_ADDRESS_INSTRUCTION_ENABLE [i]);
    7175#ifdef STATISTICS
    72                 if (usage_is_set(_usage,USE_STATISTICS))
    73                   (*_sum_inst_enable) += enable;
     76                 stat_nb_inst_fetch += enable;
    7477#endif
    7578                _queue[reg_PTR_WRITE]->_instruction_enable [i]      = enable;
     
    8386            reg_PTR_WRITE = (reg_PTR_WRITE+1)%_param->_size_queue;
    8487          }
     88#ifdef STATISTICS
     89        if (usage_is_set(_usage,USE_STATISTICS))
     90          (*_stat_nb_inst_fetch) += stat_nb_inst_fetch;
     91#endif
    8592
    8693        // ==========================================================
Note: See TracChangeset for help on using the changeset viewer.