[78] | 1 | #ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_Parameters_h |
---|
| 2 | #define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_Parameters_h |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id: Parameters.h 82 2008-05-01 16:48:45Z rosiere $ |
---|
| 6 | * |
---|
| 7 | * [ Description ] |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | #include "Common/include/Debug.h" |
---|
| 12 | #include "Behavioural/include/Parameters.h" |
---|
[82] | 13 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/include/Parameters.h" |
---|
| 14 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/include/Parameters.h" |
---|
| 15 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/include/Parameters.h" |
---|
| 16 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/include/Parameters.h" |
---|
| 17 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue/include/Parameters.h" |
---|
[78] | 18 | |
---|
| 19 | namespace morpheo { |
---|
| 20 | namespace behavioural { |
---|
| 21 | namespace core { |
---|
| 22 | namespace multi_front_end { |
---|
| 23 | namespace front_end { |
---|
| 24 | namespace prediction_unit { |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | class Parameters : public morpheo::behavioural::Parameters |
---|
| 28 | { |
---|
| 29 | //-----[ fields ]------------------------------------------------------------ |
---|
[82] | 30 | public : uint32_t _nb_context ; |
---|
| 31 | public : uint32_t _nb_decod_unit ; |
---|
| 32 | public : uint32_t _size_address ; |
---|
| 33 | public : uint32_t * _nb_instruction ;//[nb_context] |
---|
| 34 | public : uint32_t * _nb_inst_decod ;//[nb_decod_unit] |
---|
| 35 | public : uint32_t _nb_inst_branch_predict ; |
---|
| 36 | public : uint32_t _nb_inst_branch_decod ; |
---|
| 37 | public : uint32_t _nb_inst_branch_update ; |
---|
| 38 | public : uint32_t _nb_inst_branch_complete ; |
---|
| 39 | public : uint32_t _btb_size_queue ; |
---|
| 40 | public : uint32_t _btb_associativity ; |
---|
| 41 | public : uint32_t _btb_size_counter ; |
---|
| 42 | public : Tvictim_t _btb_victim_scheme ; |
---|
| 43 | public : Tpredictor_t _dir_predictor_scheme ; |
---|
| 44 | public : bool _dir_have_bht [3]; |
---|
| 45 | public : uint32_t _dir_bht_size_shifter [3]; |
---|
| 46 | public : uint32_t _dir_bht_nb_shifter [3]; |
---|
| 47 | public : bool _dir_have_pht [3]; |
---|
| 48 | public : uint32_t _dir_pht_size_counter [3]; |
---|
| 49 | public : uint32_t _dir_pht_nb_counter [3]; |
---|
| 50 | public : uint32_t _dir_pht_size_address_share [3]; |
---|
| 51 | public : uint32_t * _ras_size_queue ;//[nb_context] |
---|
| 52 | public : uint32_t * _upt_size_queue ;//[nb_context] |
---|
[78] | 53 | |
---|
[82] | 54 | public : uint32_t _size_context_id ; |
---|
| 55 | public : uint32_t * _size_depth ;//[nb_context] |
---|
| 56 | public : uint32_t _max_size_depth ; |
---|
| 57 | public : uint32_t * _size_inst_ifetch_ptr ;//[nb_context] |
---|
| 58 | public : uint32_t _size_history ; |
---|
| 59 | public : uint32_t * _size_ras_index ;//[nb_context] |
---|
| 60 | |
---|
| 61 | public : bool _have_port_context_id ; |
---|
| 62 | public : bool _have_port_max_depth ; |
---|
| 63 | public : bool * _have_port_depth ;//[nb_context] |
---|
| 64 | public : bool * _have_port_inst_ifetch_ptr ;//[nb_context] |
---|
| 65 | public : bool _have_port_history ; |
---|
| 66 | public : bool * _have_port_ras_index ;//[nb_context] |
---|
| 67 | |
---|
| 68 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::branch_target_buffer ::Parameters * _param_btb; |
---|
| 69 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction ::Parameters * _param_dir; |
---|
| 70 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::return_address_stack ::Parameters * _param_ras; |
---|
| 71 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::update_prediction_table::Parameters * _param_upt; |
---|
| 72 | public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::prediction_unit_glue ::Parameters * _param_glue; |
---|
| 73 | |
---|
[78] | 74 | //-----[ methods ]----------------------------------------------------------- |
---|
[82] | 75 | public : Parameters (uint32_t nb_context , |
---|
| 76 | uint32_t nb_decod_unit , |
---|
| 77 | uint32_t size_address , |
---|
| 78 | uint32_t * nb_instruction ,//[nb_context] |
---|
| 79 | uint32_t * nb_inst_decod ,//[nb_decod_unit] |
---|
| 80 | uint32_t nb_inst_branch_predict , |
---|
| 81 | uint32_t nb_inst_branch_decod , |
---|
| 82 | uint32_t nb_inst_branch_update , |
---|
| 83 | uint32_t nb_inst_branch_complete , |
---|
| 84 | uint32_t btb_size_queue , |
---|
| 85 | uint32_t btb_associativity , |
---|
| 86 | uint32_t btb_size_counter , |
---|
| 87 | Tvictim_t btb_victim_scheme , |
---|
| 88 | Tpredictor_t dir_predictor_scheme , |
---|
| 89 | bool dir_have_bht [3], |
---|
| 90 | uint32_t dir_bht_size_shifter [3], |
---|
| 91 | uint32_t dir_bht_nb_shifter [3], |
---|
| 92 | bool dir_have_pht [3], |
---|
| 93 | uint32_t dir_pht_size_counter [3], |
---|
| 94 | uint32_t dir_pht_nb_counter [3], |
---|
| 95 | uint32_t dir_pht_size_address_share [3], |
---|
| 96 | uint32_t * ras_size_queue ,//[nb_context] |
---|
| 97 | uint32_t * upt_size_queue //[nb_context] |
---|
| 98 | ); |
---|
[78] | 99 | // public : Parameters (Parameters & param) ; |
---|
| 100 | public : ~Parameters () ; |
---|
| 101 | |
---|
| 102 | public : Parameters_test msg_error (void); |
---|
| 103 | |
---|
| 104 | public : std::string print (uint32_t depth); |
---|
| 105 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
| 106 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::Parameters & x); |
---|
| 107 | }; |
---|
| 108 | |
---|
| 109 | }; // end namespace prediction_unit |
---|
| 110 | }; // end namespace front_end |
---|
| 111 | }; // end namespace multi_front_end |
---|
| 112 | }; // end namespace core |
---|
| 113 | |
---|
| 114 | }; // end namespace behavioural |
---|
| 115 | }; // end namespace morpheo |
---|
| 116 | |
---|
| 117 | #endif |
---|