Changeset 104 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_genMealy_retire.cpp
- Timestamp:
- Jan 21, 2009, 10:53:13 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_genMealy_retire.cpp
r88 r104 43 43 44 44 // init -> need't restore old value 45 Tcontrol_t retire_restore_rd_phy_old = false; 46 Tcontrol_t retire_restore_re_phy_old = false; 47 Tevent_state_t event_state = PORT_READ(in_RETIRE_EVENT_STATE [i]); 45 Tcontrol_t retire_restore_rd_phy_old = false; 46 Tcontrol_t retire_restore_re_phy_old = false; 47 48 Tcontext_t front_end_id = (_param->_have_port_front_end_id)?PORT_READ(in_RETIRE_FRONT_END_ID [i]):0; 49 Tcontext_t context_id = (_param->_have_port_context_id )?PORT_READ(in_RETIRE_CONTEXT_ID [i]):0; 48 50 49 51 // Test if event -> need restore ? 50 if ( event_state!= EVENT_STATE_NO_EVENT)52 if (PORT_READ(in_RETIRE_EVENT_STATE [front_end_id][context_id]) != EVENT_STATE_NO_EVENT) 51 53 { 52 Tcontext_t front_end_id = (_param->_have_port_front_end_id)?PORT_READ(in_RETIRE_FRONT_END_ID [i]):0;53 Tcontext_t context_id = (_param->_have_port_context_id )?PORT_READ(in_RETIRE_CONTEXT_ID [i]):0;54 55 54 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * Have event"); 56 55 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * front_end_id : %d",front_end_id); 57 56 log_printf(TRACE,Register_Address_Translation_unit,FUNCTION," * context_id : %d",context_id ); 58 57 59 // Test if event have just occure -> reset update_table60 if (event_state == EVENT_STATE_EVENT)61 {62 // Reset update_table63 for (uint32_t j=0; j<_param->_nb_general_register_logic; j++)64 internal_rat_gpr_update_table[front_end_id][context_id][j] = 0;65 for (uint32_t j=0; j<_param->_nb_special_register_logic; j++)66 internal_rat_spr_update_table[front_end_id][context_id][j] = 0;67 }68 69 58 // Test and update update table 70 59 if (PORT_READ(in_RETIRE_WRITE_RD [i]))
Note: See TracChangeset
for help on using the changeset viewer.