Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (15 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

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

    r81 r88  
    2424          {
    2525#ifdef STATISTICS
    26             (*_stat_nb_write) ++;
     26            if (usage_is_set(_usage,USE_STATISTICS))
     27              (*_stat_nb_write) ++;
    2728#endif   
    2829
     
    4950              {
    5051#ifdef STATISTICS
    51                 (*_stat_nb_write) ++;
     52                if (usage_is_set(_usage,USE_STATISTICS))
     53                  (*_stat_nb_write) ++;
    5254#endif   
    5355               
     
    6769            else
    6870              {
    69                 (*_stat_nb_read) ++;
     71                if (usage_is_set(_usage,USE_STATISTICS))
     72                  (*_stat_nb_read) ++;
    7073              }
    7174#endif   
     
    7477
    7578#ifdef STATISTICS
    76     for (uint32_t i=0; i<_param->_nb_port_read; i++)
    77       if ( PORT_READ(in_READ_VAL [i]) == 1)
    78         (*_stat_nb_read) ++;
     79    if (usage_is_set(_usage,USE_STATISTICS))
     80      for (uint32_t i=0; i<_param->_nb_port_read; i++)
     81        if ( PORT_READ(in_READ_VAL [i]) == 1)
     82          (*_stat_nb_read) ++;
    7983#endif   
    8084
Note: See TracChangeset for help on using the changeset viewer.