1 | #ifndef morpheo_behavioural_core_multi_execute_loop_execute_loop_multi_execute_unit_execute_unit_load_store_unit_Parameters_h |
---|
2 | #define morpheo_behavioural_core_multi_execute_loop_execute_loop_multi_execute_unit_execute_unit_load_store_unit_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_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Types.h" |
---|
12 | #include "Common/include/Debug.h" |
---|
13 | #include "Behavioural/include/Parameters.h" |
---|
14 | #include "Common/include/BitManipulation.h" |
---|
15 | #include <math.h> |
---|
16 | |
---|
17 | namespace morpheo { |
---|
18 | namespace behavioural { |
---|
19 | namespace core { |
---|
20 | namespace multi_execute_loop { |
---|
21 | namespace execute_loop { |
---|
22 | namespace multi_execute_unit { |
---|
23 | namespace execute_unit { |
---|
24 | namespace load_store_unit { |
---|
25 | |
---|
26 | class Parameters : public morpheo::behavioural::Parameters |
---|
27 | { |
---|
28 | //-----[ fields ]------------------------------------------------------------ |
---|
29 | public : uint32_t _size_store_queue ; |
---|
30 | public : uint32_t _size_load_queue ; |
---|
31 | public : uint32_t _size_speculative_access_queue ; |
---|
32 | public : uint32_t _nb_store_queue_bank ; |
---|
33 | public : uint32_t _nb_load_queue_bank ; |
---|
34 | public : uint32_t _nb_port_check ; |
---|
35 | public : Tspeculative_load_t _speculative_load ; |
---|
36 | public : Tpredictor_t _speculative_commit_predictor_scheme; |
---|
37 | /* public : uint32_t * _lsu_pht_size_counter ;//[1] */ |
---|
38 | /* public : uint32_t * _lsu_pht_nb_counter ;//[1] */ |
---|
39 | public : uint32_t _nb_bypass_memory ; |
---|
40 | public : uint32_t _nb_cache_port ; |
---|
41 | public : uint32_t _nb_inst_memory ; |
---|
42 | public : uint32_t _nb_context ; |
---|
43 | public : uint32_t _nb_front_end ; |
---|
44 | public : uint32_t _nb_ooo_engine ; |
---|
45 | public : uint32_t _nb_packet ; |
---|
46 | //public : uint32_t _size_general_data ; |
---|
47 | //public : uint32_t _size_special_data ; |
---|
48 | public : uint32_t _nb_general_register ; |
---|
49 | public : uint32_t _nb_special_register ; |
---|
50 | public : uint32_t _nb_thread ; |
---|
51 | public : bool * _num_thread_valid ; //[nb_thread] |
---|
52 | |
---|
53 | //public : uint32_t _size_address_store_queue ; |
---|
54 | //public : uint32_t _size_address_load_queue ; |
---|
55 | public : uint32_t _size_speculative_access_queue_ptr ; |
---|
56 | //public : uint32_t _size_context_id ; |
---|
57 | //public : uint32_t _size_front_end_id ; |
---|
58 | //public : uint32_t _size_ooo_engine_id ; |
---|
59 | //public : uint32_t _size_packet_id ; |
---|
60 | //public : uint32_t _size_general_register ; |
---|
61 | //public : uint32_t _size_special_register ; |
---|
62 | public : uint32_t _size_dcache_context_id ; |
---|
63 | public : uint32_t _size_dcache_packet_id ; |
---|
64 | |
---|
65 | //public : bool _have_port_context_id ; |
---|
66 | //public : bool _have_port_front_end_id ; |
---|
67 | //public : bool _have_port_ooo_engine_id ; |
---|
68 | //public : bool _have_port_packet_id ; |
---|
69 | public : bool _have_port_dcache_context_id ; |
---|
70 | //public : bool _have_port_load_queue_ptr ; |
---|
71 | |
---|
72 | public : Tdcache_address_t _mask_address_lsb ; |
---|
73 | public : Tdcache_address_t _mask_address_msb ; |
---|
74 | public : Tdcache_address_t _mask_check_hit_byte ; |
---|
75 | |
---|
76 | //-----[ methods ]----------------------------------------------------------- |
---|
77 | public : Parameters (uint32_t size_store_queue , |
---|
78 | uint32_t size_load_queue , |
---|
79 | uint32_t size_speculative_access_queue , |
---|
80 | uint32_t nb_store_queue_bank , |
---|
81 | uint32_t nb_load_queue_bank , |
---|
82 | uint32_t nb_port_check , |
---|
83 | Tspeculative_load_t speculative_load , |
---|
84 | Tpredictor_t speculative_commit_predictor_scheme, |
---|
85 | /* uint32_t * lsu_pht_size_counter ,//[1] */ |
---|
86 | /* uint32_t * lsu_pht_nb_counter ,//[1] */ |
---|
87 | uint32_t nb_bypass_memory , |
---|
88 | uint32_t nb_cache_port , |
---|
89 | uint32_t nb_inst_memory , |
---|
90 | uint32_t nb_context , |
---|
91 | uint32_t nb_front_end , |
---|
92 | uint32_t nb_ooo_engine , |
---|
93 | uint32_t nb_packet , |
---|
94 | uint32_t size_general_data , |
---|
95 | uint32_t size_special_data , |
---|
96 | uint32_t nb_general_register , |
---|
97 | uint32_t nb_special_register , |
---|
98 | uint32_t nb_thread , |
---|
99 | bool * num_thread_valid , //[nb_thread] |
---|
100 | bool is_toplevel=false); |
---|
101 | |
---|
102 | // public : Parameters (Parameters & param) ; |
---|
103 | |
---|
104 | public : ~Parameters () ; |
---|
105 | |
---|
106 | public : void copy (void); |
---|
107 | |
---|
108 | public : Parameters_test msg_error (void); |
---|
109 | |
---|
110 | public : std::string print (uint32_t depth); |
---|
111 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
112 | morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_execute_unit::execute_unit::load_store_unit::Parameters & x); |
---|
113 | }; |
---|
114 | |
---|
115 | }; // end namespace load_store_unit |
---|
116 | }; // end namespace execute_unit |
---|
117 | }; // end namespace multi_execute_unit |
---|
118 | }; // end namespace execute_loop |
---|
119 | }; // end namespace multi_execute_loop |
---|
120 | }; // end namespace core |
---|
121 | }; // end namespace behavioural |
---|
122 | }; // end namespace morpheo |
---|
123 | |
---|
124 | #endif |
---|