[110] | 1 | #ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_Parameters_h |
---|
| 2 | #define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_Parameters_h |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id: Parameters.h 146 2011-02-01 20:57:54Z rosiere $ |
---|
| 6 | * |
---|
| 7 | * [ Description ] |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
[111] | 11 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Parameters.h" |
---|
| 12 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Parameters.h" |
---|
| 13 | |
---|
[110] | 14 | #include "Behavioural/include/Parameters.h" |
---|
| 15 | #include "Common/include/Debug.h" |
---|
| 16 | |
---|
| 17 | namespace morpheo { |
---|
| 18 | namespace behavioural { |
---|
| 19 | namespace core { |
---|
| 20 | namespace multi_front_end { |
---|
| 21 | namespace front_end { |
---|
| 22 | namespace prediction_unit { |
---|
| 23 | namespace direction { |
---|
| 24 | namespace meta_predictor { |
---|
| 25 | |
---|
| 26 | class Parameters : public morpheo::behavioural::Parameters |
---|
| 27 | { |
---|
| 28 | //-----[ fields ]------------------------------------------------------------ |
---|
[146] | 29 | public : uint32_t _nb_inst_predict ; |
---|
| 30 | public : uint32_t _nb_inst_update ; |
---|
| 31 | public : uint32_t _size_address ; |
---|
| 32 | public : bool _have_bht [3]; |
---|
| 33 | public : uint32_t _bht_size_shifter [3]; |
---|
| 34 | public : uint32_t _bht_nb_shifter [3]; |
---|
| 35 | public : bool _have_pht [3]; |
---|
| 36 | public : uint32_t _pht_size_counter [3]; |
---|
| 37 | public : uint32_t _pht_nb_counter [3]; |
---|
| 38 | public : uint32_t _pht_size_address_share [3]; |
---|
| 39 | public : Tpht_scheme_t _pht_scheme [3]; |
---|
| 40 | public : bool _have_meta_predictor ; |
---|
| 41 | public : uint32_t _nb_predictor ; |
---|
| 42 | |
---|
| 43 | public : bool * _predictor_update_on_prediction;//[nb_predictor] |
---|
| 44 | public : uint32_t * _predictor_size_history ;//[nb_predictor] |
---|
| 45 | public : uint32_t _size_history ; |
---|
[111] | 46 | |
---|
| 47 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::Parameters ** _param_two_level_branch_predictor;//[nb_predictor] |
---|
| 48 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::meta_predictor_glue ::Parameters * _param_glue; |
---|
| 49 | |
---|
[110] | 50 | //-----[ methods ]----------------------------------------------------------- |
---|
[146] | 51 | public : Parameters (uint32_t nb_inst_predict , |
---|
| 52 | uint32_t nb_inst_update , |
---|
| 53 | uint32_t size_address , |
---|
| 54 | bool have_bht [3], |
---|
| 55 | uint32_t bht_size_shifter [3], |
---|
| 56 | uint32_t bht_nb_shifter [3], |
---|
| 57 | bool have_pht [3], |
---|
| 58 | uint32_t pht_size_counter [3], |
---|
| 59 | uint32_t pht_nb_counter [3], |
---|
| 60 | uint32_t pht_size_address_share [3], |
---|
| 61 | Tpht_scheme_t pht_scheme [3], |
---|
| 62 | bool is_toplevel=false); |
---|
[110] | 63 | //public : Parameters (Parameters & param) ; |
---|
| 64 | public : ~Parameters (void); |
---|
| 65 | |
---|
| 66 | public : void copy (void); |
---|
| 67 | |
---|
| 68 | public : Parameters_test msg_error (void); |
---|
| 69 | |
---|
| 70 | public : std::string print (uint32_t depth); |
---|
| 71 | public : friend std::ostream& operator<< (std::ostream& output, |
---|
| 72 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::Parameters & x); |
---|
| 73 | }; |
---|
| 74 | |
---|
| 75 | }; // end namespace meta_predictor |
---|
| 76 | }; // end namespace direction |
---|
| 77 | }; // end namespace prediction_unit |
---|
| 78 | }; // end namespace front_end |
---|
| 79 | }; // end namespace multi_front_end |
---|
| 80 | }; // end namespace core |
---|
| 81 | |
---|
| 82 | }; // end namespace behavioural |
---|
| 83 | }; // end namespace morpheo |
---|
| 84 | |
---|
| 85 | #endif |
---|