Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/src/Register_Address_Translation_unit_transition.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/src/Register_Address_Translation_unit_transition.cpp
r81 r88 23 23 void Register_Address_Translation_unit::transition (void) 24 24 { 25 log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin"); 25 log_begin(Register_Address_Translation_unit,FUNCTION); 26 log_function(Register_Address_Translation_unit,FUNCTION,_name.c_str()); 26 27 27 28 if (PORT_READ(in_NRESET) == 0) … … 90 91 } 91 92 92 93 // Test if write and have not a previous update 93 // Test if write and have not a previous update 94 94 if (PORT_READ(in_RETIRE_WRITE_RD [i]) == 1) 95 95 { 96 96 Tgeneral_address_t rd_log = PORT_READ(in_RETIRE_NUM_REG_RD_LOG [i]); 97 97 98 log_printf( NONE,Register_Address_Translation_unit,FUNCTION,"retire[%d]",i);99 log_printf( NONE,Register_Address_Translation_unit,FUNCTION,"* front_end_id : %d",front_end_id);100 log_printf( NONE,Register_Address_Translation_unit,FUNCTION,"* context_id : %d",context_id );101 log_printf( NONE,Register_Address_Translation_unit,FUNCTION,"* rd_log : %d",rd_log );98 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * retire[%d]",i); 99 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * front_end_id : %d",front_end_id); 100 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * context_id : %d",context_id ); 101 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * rd_log : %d",rd_log ); 102 102 103 // if (RETIRE_RESTORE_RD_PHY_OLD [i]) 103 104 if (rat_gpr_update_table[front_end_id][context_id][rd_log] == 0) 104 105 { … … 112 113 Tspecial_address_t re_log = PORT_READ(in_RETIRE_NUM_REG_RE_LOG [i]); 113 114 115 // if (RETIRE_RESTORE_RE_PHY_OLD [i]) 114 116 if (rat_spr_update_table[front_end_id][context_id][re_log] == 0) 115 117 { … … 122 124 } 123 125 126 #if (DEBUG >= DEBUG_TRACE) and (DEBUG_Register_Address_Translation_unit == true) 127 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * Dump RAT (Register_Address_Translation_unit)"); 128 for (uint32_t i=0; i<_param->_nb_front_end; ++i) 129 for (uint32_t j=0; j<_param->_nb_context[i]; ++j) 130 { 131 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * front_end[%d].context[%d]",i,j); 132 133 for (uint32_t k=0; k<_param->_nb_general_register_logic; ++k) 134 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * GPR[%.2d] - %.5d %.1d",k,rat_gpr[i][j][k],rat_gpr_update_table[i][j][k]); 135 136 for (uint32_t k=0; k<_param->_nb_special_register_logic; ++k) 137 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * SPR[%.2d] - %.5d %.1d",k,rat_spr[i][j][k],rat_spr_update_table[i][j][k]); 138 } 139 #endif 140 124 141 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 125 142 end_cycle (); 126 143 #endif 127 144 128 log_ printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End");145 log_end(Register_Address_Translation_unit,FUNCTION); 129 146 }; 130 147
Note: See TracChangeset
for help on using the changeset viewer.