1 | #ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_branch_target_buffer_branch_target_buffer_glue_Parameters_h |
---|
2 | #define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_branch_target_buffer_branch_target_buffer_glue_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/Types.h" |
---|
13 | #include "Behavioural/include/Parameters.h" |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | namespace core { |
---|
18 | namespace multi_front_end { |
---|
19 | namespace front_end { |
---|
20 | namespace prediction_unit { |
---|
21 | namespace branch_target_buffer { |
---|
22 | namespace branch_target_buffer_glue { |
---|
23 | |
---|
24 | |
---|
25 | class Parameters : public morpheo::behavioural::Parameters |
---|
26 | { |
---|
27 | //-----[ fields ]------------------------------------------------------------ |
---|
28 | public : uint32_t _max_nb_instruction; |
---|
29 | public : uint32_t _size_buffer ; |
---|
30 | public : uint32_t _associativity ; |
---|
31 | //public : uint32_t _size_address ; |
---|
32 | public : uint32_t _nb_inst_predict ; |
---|
33 | public : uint32_t _nb_inst_decod ; |
---|
34 | public : uint32_t _nb_inst_update ; |
---|
35 | |
---|
36 | public : uint32_t _size_bank ; |
---|
37 | public : uint32_t _size_victim ; |
---|
38 | public : uint32_t _size_victim_address; |
---|
39 | |
---|
40 | public : bool _have_port_victim ; |
---|
41 | public : bool _is_full_associative ; |
---|
42 | |
---|
43 | public : Tgeneral_data_t _mask_bank ; |
---|
44 | public : Tgeneral_data_t _shift_bank; |
---|
45 | |
---|
46 | //-----[ methods ]----------------------------------------------------------- |
---|
47 | public : Parameters (uint32_t max_nb_instruction, |
---|
48 | uint32_t size_buffer , |
---|
49 | uint32_t associativity , |
---|
50 | uint32_t size_address , |
---|
51 | uint32_t nb_inst_predict , |
---|
52 | uint32_t nb_inst_decod , |
---|
53 | uint32_t nb_inst_update , |
---|
54 | bool is_toplevel=false |
---|
55 | ); |
---|
56 | // public : Parameters (Parameters & param) ; |
---|
57 | public : ~Parameters () ; |
---|
58 | |
---|
59 | public : void copy (void); |
---|
60 | |
---|
61 | public : Parameters_test msg_error (void); |
---|
62 | |
---|
63 | public : std::string print (uint32_t depth); |
---|
64 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
65 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::branch_target_buffer::branch_target_buffer_glue::Parameters & x); |
---|
66 | }; |
---|
67 | |
---|
68 | }; // end namespace branch_target_buffer_glue |
---|
69 | }; // end namespace branch_target_buffer |
---|
70 | }; // end namespace prediction_unit |
---|
71 | }; // end namespace front_end |
---|
72 | }; // end namespace multi_front_end |
---|
73 | }; // end namespace core |
---|
74 | |
---|
75 | }; // end namespace behavioural |
---|
76 | }; // end namespace morpheo |
---|
77 | |
---|
78 | #endif |
---|