- Timestamp:
- Feb 1, 2011, 9:57:54 PM (14 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/include/Configuration.h
r97 r146 35 35 36 36 private : Parameters * _param; 37 #ifdef STATISTICS 37 38 private : morpheo::behavioural::Parameters_Statistics * _param_statistics; 38 39 #endif 39 40 private : Tusage_t _usage; 40 41 … … 50 51 public : Tusage_t getUsage (void); 51 52 public : Parameters * getParam (void); 53 #ifdef STATISTICS 52 54 public : morpheo::behavioural::Parameters_Statistics * getParamStatistics (void); 53 55 #endif 54 56 public : void toFile (std::string dirname="."); 55 57 public : friend std::ostream& operator<< (std::ostream& output, -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/include/Parameters.h
r139 r146 87 87 public : uint32_t ** _lsu_pht_size_counter ;//[nb_load_store_unit][1] 88 88 public : uint32_t ** _lsu_pht_nb_counter ;//[nb_load_store_unit][1] 89 public : Tpht_scheme_t ** _lsu_pht_scheme ;//[nb_load_store_unit][1] 89 90 public : uint32_t * _nb_bypass_memory ;//[nb_load_store_unit] 90 91 public : uint32_t * _nb_cache_port ;//[nb_load_store_unit] … … 126 127 public : uint32_t ** _dir_pht_nb_counter ;//[nb_front_end][3] 127 128 public : uint32_t ** _dir_pht_size_address_share ;//[nb_front_end][3] 129 public : Tpht_scheme_t ** _dir_pht_scheme ;//[nb_front_end][3] 128 130 129 131 // OOO_Engine -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Configuration.cpp
r138 r146 82 82 std::cout << header(); 83 83 84 #ifdef STATISTICS 84 85 //-------------------------------------------------- 85 86 // Parameters_Statistics … … 87 88 _param_statistics = new Parameters_Statistics (fromString<uint64_t>(_simulator->getParam("statistics_cycle_start")), 88 89 fromString<uint64_t>(_simulator->getParam("statistics_period"))); 90 #endif 89 91 90 92 //-------------------------------------------------- … … 133 135 delete _instance; 134 136 // simulation_destroy(); 137 #ifdef STATISTICS 135 138 delete _param_statistics; 139 #endif 136 140 137 141 log_end(Configuration,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Configuration_getParamStatistics.cpp
r88 r146 1 #ifdef STATISTICS 1 2 /* 2 3 * $Id$ … … 22 23 }; // end namespace behavioural 23 24 }; // end namespace morpheo 25 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Instance.cpp
r139 r146 116 116 DELETE1(_param->_nb_inst_issue ,_param->_nb_ooo_engine); 117 117 DELETE1(_param->_nb_rename_unit ,_param->_nb_ooo_engine); 118 DELETE2(_param->_dir_pht_scheme ,_param->_nb_front_end,3); 118 119 DELETE2(_param->_dir_pht_size_address_share ,_param->_nb_front_end,3); 119 120 DELETE2(_param->_dir_pht_nb_counter ,_param->_nb_front_end,3); … … 138 139 DELETE1(_param->_nb_cache_port ,_param->_nb_load_store_unit); 139 140 DELETE1(_param->_nb_bypass_memory ,_param->_nb_load_store_unit); 141 DELETE2(_param->_lsu_pht_scheme ,_param->_nb_load_store_unit,1); 140 142 DELETE2(_param->_lsu_pht_nb_counter ,_param->_nb_load_store_unit,1); 141 143 DELETE2(_param->_lsu_pht_size_counter ,_param->_nb_load_store_unit,1); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Instance_fromInternalStructure.cpp
r139 r146 178 178 // load_store_unit 179 179 //----------------------------------------------------- 180 ALLOC1(_param->_size_store_queue ,uint32_t ,_param->_nb_load_store_unit);181 ALLOC1(_param->_size_load_queue ,uint32_t ,_param->_nb_load_store_unit);182 ALLOC1(_param->_size_speculative_access_queue ,uint32_t ,_param->_nb_load_store_unit);183 ALLOC1(_param->_nb_store_queue_bank ,uint32_t ,_param->_nb_load_store_unit);184 ALLOC1(_param->_nb_load_queue_bank ,uint32_t ,_param->_nb_load_store_unit);185 ALLOC1(_param->_nb_port_check ,uint32_t ,_param->_nb_load_store_unit);180 ALLOC1(_param->_size_store_queue ,uint32_t ,_param->_nb_load_store_unit); 181 ALLOC1(_param->_size_load_queue ,uint32_t ,_param->_nb_load_store_unit); 182 ALLOC1(_param->_size_speculative_access_queue ,uint32_t ,_param->_nb_load_store_unit); 183 ALLOC1(_param->_nb_store_queue_bank ,uint32_t ,_param->_nb_load_store_unit); 184 ALLOC1(_param->_nb_load_queue_bank ,uint32_t ,_param->_nb_load_store_unit); 185 ALLOC1(_param->_nb_port_check ,uint32_t ,_param->_nb_load_store_unit); 186 186 ALLOC1(_param->_speculative_load ,core::multi_execute_loop::execute_loop::Tspeculative_load_t,_param->_nb_load_store_unit); 187 ALLOC1(_param->_speculative_commit_predictor_scheme,Tpredictor_t,_param->_nb_load_store_unit); 188 ALLOC2(_param->_lsu_pht_size_counter ,uint32_t ,_param->_nb_load_store_unit,1); 189 ALLOC2(_param->_lsu_pht_nb_counter ,uint32_t ,_param->_nb_load_store_unit,1); 190 ALLOC1(_param->_nb_bypass_memory ,uint32_t ,_param->_nb_load_store_unit); 191 ALLOC1(_param->_nb_cache_port ,uint32_t ,_param->_nb_load_store_unit); 192 ALLOC1(_param->_nb_inst_memory ,uint32_t ,_param->_nb_load_store_unit); 187 ALLOC1(_param->_speculative_commit_predictor_scheme,Tpredictor_t ,_param->_nb_load_store_unit); 188 ALLOC2(_param->_lsu_pht_size_counter ,uint32_t ,_param->_nb_load_store_unit,1); 189 ALLOC2(_param->_lsu_pht_nb_counter ,uint32_t ,_param->_nb_load_store_unit,1); 190 ALLOC2(_param->_lsu_pht_scheme ,Tpht_scheme_t,_param->_nb_load_store_unit,1); 191 ALLOC1(_param->_nb_bypass_memory ,uint32_t ,_param->_nb_load_store_unit); 192 ALLOC1(_param->_nb_cache_port ,uint32_t ,_param->_nb_load_store_unit); 193 ALLOC1(_param->_nb_inst_memory ,uint32_t ,_param->_nb_load_store_unit); 193 194 194 195 for (uint32_t i=0; i<_param->_nb_load_store_unit; ++i) … … 220 221 { 221 222 //log_printf(INFO,Configuration,FUNCTION,_("PREDICTOR [%d][%d]"),i,j); 222 _param->_lsu_pht_size_counter [i][j] = fromString<uint32_t > (getParam("lsu_pht_size_counter" ,"load_store_unit",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 223 _param->_lsu_pht_nb_counter [i][j] = fromString<uint32_t > (getParam("lsu_pht_nb_counter" ,"load_store_unit",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 223 _param->_lsu_pht_size_counter [i][j] = fromString<uint32_t > (getParam("lsu_pht_size_counter" ,"load_store_unit",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 224 _param->_lsu_pht_nb_counter [i][j] = fromString<uint32_t > (getParam("lsu_pht_nb_counter" ,"load_store_unit",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 225 _param->_lsu_pht_scheme [i][j] = fromString<Tpht_scheme_t> (getParam("lsu_pht_scheme" ,"load_store_unit",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 224 226 } 225 227 … … 309 311 // front_end 310 312 //----------------------------------------------------- 311 ALLOC1(_param->_nb_context ,uint32_t ,_param->_nb_front_end); 312 ALLOC1(_param->_nb_decod_unit ,uint32_t ,_param->_nb_front_end); 313 ALLOC1(_param->_nb_inst_branch_predict ,uint32_t ,_param->_nb_front_end); 314 ALLOC1(_param->_nb_inst_branch_decod ,uint32_t ,_param->_nb_front_end); 315 ALLOC1(_param->_nb_inst_branch_update ,uint32_t ,_param->_nb_front_end); 316 ALLOC1(_param->_btb_size_queue ,uint32_t ,_param->_nb_front_end); 317 ALLOC1(_param->_btb_associativity ,uint32_t ,_param->_nb_front_end); 318 ALLOC1(_param->_btb_size_counter ,uint32_t ,_param->_nb_front_end); 319 ALLOC1(_param->_btb_victim_scheme ,Tvictim_t ,_param->_nb_front_end); 320 ALLOC1(_param->_dir_predictor_scheme ,Tpredictor_t,_param->_nb_front_end); 321 ALLOC2(_param->_dir_have_bht ,bool ,_param->_nb_front_end,3); 322 ALLOC2(_param->_dir_bht_size_shifter ,uint32_t ,_param->_nb_front_end,3); 323 ALLOC2(_param->_dir_bht_nb_shifter ,uint32_t ,_param->_nb_front_end,3); 324 ALLOC2(_param->_dir_have_pht ,bool ,_param->_nb_front_end,3); 325 ALLOC2(_param->_dir_pht_size_counter ,uint32_t ,_param->_nb_front_end,3); 326 ALLOC2(_param->_dir_pht_nb_counter ,uint32_t ,_param->_nb_front_end,3); 327 ALLOC2(_param->_dir_pht_size_address_share ,uint32_t ,_param->_nb_front_end,3); 313 ALLOC1(_param->_nb_context ,uint32_t ,_param->_nb_front_end); 314 ALLOC1(_param->_nb_decod_unit ,uint32_t ,_param->_nb_front_end); 315 ALLOC1(_param->_nb_inst_branch_predict ,uint32_t ,_param->_nb_front_end); 316 ALLOC1(_param->_nb_inst_branch_decod ,uint32_t ,_param->_nb_front_end); 317 ALLOC1(_param->_nb_inst_branch_update ,uint32_t ,_param->_nb_front_end); 318 ALLOC1(_param->_btb_size_queue ,uint32_t ,_param->_nb_front_end); 319 ALLOC1(_param->_btb_associativity ,uint32_t ,_param->_nb_front_end); 320 ALLOC1(_param->_btb_size_counter ,uint32_t ,_param->_nb_front_end); 321 ALLOC1(_param->_btb_victim_scheme ,Tvictim_t ,_param->_nb_front_end); 322 ALLOC1(_param->_dir_predictor_scheme ,Tpredictor_t ,_param->_nb_front_end); 323 ALLOC2(_param->_dir_have_bht ,bool ,_param->_nb_front_end,3); 324 ALLOC2(_param->_dir_bht_size_shifter ,uint32_t ,_param->_nb_front_end,3); 325 ALLOC2(_param->_dir_bht_nb_shifter ,uint32_t ,_param->_nb_front_end,3); 326 ALLOC2(_param->_dir_have_pht ,bool ,_param->_nb_front_end,3); 327 ALLOC2(_param->_dir_pht_size_counter ,uint32_t ,_param->_nb_front_end,3); 328 ALLOC2(_param->_dir_pht_nb_counter ,uint32_t ,_param->_nb_front_end,3); 329 ALLOC2(_param->_dir_pht_size_address_share ,uint32_t ,_param->_nb_front_end,3); 330 ALLOC2(_param->_dir_pht_scheme ,Tpht_scheme_t,_param->_nb_front_end,3); 328 331 329 332 for (uint32_t i=0; i<_param->_nb_front_end; ++i) … … 356 359 //log_printf(INFO,Configuration,FUNCTION,_("PREDICTOR [%d][%d]"),i,j); 357 360 358 _param->_dir_have_bht [i][j] = fromString<bool >(getParam("dir_have_bht" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 359 _param->_dir_bht_size_shifter [i][j] = fromString<uint32_t >(getParam("dir_bht_size_shifter" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 360 _param->_dir_bht_nb_shifter [i][j] = fromString<uint32_t >(getParam("dir_bht_nb_shifter" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 361 _param->_dir_have_pht [i][j] = fromString<bool >(getParam("dir_have_pht" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 362 _param->_dir_pht_size_counter [i][j] = fromString<uint32_t >(getParam("dir_pht_size_counter" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 363 _param->_dir_pht_nb_counter [i][j] = fromString<uint32_t >(getParam("dir_pht_nb_counter" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 364 _param->_dir_pht_size_address_share [i][j] = fromString<uint32_t >(getParam("dir_pht_size_address_share","front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 361 _param->_dir_have_bht [i][j] = fromString<bool >(getParam("dir_have_bht" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 362 _param->_dir_bht_size_shifter [i][j] = fromString<uint32_t >(getParam("dir_bht_size_shifter" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 363 _param->_dir_bht_nb_shifter [i][j] = fromString<uint32_t >(getParam("dir_bht_nb_shifter" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 364 _param->_dir_have_pht [i][j] = fromString<bool >(getParam("dir_have_pht" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 365 _param->_dir_pht_size_counter [i][j] = fromString<uint32_t >(getParam("dir_pht_size_counter" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 366 _param->_dir_pht_nb_counter [i][j] = fromString<uint32_t >(getParam("dir_pht_nb_counter" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 367 _param->_dir_pht_size_address_share [i][j] = fromString<uint32_t >(getParam("dir_pht_size_address_share","front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 368 _param->_dir_pht_scheme [i][j] = fromString<Tpht_scheme_t>(getParam("dir_pht_scheme" ,"front_end",toString(i).c_str(),"predictor",toString(j).c_str(), "")); 365 369 } 366 370 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Parameter_definition_test.cpp
r128 r146 8 8 #include "Behavioural/Configuration/include/Parameter_definition.h" 9 9 #include "Behavioural/include/Stat_binary_tree.h" 10 #include "Behavioural/include/Stat_type.h" 10 11 #include "Common/include/FromString.h" 11 12
Note: See TracChangeset
for help on using the changeset viewer.