source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Parameters.h @ 146

Last change on this file since 146 was 146, checked in by rosiere, 13 years ago

1) Integration of RegisterFile_Internal_Banked in RegisterFile?
2) Erase "read_write" interface in RegisterFile_Monolithic component
3) Add smith predictor parameters in Load_store_pointer_unit.
4) Fix not statistics flags

  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
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 146 2011-02-01 20:57:54Z 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
15namespace morpheo {
16namespace behavioural {
17namespace core {
18namespace multi_front_end {
19namespace front_end {
20namespace prediction_unit {
21namespace direction {
22namespace meta_predictor {
23namespace 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 : Tpht_scheme_t _pht_scheme              ;
40  public : bool          _update_on_prediction    ;
41
42  public : Thistory_t    _pht_counter_max         ;
43  public : Thistory_t    _pht_threshold_up        ;
44  public : Thistory_t    _pht_threshold_down      ;
45                         
46  public : uint32_t      _size_history            ;
47                                                 
48  public : Thistory_t    _bht_history_mask        ;
49  public : Thistory_t    _bht_history_shift       ;
50  public : Thistory_t    _pht_history_mask        ;
51  public : Thistory_t    _pht_history_shift       ;
52                                                 
53  public : uint32_t      _bht_size_address        ;
54  public : uint32_t      _pht_size_address        ;
55  public : Taddress_t    _bht_address_mask        ;
56  public : uint32_t      _pht_nb_bank             ;
57  public : uint32_t      _pht_size_bank           ;
58  public : Taddress_t    _pht_address_share_mask  ;
59  public : Taddress_t    _pht_address_share_shift ;
60  public : Taddress_t    _pht_address_bank_mask   ;
61  public : Taddress_t    _pht_address_bank_shift  ;
62                         
63  public : Thistory_t    _bht_init_take           ;
64  public : Thistory_t    _bht_init_ntake          ;
65                         
66  public : Thistory_t    _pht_init_take           ;
67  public : Thistory_t    _pht_init_ntake          ;
68
69    //-----[ methods ]-----------------------------------------------------------
70  public : Parameters  (uint32_t      nb_inst_predict       ,
71                        uint32_t      nb_inst_update        ,
72                        uint32_t      size_address          ,
73                        bool          have_bht              ,
74                        uint32_t      bht_size_shifter      ,
75                        uint32_t      bht_nb_shifter        ,
76                        bool          have_pht              ,
77                        uint32_t      pht_size_counter      ,
78                        uint32_t      pht_nb_counter        ,
79                        uint32_t      pht_size_address_share,
80                        Tpht_scheme_t pht_scheme            , 
81                        bool          update_on_prediction  ,
82                        bool          is_toplevel=false);
83//public : Parameters  (Parameters & param) ;
84  public : ~Parameters (void);
85
86  public :        void            copy       (void);
87
88  public :        Parameters_test msg_error  (void);
89
90  public :        std::string     print      (uint32_t depth);
91  public : friend std::ostream&   operator<< (std::ostream& output_stream,
92                                              morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::Parameters & x);
93  };
94
95}; // end namespace two_level_branch_predictor
96}; // end namespace meta_predictor
97}; // end namespace direction
98}; // end namespace prediction_unit
99}; // end namespace front_end
100}; // end namespace multi_front_end
101}; // end namespace core
102
103}; // end namespace behavioural
104}; // end namespace morpheo             
105
106#endif
Note: See TracBrowser for help on using the repository browser.