[78] | 1 | #ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_update_prediction_table_Parameters_h |
---|
| 2 | #define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_update_prediction_table_Parameters_h |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id: Parameters.h 122 2009-06-03 08:15:51Z rosiere $ |
---|
| 6 | * |
---|
| 7 | * [ Description ] |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | #include "Common/include/Debug.h" |
---|
| 12 | #include "Behavioural/include/Parameters.h" |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | namespace core { |
---|
| 17 | namespace multi_front_end { |
---|
| 18 | namespace front_end { |
---|
| 19 | namespace prediction_unit { |
---|
| 20 | namespace update_prediction_table { |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | class Parameters : public morpheo::behavioural::Parameters |
---|
| 24 | { |
---|
| 25 | //-----[ fields ]------------------------------------------------------------ |
---|
[88] | 26 | public : uint32_t _nb_context ; |
---|
| 27 | public : uint32_t * _size_upt_queue ; // [nb_context] |
---|
| 28 | public : uint32_t * _size_ufpt_queue ; // [nb_context] |
---|
| 29 | //public : uint32_t _size_address ; |
---|
| 30 | public : uint32_t _nb_inst_predict ; |
---|
| 31 | public : uint32_t _nb_inst_decod ; |
---|
| 32 | public : uint32_t _nb_inst_branch_complete ; |
---|
| 33 | public : uint32_t _nb_inst_update ; |
---|
| 34 | public : uint32_t _size_history ; |
---|
| 35 | public : uint32_t * _size_ras_index ; // [nb_context] |
---|
[111] | 36 | public : uint32_t _nb_thread ; |
---|
| 37 | public : uint32_t * _translate_num_context_to_num_thread;//[nb_context] |
---|
[122] | 38 | public : const bool _always_accurate_predict ; |
---|
| 39 | public : const bool _always_accurate_decod ; |
---|
| 40 | public : const bool _can_accurate_predict ; |
---|
| 41 | public : const bool _can_accurate_decod ; |
---|
[78] | 42 | |
---|
[88] | 43 | //public : uint32_t _size_context_id ; |
---|
| 44 | //public : uint32_t * _size_depth ; // [nb_context] |
---|
| 45 | //public : uint32_t _max_size_depth ; |
---|
| 46 | public : uint32_t _max_size_ras_index ; |
---|
| 47 | |
---|
| 48 | //public : bool _have_port_context_id ; |
---|
| 49 | //public : bool * _have_port_depth ; // [nb_context] |
---|
| 50 | //public : bool _have_port_max_depth ; |
---|
| 51 | public : bool _have_port_history ; |
---|
[81] | 52 | |
---|
[111] | 53 | public : bool * _have_thread ;//[nb_thread] |
---|
| 54 | |
---|
[78] | 55 | //-----[ methods ]----------------------------------------------------------- |
---|
[81] | 56 | public : Parameters (uint32_t nb_context , |
---|
[88] | 57 | uint32_t * size_upt_queue , |
---|
| 58 | uint32_t * size_ufpt_queue , |
---|
[81] | 59 | uint32_t size_address , |
---|
| 60 | uint32_t nb_inst_predict , |
---|
| 61 | uint32_t nb_inst_decod , |
---|
| 62 | uint32_t nb_inst_branch_complete, |
---|
| 63 | uint32_t nb_inst_update , |
---|
| 64 | uint32_t size_history , |
---|
[88] | 65 | uint32_t * size_ras_index , |
---|
[111] | 66 | uint32_t nb_thread , |
---|
| 67 | uint32_t * translate_num_context_to_num_thread ,//[nb_context] |
---|
[88] | 68 | bool is_toplevel=false); |
---|
[81] | 69 | //public : Parameters (Parameters & param) ; |
---|
[78] | 70 | public : ~Parameters () ; |
---|
| 71 | |
---|
[88] | 72 | public : void copy (void); |
---|
| 73 | |
---|
[78] | 74 | public : Parameters_test msg_error (void); |
---|
| 75 | |
---|
| 76 | public : std::string print (uint32_t depth); |
---|
| 77 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
| 78 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::update_prediction_table::Parameters & x); |
---|
| 79 | }; |
---|
| 80 | |
---|
| 81 | }; // end namespace update_prediction_table |
---|
| 82 | }; // end namespace prediction_unit |
---|
| 83 | }; // end namespace front_end |
---|
| 84 | }; // end namespace multi_front_end |
---|
| 85 | }; // end namespace core |
---|
| 86 | |
---|
| 87 | }; // end namespace behavioural |
---|
| 88 | }; // end namespace morpheo |
---|
| 89 | |
---|
| 90 | #endif |
---|