Changeset 123 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction
- Timestamp:
- Jun 8, 2009, 10:43:30 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/src/Direction_Glue.cpp
r112 r123 40 40 41 41 42 #if DEBUG_Direction_Glue == true43 log_printf(INFO,Direction_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str());44 45 std::cout << *param << std::endl;46 #endif42 // #if DEBUG_Direction_Glue == true 43 // log_printf(INFO,Direction_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str()); 44 45 // std::cout << *param << std::endl; 46 // #endif 47 47 48 48 log_printf(INFO,Direction_Glue,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/src/Direction_Glue_genMealy_predict.cpp
r107 r123 26 26 log_function(Direction_Glue,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 30 // std::cout << "Kane (before) " << std::endl; 31 // std::cout << _param << std::endl; 32 // std::cout << _param->_nb_inst_update << std::endl; 33 // std::cout << _param->_nb_inst_predict<< std::endl; 34 // std::cout << "Kane (end) " << std::endl; 35 36 28 37 // constant direction : never / always 29 38 for (uint32_t i=0; i<_param->_nb_inst_predict; i++) … … 31 40 log_printf(TRACE,Direction_Glue,FUNCTION," * PREDICT [%d]",i); 32 41 33 Tcontrol_t direction ;42 Tcontrol_t direction = false; 34 43 35 44 switch (_param->_predictor_scheme) … … 86 95 PORT_WRITE(out_PREDICT_DIRECTION [i], direction); 87 96 } 97 } 98 else 99 { 100 //RESET 101 for (uint32_t i=0; i<_param->_nb_inst_predict; i++) 102 { 103 if (_param->_have_component_meta_predictor) 104 { 105 PORT_WRITE(out_PREDICT_PREDICTOR_VAL [i], 0); 106 PORT_WRITE(out_PREDICT_ACK [i], 0); 107 } 108 } 109 } 88 110 89 111 log_end(Direction_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/src/Direction_Glue_genMealy_update.cpp
r112 r123 26 26 log_function(Direction_Glue,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 for (uint32_t i=0; i<_param->_nb_inst_update; i++) 29 31 { … … 35 37 PORT_WRITE(out_UPDATE_PREDICTOR_PREDICTION_IFETCH [i], PORT_READ(in_UPDATE_PREDICTION_IFETCH [i])); 36 38 } 37 39 } 40 else 41 { 42 // RESET 43 for (uint32_t i=0; i<_param->_nb_inst_update; i++) 44 { 45 PORT_WRITE(out_UPDATE_PREDICTOR_VAL [i], 0); 46 PORT_WRITE(out_UPDATE_ACK [i], 0); 47 } 48 } 49 38 50 log_end(Direction_Glue,FUNCTION); 39 51 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue_genMealy_predict.cpp
r111 r123 27 27 log_function(Meta_Predictor_Glue,FUNCTION,_name.c_str()); 28 28 29 if (PORT_READ(in_NRESET)) 30 { 29 31 for (uint32_t i=0; i<_param->_nb_inst_predict; ++i) 30 32 { … … 89 91 PORT_WRITE(out_PREDICT_DIRECTION [i],direction); 90 92 } 93 } 94 // else 95 // { 96 // } 91 97 92 98 log_end(Meta_Predictor_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue_genMealy_predict_valack.cpp
r111 r123 27 27 log_function(Meta_Predictor_Glue,FUNCTION,_name.c_str()); 28 28 29 if (PORT_READ(in_NRESET)) 30 { 29 31 for (uint32_t i=0; i<_param->_nb_inst_predict; ++i) 30 32 { … … 40 42 41 43 PORT_WRITE(out_PREDICT_ACK [i],ack); 44 } 45 } 46 else 47 { 48 // Reset 49 for (uint32_t i=0; i<_param->_nb_inst_predict; ++i) 50 { 51 for (uint32_t j=0; j<_param->_nb_predictor; ++j) 52 PORT_WRITE(out_PREDICT_PREDICTOR_VAL [j][i],0); 53 PORT_WRITE(out_PREDICT_ACK [i],0); 54 } 42 55 } 43 56 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue_genMealy_update.cpp
r112 r123 27 27 log_function(Meta_Predictor_Glue,FUNCTION,_name.c_str()); 28 28 29 if (PORT_READ(in_NRESET)) 30 { 29 31 for (uint32_t i=0; i<_param->_nb_inst_update; ++i) 30 32 { … … 112 114 } 113 115 } 116 } 117 // else 118 // { 119 // // RESET 120 // } 114 121 115 122 log_end(Meta_Predictor_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue_genMealy_update_valack.cpp
r111 r123 27 27 log_function(Meta_Predictor_Glue,FUNCTION,_name.c_str()); 28 28 29 if (PORT_READ(in_NRESET)) 30 { 29 31 for (uint32_t i=0; i<_param->_nb_inst_update; ++i) 30 32 { … … 40 42 41 43 PORT_WRITE(out_UPDATE_ACK [i],ack); 44 } 45 } 46 else 47 { 48 // RESET 49 for (uint32_t i=0; i<_param->_nb_inst_update; ++i) 50 { 51 for (uint32_t j=0; j<_param->_nb_predictor; ++j) 52 PORT_WRITE(out_UPDATE_PREDICTOR_VAL [j][i],0); 53 PORT_WRITE(out_UPDATE_ACK [i],0); 54 } 42 55 } 43 56 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/src/Two_Level_Branch_Predictor_genMealy_predict.cpp
r119 r123 29 29 log_function(Two_Level_Branch_Predictor,FUNCTION,_name.c_str()); 30 30 31 if (PORT_READ(in_NRESET)) 32 { 31 33 // =================================================================== 32 34 // =====[ PREDICT ]=================================================== … … 95 97 PORT_WRITE(out_PREDICT_HISTORY [i],history ); 96 98 } 99 } 97 100 98 101 log_end(Two_Level_Branch_Predictor,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Direction.cpp
r88 r123 38 38 log_printf(FUNC,Direction,FUNCTION,"Begin"); 39 39 40 #if DEBUG_Direction == true41 log_printf(INFO,Direction,FUNCTION,_("<%s> Parameters"),_name.c_str());40 // #if DEBUG_Direction == true 41 // log_printf(INFO,Direction,FUNCTION,_("<%s> Parameters"),_name.c_str()); 42 42 43 std::cout << *param << std::endl;44 #endif43 // std::cout << *param << std::endl; 44 // #endif 45 45 46 46 log_printf(INFO,Direction,FUNCTION,"Allocation");
Note: See TracChangeset
for help on using the changeset viewer.