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 |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id: Parameters.h 115 2009-04-20 21:29:17Z rosiere $ |
---|
6 | * |
---|
7 | * [ Description ] |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Types.h" |
---|
12 | #include "Behavioural/include/Parameters.h" |
---|
13 | #include "Common/include/Debug.h" |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | namespace core { |
---|
18 | namespace multi_front_end { |
---|
19 | namespace front_end { |
---|
20 | namespace prediction_unit { |
---|
21 | namespace direction { |
---|
22 | namespace meta_predictor { |
---|
23 | namespace two_level_branch_predictor { |
---|
24 | |
---|
25 | |
---|
26 | class Parameters : public morpheo::behavioural::Parameters |
---|
27 | { |
---|
28 | //-----[ fields ]------------------------------------------------------------ |
---|
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 ; |
---|
33 | public : uint32_t _bht_size_shifter ; |
---|
34 | public : uint32_t _bht_nb_shifter ; |
---|
35 | public : bool _have_pht ; |
---|
36 | public : uint32_t _pht_size_counter ; |
---|
37 | public : uint32_t _pht_nb_counter ; |
---|
38 | public : uint32_t _pht_size_address_share ; |
---|
39 | public : bool _update_on_prediction ; |
---|
40 | |
---|
41 | public : Thistory_t _pht_counter_max ; |
---|
42 | |
---|
43 | public : uint32_t _size_history ; |
---|
44 | |
---|
45 | public : Thistory_t _bht_history_mask ; |
---|
46 | public : Thistory_t _bht_history_shift ; |
---|
47 | public : Thistory_t _pht_history_mask ; |
---|
48 | public : Thistory_t _pht_history_shift ; |
---|
49 | |
---|
50 | public : uint32_t _bht_size_address ; |
---|
51 | public : uint32_t _pht_size_address ; |
---|
52 | |
---|
53 | public : Taddress_t _bht_address_mask ; |
---|
54 | public : uint32_t _pht_nb_bank ; |
---|
55 | public : uint32_t _pht_size_bank ; |
---|
56 | public : Taddress_t _pht_address_share_mask ; |
---|
57 | public : Taddress_t _pht_address_share_shift ; |
---|
58 | public : Taddress_t _pht_address_bank_mask ; |
---|
59 | public : Taddress_t _pht_address_bank_shift ; |
---|
60 | |
---|
61 | public : Thistory_t _bht_init_take ; |
---|
62 | public : Thistory_t _bht_init_ntake ; |
---|
63 | |
---|
64 | public : Thistory_t _pht_init_take ; |
---|
65 | public : Thistory_t _pht_init_ntake ; |
---|
66 | |
---|
67 | //-----[ methods ]----------------------------------------------------------- |
---|
68 | public : Parameters (uint32_t nb_inst_predict , |
---|
69 | uint32_t nb_inst_update , |
---|
70 | uint32_t size_address , |
---|
71 | bool have_bht , |
---|
72 | uint32_t bht_size_shifter , |
---|
73 | uint32_t bht_nb_shifter , |
---|
74 | bool have_pht , |
---|
75 | uint32_t pht_size_counter , |
---|
76 | uint32_t pht_nb_counter , |
---|
77 | uint32_t pht_size_address_share, |
---|
78 | bool update_on_prediction , |
---|
79 | bool is_toplevel=false); |
---|
80 | //public : Parameters (Parameters & param) ; |
---|
81 | public : ~Parameters (void); |
---|
82 | |
---|
83 | public : void copy (void); |
---|
84 | |
---|
85 | public : Parameters_test msg_error (void); |
---|
86 | |
---|
87 | public : std::string print (uint32_t depth); |
---|
88 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
89 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::Parameters & x); |
---|
90 | }; |
---|
91 | |
---|
92 | }; // end namespace two_level_branch_predictor |
---|
93 | }; // end namespace meta_predictor |
---|
94 | }; // end namespace direction |
---|
95 | }; // end namespace prediction_unit |
---|
96 | }; // end namespace front_end |
---|
97 | }; // end namespace multi_front_end |
---|
98 | }; // end namespace core |
---|
99 | |
---|
100 | }; // end namespace behavioural |
---|
101 | }; // end namespace morpheo |
---|
102 | |
---|
103 | #endif |
---|