Changeset 123 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/src
- 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/Direction_Glue/src
- Files:
-
- 3 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 };
Note: See TracChangeset
for help on using the changeset viewer.