source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table/src/Parameters_msg_error.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1.5 KB
Line 
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>
11using namespace std;
12
13namespace morpheo                    {
14namespace behavioural {
15namespace stage_1_ifetch {
16namespace predictor {
17namespace meta_predictor {
18namespace two_level_branch_predictor {
19namespace 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             
Note: See TracBrowser for help on using the repository browser.