Changeset 123 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Reexecute_unit/src
- Timestamp:
- Jun 8, 2009, 10:43:30 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Reexecute_unit/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Reexecute_unit/src/Reexecute_unit.cpp
r88 r123 39 39 usage_environment(_usage); 40 40 41 #if DEBUG_Reexecute_unit == true42 log_printf(INFO,Reexecute_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());41 // #if DEBUG_Reexecute_unit == true 42 // log_printf(INFO,Reexecute_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); 43 43 44 std::cout << *param << std::endl;45 #endif44 // std::cout << *param << std::endl; 45 // #endif 46 46 47 47 log_printf(INFO,Reexecute_unit,FUNCTION,_("<%s> : Allocation"),_name.c_str()); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Reexecute_unit/src/Reexecute_unit_genMealy_commit.cpp
r117 r123 23 23 log_function(Reexecute_unit,FUNCTION,_name.c_str()); 24 24 25 if (PORT_READ(in_NRESET)) 26 { 25 27 // Initialisation 26 28 Tcontrol_t execute_loop_ack [_param->_nb_execute_loop][_param->_max_nb_inst_execute]; … … 126 128 for (uint32_t j=0; j<_param->_nb_inst_execute [i]; ++j) 127 129 PORT_WRITE(out_EXECUTE_LOOP_ACK [i][j], execute_loop_ack [i][j]); 130 } 131 else 132 { 133 #ifdef STATISTICS 134 for (uint32_t i=0; i<_param->_nb_inst_commit; ++i) 135 internal_COMMIT_VAL [i] = 0; 136 #endif 137 for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) 138 for (uint32_t j=0; j<_param->_nb_inst_execute [i]; ++j) 139 PORT_WRITE(out_EXECUTE_LOOP_ACK [i][j], 0); 140 } 128 141 129 142 log_end(Reexecute_unit,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Reexecute_unit/src/Reexecute_unit_genMealy_reexecute.cpp
r122 r123 24 24 log_function(Reexecute_unit,FUNCTION,_name.c_str()); 25 25 26 if (PORT_READ(in_NRESET)) 27 { 26 28 // =================================================================== 27 29 // =====[ REEXECUTE ]================================================= … … 94 96 internal_REEXECUTE_VAL [i] = val; 95 97 internal_REEXECUTE_ROB_ACK [i] = ack; 98 } 99 } 100 else 101 { 102 for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++) 103 { 104 internal_REEXECUTE_VAL [i] = 0; 105 internal_REEXECUTE_ROB_ACK [i] = 0; 106 } 107 } 96 108 109 for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++) 110 { 97 111 PORT_WRITE(out_REEXECUTE_VAL [i], internal_REEXECUTE_VAL [i]); 98 112 PORT_WRITE(out_REEXECUTE_ROB_ACK [i], internal_REEXECUTE_ROB_ACK [i]); 99 113 } 100 101 114 log_end(Reexecute_unit,FUNCTION); 102 115 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Reexecute_unit/src/Reexecute_unit_genMoore.cpp
r98 r123 24 24 log_function(Reexecute_unit,FUNCTION,_name.c_str()); 25 25 26 if (PORT_READ(in_NRESET)) 27 { 26 28 // =================================================================== 27 29 // =====[ SPR ]======================================================= … … 47 49 48 50 internal_SPR_VAL [i] = val; 51 } 52 } 53 else 54 { 55 //Reset 56 for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++) 57 internal_SPR_VAL [i] = 0; 58 } 59 60 // Write output 61 for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++) 62 { 49 63 PORT_WRITE(out_SPR_VAL [i], internal_SPR_VAL [i]); 50 64 }
Note: See TracChangeset
for help on using the changeset viewer.