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 @ 111

Last change on this file since 111 was 111, checked in by rosiere, 15 years ago

1) Decod_queue : multi implementation (one_fifo, multi_fifo)
2) Issue_queue : multi implementation (in_order, out_of_order)
3) Direction : Add Meta predictor
4) Context_State : re add Branch_complete, More priority to Load miss (is not speculative)
5) Return_Address_Stack : update reg_PREDICT pointer on decod miss prediction
6) UPT : Fix bug in multi event
7) Prediction_glue : in read_stack case, insert in UPT pc_next
8) Rename select : when rob have an event (need flush), read_r{a,b,c} and write_r{d,e} is set at 0

  • Property svn:keywords set to Id
File size: 3.7 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 111 2009-02-27 18:37:40Z 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 : 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_rshift      ;
47  public : Thistory_t _pht_history_mask        ;
48  public : Thistory_t _pht_history_rshift      ;
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_lshift;
58  public : Taddress_t _pht_address_bank_mask   ;
59  public : Taddress_t _pht_address_bank_rshift ;
60
61    //-----[ methods ]-----------------------------------------------------------
62  public : Parameters  (uint32_t nb_inst_predict       ,
63                        uint32_t nb_inst_update        ,
64                        uint32_t size_address          ,
65                        bool     have_bht              ,
66                        uint32_t bht_size_shifter      ,
67                        uint32_t bht_nb_shifter        ,
68                        bool     have_pht              ,
69                        uint32_t pht_size_counter      ,
70                        uint32_t pht_nb_counter        ,
71                        uint32_t pht_size_address_share,
72                        bool     update_on_prediction  ,
73                        bool is_toplevel=false);
74//public : Parameters  (Parameters & param) ;
75  public : ~Parameters (void);
76
77  public :        void            copy       (void);
78
79  public :        Parameters_test msg_error  (void);
80
81  public :        std::string     print      (uint32_t depth);
82  public : friend std::ostream&   operator<< (std::ostream& output_stream,
83                                              morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::Parameters & x);
84  };
85
86}; // end namespace two_level_branch_predictor
87}; // end namespace meta_predictor
88}; // end namespace direction
89}; // end namespace prediction_unit
90}; // end namespace front_end
91}; // end namespace multi_front_end
92}; // end namespace core
93
94}; // end namespace behavioural
95}; // end namespace morpheo             
96
97#endif
Note: See TracBrowser for help on using the repository browser.