Ignore:
Timestamp:
May 12, 2010, 7:34:01 PM (14 years ago)
Author:
rosiere
Message:

1) add counters_t type for interface
2) fix in check load in load_store_unit
3) add parameters (but not yet implemented)
4) change environment and add script (distcc_env.sh ...)
5) add warning if an unser change rename flag with l.mtspr instruction
6) ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_transition.cpp

    r131 r138  
    3737    else
    3838      {
     39#ifdef STATISTICS
     40        uint32_t stat_nb_read      =0;
     41        uint32_t stat_nb_write     =0;
     42        uint32_t stat_nb_read_write=0;
     43#endif
    3944        for (uint32_t i=0; i<_param->_nb_port_write; i++)
    4045          {
     
    4550              {
    4651#ifdef STATISTICS
    47                 if (usage_is_set(_usage,USE_STATISTICS))
    48                   (*_stat_nb_write) ++;
    49 #endif   
     52                stat_nb_write++;
     53#endif
     54
     55// #ifdef STATISTICS
     56//                 if (usage_is_set(_usage,USE_STATISTICS))
     57//                   (*_stat_nb_write) ++;
     58// #endif   
    5059
    5160                Taddress_t address = (_param->_have_port_address)?PORT_READ(in_WRITE_ADDRESS[i]):0;
     
    7483            if (PORT_READ(in_READ_WRITE_VAL[i]) == true)
    7584              {
     85#ifdef STATISTICS
     86                stat_nb_read_write++;
     87#endif
     88
    7689                if (PORT_READ(in_READ_WRITE_RW [i]) == RW_WRITE)
    7790                  {
    78 #ifdef STATISTICS
    79                     if (usage_is_set(_usage,USE_STATISTICS))
    80                       (*_stat_nb_write) ++;
    81 #endif   
     91// #ifdef STATISTICS
     92//                     if (usage_is_set(_usage,USE_STATISTICS))
     93//                       (*_stat_nb_write) ++;
     94// #endif   
    8295                   
    8396                    Taddress_t address = (_param->_have_port_address)?PORT_READ(in_READ_WRITE_ADDRESS[i]):0;
     
    95108                    reg_DATA[address] = data;
    96109                  }
    97 #ifdef STATISTICS
    98                 else
    99                   {
    100                     if (usage_is_set(_usage,USE_STATISTICS))
    101                       (*_stat_nb_read) ++;
    102                   }
    103 #endif   
     110// #ifdef STATISTICS
     111//                 else
     112//                   {
     113//                     if (usage_is_set(_usage,USE_STATISTICS))
     114//                       (*_stat_nb_read) ++;
     115//                   }
     116// #endif   
    104117              }
    105118          }
     119
     120       
     121#ifdef STATISTICS
     122        if (usage_is_set(_usage,USE_STATISTICS))
     123          {
     124            for (uint32_t i=0; i<_param->_nb_port_read; i++)
     125              if ( PORT_READ(in_READ_VAL [i]) == 1)
     126                {
     127                  stat_nb_read ++;
     128                  // (*_stat_nb_read) ++;
     129                }
     130
     131            if (_param->_nb_port_read>0)
     132            (*_stat_port_read      ) += stat_nb_read;
     133            if (_param->_nb_port_write>0)
     134            (*_stat_port_write     ) += stat_nb_write;
     135            if (_param->_nb_port_read_write>0)
     136            (*_stat_port_read_write) += stat_nb_read_write;
     137          }
     138#endif   
    106139      }
    107 
    108 #ifdef STATISTICS
    109     if (usage_is_set(_usage,USE_STATISTICS))
    110       for (uint32_t i=0; i<_param->_nb_port_read; i++)
    111         if ( PORT_READ(in_READ_VAL [i]) == 1)
    112           (*_stat_nb_read) ++;
    113 #endif   
    114140
    115141#if defined(DEBUG_RegisterFile_Monolithic) and DEBUG_RegisterFile_Monolithic and (DEBUG >= DEBUG_TRACE)
Note: See TracChangeset for help on using the changeset viewer.