1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table/include/Parameters.h" |
---|
9 | #include "Behavioural/Stage_1_Ifetch/Predictor/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 stage_1_ifetch { |
---|
16 | namespace predictor { |
---|
17 | namespace meta_predictor { |
---|
18 | namespace two_level_branch_predictor { |
---|
19 | namespace branch_history_table { |
---|
20 | |
---|
21 | |
---|
22 | string Parameters::msg_error(void) |
---|
23 | { |
---|
24 | string msg = ""; |
---|
25 | |
---|
26 | if (is_positive (_size_shifter) == false) |
---|
27 | { |
---|
28 | msg += " - size_shifter must be > 0\n"; |
---|
29 | msg += " * size_shifter : " + toString(_size_shifter) + "\n"; |
---|
30 | } |
---|
31 | |
---|
32 | if (is_positive (_nb_prediction) == false) |
---|
33 | { |
---|
34 | msg += " - nb_prediction must be > 0\n"; |
---|
35 | msg += " * nb_prediction : " + toString(_nb_prediction) + "\n"; |
---|
36 | } |
---|
37 | |
---|
38 | if (is_positive (_nb_branch_complete) == false) |
---|
39 | { |
---|
40 | msg += " - nb_branch_complete must be > 0\n"; |
---|
41 | msg += " * nb_branch_complete : " + toString(_nb_branch_complete) + "\n"; |
---|
42 | } |
---|
43 | |
---|
44 | return msg; |
---|
45 | }; |
---|
46 | |
---|
47 | }; // end namespace branch_history_table |
---|
48 | }; // end namespace two_level_branch_predictor |
---|
49 | }; // end namespace meta_predictor |
---|
50 | }; // end namespace predictor |
---|
51 | }; // end namespace stage_1_ifetch |
---|
52 | |
---|
53 | }; // end namespace behavioural |
---|
54 | }; // end namespace morpheo |
---|