source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_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.4 KB
Line 
1#ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_Parameters_h
2#define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_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/Parameters.h"
12#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Parameters.h"
13
14#include "Behavioural/include/Parameters.h"
15#include "Common/include/Debug.h"
16
17
18namespace morpheo {
19namespace behavioural {
20namespace core {
21namespace multi_front_end {
22namespace front_end {
23namespace prediction_unit {
24namespace direction {
25namespace meta_predictor {
26
27
28  class Parameters : public morpheo::behavioural::Parameters
29  {
30    //-----[ fields ]------------------------------------------------------------
31  public : uint32_t   _nb_inst_predict           ;
32  public : uint32_t   _nb_inst_update            ;
33  public : uint32_t   _size_address              ;
34  public : bool       _have_bht               [3];
35  public : uint32_t   _bht_size_shifter       [3];
36  public : uint32_t   _bht_nb_shifter         [3];
37  public : bool       _have_pht               [3];
38  public : uint32_t   _pht_size_counter       [3];
39  public : uint32_t   _pht_nb_counter         [3];
40  public : uint32_t   _pht_size_address_share [3];
41                     
42  public : bool       _have_meta_predictor       ;
43  public : uint32_t   _nb_predictor              ;
44
45  public : bool     * _predictor_update_on_prediction;//[nb_predictor]
46  public : uint32_t * _predictor_size_history        ;//[nb_predictor]
47  public : uint32_t   _size_history                  ;
48                       
49  public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::Parameters ** _param_two_level_branch_predictor;//[nb_predictor]
50  public : morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::meta_predictor_glue       ::Parameters  * _param_glue;
51
52    //-----[ methods ]-----------------------------------------------------------
53  public : Parameters  (uint32_t nb_inst_predict           ,
54                        uint32_t nb_inst_update            ,
55                        uint32_t size_address              ,
56                        bool     have_bht               [3],
57                        uint32_t bht_size_shifter       [3],
58                        uint32_t bht_nb_shifter         [3],
59                        bool     have_pht               [3],
60                        uint32_t pht_size_counter       [3],
61                        uint32_t pht_nb_counter         [3],
62                        uint32_t pht_size_address_share [3],
63                        bool     is_toplevel=false);
64//public : Parameters  (Parameters & param) ;
65  public : ~Parameters (void);
66
67  public :        void            copy       (void);
68
69  public :        Parameters_test msg_error  (void);
70
71  public :        std::string     print      (uint32_t depth);
72  public : friend std::ostream&   operator<< (std::ostream& output,
73                                              morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::Parameters & x);
74  };
75
76}; // end namespace meta_predictor
77}; // end namespace direction
78}; // end namespace prediction_unit
79}; // end namespace front_end
80}; // end namespace multi_front_end
81}; // end namespace core
82
83}; // end namespace behavioural
84}; // end namespace morpheo             
85
86#endif
Note: See TracBrowser for help on using the repository browser.