1 | #ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_two_level_branch_predictor_two_level_branch_predictor_glue_Parameters_h |
---|
2 | #define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_two_level_branch_predictor_two_level_branch_predictor_glue_Parameters_h |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id$ |
---|
6 | * |
---|
7 | * [ Description ] |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #include "Common/include/Debug.h" |
---|
12 | #include "Behavioural/include/Parameters.h" |
---|
13 | #include <math.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 | |
---|
23 | namespace meta_predictor { |
---|
24 | namespace two_level_branch_predictor { |
---|
25 | namespace two_level_branch_predictor_glue { |
---|
26 | |
---|
27 | |
---|
28 | class Parameters : public morpheo::behavioural::Parameters |
---|
29 | { |
---|
30 | //-----[ fields ]------------------------------------------------------------ |
---|
31 | public : const bool _have_bht ; |
---|
32 | public : const uint32_t _bht_size_history ; |
---|
33 | public : const uint32_t _bht_size_address ; |
---|
34 | public : const bool _have_pht ; |
---|
35 | public : const uint32_t _pht_size_address ; |
---|
36 | public : const uint32_t _pht_size_address_share; |
---|
37 | public : const uint32_t _size_address ; |
---|
38 | public : const uint32_t _nb_prediction ; |
---|
39 | public : const uint32_t _nb_branch_complete ; |
---|
40 | public : const uint32_t _pht_size_address_shift; |
---|
41 | |
---|
42 | //-----[ methods ]----------------------------------------------------------- |
---|
43 | public : Parameters (bool have_bht , |
---|
44 | uint32_t bht_size_history , |
---|
45 | uint32_t bht_size_address , |
---|
46 | bool have_pht , |
---|
47 | uint32_t pht_size_address , |
---|
48 | uint32_t pht_size_address_share, |
---|
49 | uint32_t size_address , |
---|
50 | uint32_t nb_prediction , |
---|
51 | uint32_t nb_branch_complete ); |
---|
52 | |
---|
53 | public : Parameters (Parameters & param) ; |
---|
54 | public : ~Parameters () ; |
---|
55 | |
---|
56 | public : string msg_error (void); |
---|
57 | |
---|
58 | public : string print (uint32_t depth); |
---|
59 | public : friend ostream& operator<< (ostream& output_stream, |
---|
60 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::two_level_branch_predictor_glue::Parameters & x); |
---|
61 | }; |
---|
62 | |
---|
63 | }; // end namespace two_level_branch_predictor_glue |
---|
64 | }; // end namespace two_level_branch_predictor |
---|
65 | }; // end namespace meta_predictor |
---|
66 | |
---|
67 | }; // end namespace core |
---|
68 | }; // end namespace multi_front_end |
---|
69 | }; // end namespace front_end |
---|
70 | }; // end namespace prediction_unit |
---|
71 | }; // end namespace direction |
---|
72 | |
---|
73 | |
---|
74 | }; // end namespace behavioural |
---|
75 | }; // end namespace morpheo |
---|
76 | |
---|
77 | #endif |
---|