Changeset 82 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/src/Branch_Target_Buffer_allocation.cpp
- Timestamp:
- May 1, 2008, 6:48:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/src/Branch_Target_Buffer_allocation.cpp
r81 r82 85 85 ALLOC1_SIGNAL_IN ( in_DECOD_LAST_TAKE ,"last_take" ,Tcontrol_t ,1); 86 86 ALLOC1_SIGNAL_IN ( in_DECOD_MISS_PREDICTION,"miss_prediction",Tcontrol_t ,1); 87 ALLOC1_SIGNAL_IN ( in_DECOD_IS_ACCURATE ,"is_accurate" ,Tcontrol_t ,1); 87 88 } 88 89 … … 111 112 { 112 113 name = _name+"_sort_"+toString(i); 113 std::cout << "Create : " << name << std::endl;114 log_printf(INFO,Prediction_unit,FUNCTION,_("Create : %s"),name.c_str()); 114 115 115 116 _component_sort [i] = new morpheo::behavioural::generic::sort::Sort … … 118 119 ,param_statistics 119 120 #endif 120 ,_param->_param_sort); 121 ,_param->_param_sort 122 ,_usage); 121 123 122 124 _component->set_component (_component_sort [i] ->_component … … 129 131 { 130 132 name = _name+"_victim"; 131 std::cout << "Create : " << name << std::endl;133 log_printf(INFO,Prediction_unit,FUNCTION,_("Create : %s"),name.c_str()); 132 134 133 135 _component_victim = new morpheo::behavioural::generic::victim::Victim … … 136 138 ,param_statistics 137 139 #endif 138 ,_param->_param_victim); 140 ,_param->_param_victim 141 ,_usage); 139 142 140 143 _component->set_component (_component_victim->_component … … 148 151 { 149 152 name = _name+"_glue"; 150 std::cout << "Create : " << name << std::endl;153 log_printf(INFO,Prediction_unit,FUNCTION,_("Create : %s"),name.c_str()); 151 154 152 155 _component_branch_target_buffer_glue = new morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::branch_target_buffer::branch_target_buffer_glue::Branch_Target_Buffer_Glue … … 155 158 ,param_statistics 156 159 #endif 157 ,_param->_param_branch_target_buffer_glue); 160 ,_param->_param_branch_target_buffer_glue 161 ,_usage); 158 162 159 163 _component->set_component (_component_branch_target_buffer_glue->_component … … 166 170 { 167 171 name = _name+"_register"; 168 std::cout << "Create : " << name << std::endl;172 log_printf(INFO,Prediction_unit,FUNCTION,_("Create : %s"),name.c_str()); 169 173 170 174 _component_branch_target_buffer_register = new morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::branch_target_buffer::branch_target_buffer_register::Branch_Target_Buffer_Register … … 173 177 ,param_statistics 174 178 #endif 175 ,_param->_param_branch_target_buffer_register); 179 ,_param->_param_branch_target_buffer_register 180 ,_usage); 176 181 177 182 _component->set_component (_component_branch_target_buffer_register->_component … … 194 199 { 195 200 src = _name+"_sort_"+toString(i); 196 std::cout << "Instance : " << src << std::endl;201 log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str()); 197 202 198 203 { … … 230 235 { 231 236 src = _name+"_victim"; 232 std::cout << "Instance : " << src << std::endl;237 log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str()); 233 238 234 239 { … … 256 261 { 257 262 src = _name+"_glue"; 258 std::cout << "Instance : " << src << std::endl;263 log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str()); 259 264 260 265 { … … 312 317 313 318 COMPONENT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_"+toString(j)+"_REGISTER_HIT" , 314 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+"_HIT" );319 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+ "_HIT" ); 315 320 COMPONENT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_"+toString(j)+"_REGISTER_ADDRESS_SRC" , 316 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+"_ADDRESS_SRC" );321 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+ "_ADDRESS_SRC" ); 317 322 COMPONENT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_"+toString(j)+"_REGISTER_ADDRESS_DEST", 318 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+"_ADDRESS_DEST");323 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+ "_ADDRESS_DEST"); 319 324 COMPONENT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_"+toString(j)+"_REGISTER_CONDITION" , 320 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+"_CONDITION" );325 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+ "_CONDITION" ); 321 326 COMPONENT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_"+toString(j)+"_REGISTER_LAST_TAKE" , 322 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+"_LAST_TAKE" );327 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+ "_LAST_TAKE" ); 323 328 COMPONENT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_"+toString(j)+"_REGISTER_IS_ACCURATE" , 324 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+"_IS_ACCURATE" );329 dest,"out_PREDICT_"+toString(i)+"_"+toString(j)+ "_IS_ACCURATE" ); 325 330 } 326 331 … … 460 465 { 461 466 src = _name+"_register"; 462 std::cout << "Instance : " << src << std::endl;467 log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str()); 463 468 464 469 { … … 519 524 PORT_MAP(_component,src , "in_DECOD_"+toString(i)+"_MISS_PREDICTION", 520 525 dest, "in_DECOD_"+toString(i)+"_MISS_PREDICTION"); 526 PORT_MAP(_component,src , "in_DECOD_"+toString(i)+"_IS_ACCURATE", 527 dest, "in_DECOD_"+toString(i)+"_IS_ACCURATE"); 521 528 522 529 if (_param->_have_component_victim) … … 583 590 } 584 591 // ~~~~~[ Others ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 585 _component->test_map();592 // _component->test_map(); 586 593 587 594 #ifdef POSITION
Note: See TracChangeset
for help on using the changeset viewer.