source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table/src/Parameters_msg_error.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
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>
11using namespace std;
12
13namespace morpheo                    {
14namespace behavioural {
15namespace core {
16namespace multi_front_end {
17namespace front_end {
18namespace prediction_unit {
19namespace direction {
20
21namespace meta_predictor {
22namespace two_level_branch_predictor {
23namespace 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             
Note: See TracBrowser for help on using the repository browser.