Changeset 146 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/src/Parameters.cpp
- Timestamp:
- Feb 1, 2011, 9:57:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/src/Parameters.cpp
r124 r146 22 22 #undef FUNCTION 23 23 #define FUNCTION "Two_Level_Branch_Predictor::Parameters" 24 Parameters::Parameters (uint32_t nb_inst_predict , 25 uint32_t nb_inst_update , 26 uint32_t size_address , 27 bool have_bht , 28 uint32_t bht_size_shifter , 29 uint32_t bht_nb_shifter , 30 bool have_pht , 31 uint32_t pht_size_counter , 32 uint32_t pht_nb_counter , 33 uint32_t pht_size_address_share, 34 bool update_on_prediction , 35 bool is_toplevel) 24 Parameters::Parameters (uint32_t nb_inst_predict , 25 uint32_t nb_inst_update , 26 uint32_t size_address , 27 bool have_bht , 28 uint32_t bht_size_shifter , 29 uint32_t bht_nb_shifter , 30 bool have_pht , 31 uint32_t pht_size_counter , 32 uint32_t pht_nb_counter , 33 uint32_t pht_size_address_share, 34 Tpht_scheme_t pht_scheme , 35 bool update_on_prediction , 36 bool is_toplevel) 36 37 { 37 38 log_begin(Two_Level_Branch_Predictor,FUNCTION); … … 47 48 _pht_nb_counter = (have_pht)?(pht_nb_counter ):0; 48 49 _pht_size_address_share = (have_bht and have_pht)?(pht_size_address_share):0; 50 _pht_scheme = pht_scheme ; 49 51 _update_on_prediction = update_on_prediction ; 50 52 … … 97 99 { 98 100 _pht_counter_max = (1<<_pht_size_counter)-1; 99 101 _pht_threshold_up = (1<<(_pht_size_counter-1))+1; 102 _pht_threshold_down = (1<<(_pht_size_counter-1))-1; 103 100 104 _pht_size_bank = (_have_bht)?(1<<_bht_size_shifter):1; 101 105 _pht_nb_bank = _pht_nb_counter / _pht_size_bank;
Note: See TracChangeset
for help on using the changeset viewer.