Ignore:
Timestamp:
Feb 1, 2011, 9:57:54 PM (13 years ago)
Author:
rosiere
Message:

1) Integration of RegisterFile_Internal_Banked in RegisterFile?
2) Erase "read_write" interface in RegisterFile_Monolithic component
3) Add smith predictor parameters in Load_store_pointer_unit.
4) Fix not statistics flags

File:
1 edited

Legend:

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

    r138 r146  
    4040        uint32_t stat_nb_read      =0;
    4141        uint32_t stat_nb_write     =0;
    42         uint32_t stat_nb_read_write=0;
    4342#endif
    4443        for (uint32_t i=0; i<_param->_nb_port_write; i++)
     
    7675              }
    7776          }
    78         for (uint32_t i=0; i<_param->_nb_port_read_write; i++)
    79           {
    80             log_printf(TRACE,RegisterFile,FUNCTION,"  * READ_WRITE [%d] : %d",i,PORT_READ(in_READ_WRITE_VAL[i]));
    81 
    82             // Have a read_write?
    83             if (PORT_READ(in_READ_WRITE_VAL[i]) == true)
    84               {
    85 #ifdef STATISTICS
    86                 stat_nb_read_write++;
    87 #endif
    88 
    89                 if (PORT_READ(in_READ_WRITE_RW [i]) == RW_WRITE)
    90                   {
    91 // #ifdef STATISTICS
    92 //                     if (usage_is_set(_usage,USE_STATISTICS))
    93 //                       (*_stat_nb_write) ++;
    94 // #endif   
    95                    
    96                     Taddress_t address = (_param->_have_port_address)?PORT_READ(in_READ_WRITE_ADDRESS[i]):0;
    97                     Tdata_t    data    = PORT_READ(in_READ_WRITE_WDATA  [i]);
    98                    
    99                     log_printf(TRACE,RegisterFile,FUNCTION,"  * [%d] <- %.8x",static_cast<uint32_t>(address),static_cast<uint32_t>(data));
    100                    
    101 
    102 #ifdef DEBUG_TEST
    103                 if (address >= _param->_nb_word)
    104                   throw ERRORMORPHEO(FUNCTION,toString(_("Address (%d) is invalid (size : %d).\n"),address,_param->_nb_word));
    105 #endif
    106 
    107                     // Write in registerFile
    108                     reg_DATA[address] = data;
    109                   }
    110 // #ifdef STATISTICS
    111 //                 else
    112 //                   {
    113 //                     if (usage_is_set(_usage,USE_STATISTICS))
    114 //                       (*_stat_nb_read) ++;
    115 //                   }
    116 // #endif   
    117               }
    118           }
    119 
    12077       
    12178#ifdef STATISTICS
     
    13390            if (_param->_nb_port_write>0)
    13491            (*_stat_port_write     ) += stat_nb_write;
    135             if (_param->_nb_port_read_write>0)
    136             (*_stat_port_read_write) += stat_nb_read_write;
    13792          }
    13893#endif   
Note: See TracChangeset for help on using the changeset viewer.