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

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

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 2.9 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$
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//   public : Parameters  (Parameters & param) ;
69  public : ~Parameters () ;
70
71  public :        Parameters_test msg_error  (void);
72
73  public :        std::string     print      (uint32_t depth);
74  public : friend std::ostream&   operator<< (std::ostream& output_stream,
75                                            morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::branch_target_buffer::branch_target_buffer_register::Parameters & x);
76  };
77
78}; // end namespace branch_target_buffer_register
79}; // end namespace branch_target_buffer
80}; // end namespace prediction_unit
81}; // end namespace front_end
82}; // end namespace multi_front_end
83}; // end namespace core
84
85}; // end namespace behavioural
86}; // end namespace morpheo             
87
88#endif
Note: See TracBrowser for help on using the repository browser.