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