Changeset 146 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_transition.cpp
- Timestamp:
- Feb 1, 2011, 9:57:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_transition.cpp
r138 r146 40 40 uint32_t stat_nb_read =0; 41 41 uint32_t stat_nb_write =0; 42 uint32_t stat_nb_read_write=0;43 42 #endif 44 43 for (uint32_t i=0; i<_param->_nb_port_write; i++) … … 76 75 } 77 76 } 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 STATISTICS86 stat_nb_read_write++;87 #endif88 89 if (PORT_READ(in_READ_WRITE_RW [i]) == RW_WRITE)90 {91 // #ifdef STATISTICS92 // if (usage_is_set(_usage,USE_STATISTICS))93 // (*_stat_nb_write) ++;94 // #endif95 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_TEST103 if (address >= _param->_nb_word)104 throw ERRORMORPHEO(FUNCTION,toString(_("Address (%d) is invalid (size : %d).\n"),address,_param->_nb_word));105 #endif106 107 // Write in registerFile108 reg_DATA[address] = data;109 }110 // #ifdef STATISTICS111 // else112 // {113 // if (usage_is_set(_usage,USE_STATISTICS))114 // (*_stat_nb_read) ++;115 // }116 // #endif117 }118 }119 120 77 121 78 #ifdef STATISTICS … … 133 90 if (_param->_nb_port_write>0) 134 91 (*_stat_port_write ) += stat_nb_write; 135 if (_param->_nb_port_read_write>0)136 (*_stat_port_read_write) += stat_nb_read_write;137 92 } 138 93 #endif
Note: See TracChangeset
for help on using the changeset viewer.