[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[48] | 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Parameters.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Types.h" |
---|
[2] | 10 | #include <sstream> |
---|
| 11 | using namespace std; |
---|
| 12 | |
---|
| 13 | namespace morpheo { |
---|
| 14 | namespace behavioural { |
---|
[48] | 15 | namespace core { |
---|
| 16 | namespace multi_front_end { |
---|
| 17 | namespace front_end { |
---|
| 18 | namespace prediction_unit { |
---|
| 19 | namespace direction { |
---|
| 20 | |
---|
[2] | 21 | namespace meta_predictor { |
---|
| 22 | namespace two_level_branch_predictor { |
---|
| 23 | namespace pattern_history_table { |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | string Parameters::msg_error(void) |
---|
| 27 | { |
---|
| 28 | log_printf(FUNC,Pattern_History_Table,"msg_error","Begin"); |
---|
| 29 | |
---|
| 30 | string msg = ""; |
---|
| 31 | |
---|
| 32 | if (is_positive (_size_counter) == false) |
---|
| 33 | { |
---|
| 34 | msg += " - size_counter must be > 0\n"; |
---|
| 35 | msg += " * size_counter : " + toString(_size_counter) + "\n"; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | if (is_positive (_nb_prediction) == false) |
---|
| 39 | { |
---|
| 40 | msg += " - nb_prediction must be > 0\n"; |
---|
| 41 | msg += " * nb_prediction : " + toString(_nb_prediction) + "\n"; |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | if (is_positive (_nb_branch_complete) == false) |
---|
| 45 | { |
---|
| 46 | msg += " - nb_branch_complete must be > 0\n"; |
---|
| 47 | msg += " * nb_branch_complete : " + toString(_nb_branch_complete) + "\n"; |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | return msg; |
---|
| 51 | |
---|
| 52 | log_printf(FUNC,Pattern_History_Table,"msg_error","End"); |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | }; // end namespace pattern_history_table |
---|
| 56 | }; // end namespace two_level_branch_predictor |
---|
| 57 | }; // end namespace meta_predictor |
---|
| 58 | |
---|
[48] | 59 | }; // end namespace core |
---|
| 60 | }; // end namespace multi_front_end |
---|
| 61 | }; // end namespace front_end |
---|
| 62 | }; // end namespace prediction_unit |
---|
| 63 | }; // end namespace direction |
---|
| 64 | |
---|
| 65 | |
---|
[2] | 66 | }; // end namespace behavioural |
---|
| 67 | }; // end namespace morpheo |
---|