source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/include/Parameters.h @ 88

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1#ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_branch_target_buffer_branch_target_buffer_register_Parameters_h
2#define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_branch_target_buffer_branch_target_buffer_register_Parameters_h
3
4/*
5 * $Id: Parameters.h 88 2008-12-10 18:31:39Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#include "Common/include/Debug.h"
12#include "Behavioural/include/Parameters.h"
13#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/include/Types.h"
14
15namespace morpheo {
16namespace behavioural {
17namespace core {
18namespace multi_front_end {
19namespace front_end {
20namespace prediction_unit {
21namespace branch_target_buffer {
22namespace branch_target_buffer_register {
23
24#define PERCENT_ACCURATE_LIMIT 25
25
26  class Parameters : public morpheo::behavioural::Parameters
27  {
28    //-----[ fields ]------------------------------------------------------------
29  public : uint32_t   _nb_context     ;
30  public : uint32_t * _nb_instruction ;
31  public : uint32_t   _size_buffer    ;
32  public : uint32_t   _associativity  ;
33//public : uint32_t   _size_address   ;
34  public : uint32_t   _size_counter   ;
35  public : uint32_t   _nb_inst_predict;
36  public : uint32_t   _nb_inst_decod  ;
37  public : uint32_t   _nb_inst_update ;
38
39  public : uint32_t   _size_bank      ;
40//public : uint32_t   _size_context_id;
41  public : uint32_t   _size_victim    ;
42
43//public : bool       _have_port_context_id;
44  public : bool       _have_port_victim    ;
45
46  public : Tcounter_t _accurate_max          ;
47  public : Tcounter_t _accurate_limit        ;
48  public : Tcounter_t _first_accurate_if_hit ;
49  public : Tcounter_t _first_accurate_if_miss;
50
51
52  public : Tgeneral_data_t _mask_offset ;
53  public : Tgeneral_data_t _shift_offset;
54  public : Tgeneral_data_t _mask_bank ;
55  public : Tgeneral_data_t _shift_bank;
56  public : Tgeneral_data_t _shift_tag ;
57
58    //-----[ methods ]-----------------------------------------------------------
59  public : Parameters  (uint32_t   nb_context     ,
60                        uint32_t * nb_instruction ,
61                        uint32_t   size_buffer    ,
62                        uint32_t   associativity  ,
63                        uint32_t   size_address   ,
64                        uint32_t   size_counter   ,
65                        uint32_t   nb_inst_predict,
66                        uint32_t   nb_inst_decod  ,
67                        uint32_t   nb_inst_update ,
68                        bool       is_toplevel=false
69                        );
70//   public : Parameters  (Parameters & param) ;
71  public : ~Parameters () ;
72
73  public :        void            copy       (void);
74
75  public :        Parameters_test msg_error  (void);
76
77  public :        std::string     print      (uint32_t depth);
78  public : friend std::ostream&   operator<< (std::ostream& output_stream,
79                                            morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::branch_target_buffer::branch_target_buffer_register::Parameters & x);
80  };
81
82}; // end namespace branch_target_buffer_register
83}; // end namespace branch_target_buffer
84}; // end namespace prediction_unit
85}; // end namespace front_end
86}; // end namespace multi_front_end
87}; // end namespace core
88
89}; // end namespace behavioural
90}; // end namespace morpheo             
91
92#endif
Note: See TracBrowser for help on using the repository browser.