[48] | 1 | #ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_two_level_branch_predictor_Parameters_h |
---|
| 2 | #define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_two_level_branch_predictor_Parameters_h |
---|
[2] | 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id: Parameters.h 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 6 | * |
---|
| 7 | * [ Description ] |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
[44] | 11 | #include "Common/include/Debug.h" |
---|
[2] | 12 | #include "Behavioural/include/Parameters.h" |
---|
| 13 | // Internal structure |
---|
[48] | 14 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table/include/Parameters.h" |
---|
| 15 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Parameters.h" |
---|
| 16 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Parameters.h" |
---|
[2] | 17 | #include <math.h> |
---|
| 18 | |
---|
| 19 | namespace morpheo { |
---|
| 20 | namespace behavioural { |
---|
[48] | 21 | namespace core { |
---|
| 22 | namespace multi_front_end { |
---|
| 23 | namespace front_end { |
---|
| 24 | namespace prediction_unit { |
---|
| 25 | namespace direction { |
---|
| 26 | |
---|
[2] | 27 | namespace meta_predictor { |
---|
| 28 | namespace two_level_branch_predictor { |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | class Parameters : public morpheo::behavioural::Parameters |
---|
| 32 | { |
---|
| 33 | //-----[ fields ]------------------------------------------------------------ |
---|
| 34 | public : const bool _have_bht ; |
---|
| 35 | public : const uint32_t _bht_size_shifter ; |
---|
| 36 | public : const uint32_t _bht_nb_shifter ; |
---|
| 37 | public : const bool _have_pht ; |
---|
| 38 | public : const uint32_t _pht_size_counter ; |
---|
| 39 | public : const uint32_t _pht_nb_counter ; |
---|
| 40 | public : const uint32_t _pht_size_address_share; |
---|
| 41 | public : const uint32_t _size_address ; |
---|
| 42 | public : const uint32_t _nb_prediction ; |
---|
| 43 | public : const uint32_t _nb_branch_complete ; |
---|
| 44 | |
---|
| 45 | public : const uint32_t _bht_size_address ; |
---|
| 46 | public : const uint32_t _pht_size_address ; |
---|
| 47 | |
---|
[48] | 48 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::branch_history_table ::Parameters * _param_branch_history_table; |
---|
| 49 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::pattern_history_table::Parameters * _param_pattern_history_table; |
---|
| 50 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::two_level_branch_predictor_glue::Parameters * _param_two_level_branch_predictor_glue; |
---|
[2] | 51 | |
---|
| 52 | //-----[ methods ]----------------------------------------------------------- |
---|
| 53 | public : Parameters (bool have_bht , |
---|
| 54 | uint32_t bht_size_shifter , |
---|
| 55 | uint32_t bht_nb_shifter , |
---|
| 56 | bool have_pht , |
---|
| 57 | uint32_t pht_size_counter , |
---|
| 58 | uint32_t pht_nb_counter , |
---|
| 59 | uint32_t pht_size_address_share, |
---|
| 60 | uint32_t size_address , |
---|
| 61 | uint32_t nb_prediction , |
---|
| 62 | uint32_t nb_branch_complete ); |
---|
| 63 | |
---|
| 64 | public : Parameters (Parameters & param) ; |
---|
| 65 | public : ~Parameters () ; |
---|
| 66 | |
---|
| 67 | public : string msg_error (void); |
---|
| 68 | |
---|
| 69 | public : string print (uint32_t depth); |
---|
| 70 | public : friend ostream& operator<< (ostream& output_stream, |
---|
[48] | 71 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::Parameters & x); |
---|
[2] | 72 | }; |
---|
| 73 | |
---|
| 74 | }; // end namespace two_level_branch_predictor |
---|
| 75 | }; // end namespace meta_predictor |
---|
[48] | 76 | |
---|
| 77 | }; // end namespace core |
---|
| 78 | }; // end namespace multi_front_end |
---|
| 79 | }; // end namespace front_end |
---|
| 80 | }; // end namespace prediction_unit |
---|
| 81 | }; // end namespace direction |
---|
| 82 | |
---|
[2] | 83 | }; // end namespace behavioural |
---|
| 84 | }; // end namespace morpheo |
---|
| 85 | |
---|
| 86 | #endif |
---|