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