Ignore:
Timestamp:
May 1, 2008, 6:48:45 PM (16 years ago)
Author:
rosiere
Message:
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
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  
    8585      ALLOC1_SIGNAL_IN ( in_DECOD_LAST_TAKE      ,"last_take"      ,Tcontrol_t         ,1);
    8686      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);
    8788    }
    8889
     
    111112          {
    112113            name = _name+"_sort_"+toString(i);
    113             std::cout << "Create   : " << name << std::endl;
     114            log_printf(INFO,Prediction_unit,FUNCTION,_("Create   : %s"),name.c_str());
    114115           
    115116            _component_sort [i] = new morpheo::behavioural::generic::sort::Sort
     
    118119               ,param_statistics
    119120#endif
    120                ,_param->_param_sort);
     121               ,_param->_param_sort
     122               ,_usage);
    121123           
    122124            _component->set_component (_component_sort [i] ->_component
     
    129131        {
    130132          name = _name+"_victim";
    131           std::cout << "Create   : " << name << std::endl;
     133          log_printf(INFO,Prediction_unit,FUNCTION,_("Create   : %s"),name.c_str());
    132134         
    133135          _component_victim = new morpheo::behavioural::generic::victim::Victim
     
    136138             ,param_statistics
    137139#endif
    138              ,_param->_param_victim);
     140             ,_param->_param_victim
     141             ,_usage);
    139142         
    140143          _component->set_component (_component_victim->_component
     
    148151    {
    149152      name = _name+"_glue";
    150       std::cout << "Create   : " << name << std::endl;
     153      log_printf(INFO,Prediction_unit,FUNCTION,_("Create   : %s"),name.c_str());
    151154     
    152155      _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
     
    155158         ,param_statistics
    156159#endif
    157          ,_param->_param_branch_target_buffer_glue);
     160         ,_param->_param_branch_target_buffer_glue
     161         ,_usage);
    158162     
    159163      _component->set_component (_component_branch_target_buffer_glue->_component
     
    166170    {
    167171      name = _name+"_register";
    168       std::cout << "Create   : " << name << std::endl;
     172      log_printf(INFO,Prediction_unit,FUNCTION,_("Create   : %s"),name.c_str());
    169173     
    170174      _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
     
    173177         ,param_statistics
    174178#endif
    175          ,_param->_param_branch_target_buffer_register);
     179         ,_param->_param_branch_target_buffer_register
     180         ,_usage);
    176181     
    177182      _component->set_component (_component_branch_target_buffer_register->_component
     
    194199        {
    195200          src = _name+"_sort_"+toString(i);
    196           std::cout << "Instance : " << src << std::endl;
     201          log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str());
    197202         
    198203          {
     
    230235        {
    231236          src = _name+"_victim";
    232           std::cout << "Instance : " << src << std::endl;
     237          log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str());
    233238         
    234239          {
     
    256261    {
    257262      src = _name+"_glue";
    258       std::cout << "Instance : " << src << std::endl;
     263      log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str());
    259264     
    260265      {
     
    312317
    313318            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"         );
    315320            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" );
    317322            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");
    319324            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"   );
    321326            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"   );
    323328            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" );
    325330          }
    326331
     
    460465    {
    461466      src = _name+"_register";
    462       std::cout << "Instance : " << src << std::endl;
     467      log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str());
    463468     
    464469      {
     
    519524        PORT_MAP(_component,src , "in_DECOD_"+toString(i)+"_MISS_PREDICTION",
    520525                            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");
    521528
    522529        if (_param->_have_component_victim)
     
    583590    }
    584591    // ~~~~~[ Others ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    585      _component->test_map();
     592//      _component->test_map();
    586593
    587594#ifdef POSITION
Note: See TracChangeset for help on using the changeset viewer.