[78] | 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 81 2008-04-15 18:40:01Z 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 | // public : Parameters (Parameters & param) ; |
---|
| 55 | public : ~Parameters () ; |
---|
| 56 | |
---|
| 57 | public : Parameters_test msg_error (void); |
---|
| 58 | |
---|
| 59 | public : std::string print (uint32_t depth); |
---|
| 60 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
| 61 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::branch_target_buffer::branch_target_buffer_glue::Parameters & x); |
---|
| 62 | }; |
---|
| 63 | |
---|
| 64 | }; // end namespace branch_target_buffer_glue |
---|
| 65 | }; // end namespace branch_target_buffer |
---|
| 66 | }; // end namespace prediction_unit |
---|
| 67 | }; // end namespace front_end |
---|
| 68 | }; // end namespace multi_front_end |
---|
| 69 | }; // end namespace core |
---|
| 70 | |
---|
| 71 | }; // end namespace behavioural |
---|
| 72 | }; // end namespace morpheo |
---|
| 73 | |
---|
| 74 | #endif |
---|