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

Last change on this file since 48 was 48, checked in by rosiere, 17 years ago

Modification des Makefile : pas de creation inutile de shell

File size: 1.8 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Parameters.h"
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_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 pattern_history_table {
24
25
26  string Parameters::msg_error(void)
27  {
28    log_printf(FUNC,Pattern_History_Table,"msg_error","Begin");
29
30    string msg = "";
31
32    if (is_positive (_size_counter) == false)
33      {
34        msg += "  - size_counter must be > 0\n";
35        msg += "    * size_counter                    : " + toString(_size_counter) + "\n";
36      }
37
38    if (is_positive (_nb_prediction) == false)
39      {
40        msg += "  - nb_prediction must be > 0\n";
41        msg += "    * nb_prediction                   : " + toString(_nb_prediction) + "\n";
42      }
43
44    if (is_positive (_nb_branch_complete) == false)
45      {
46        msg += "  - nb_branch_complete must be > 0\n";
47        msg += "    * nb_branch_complete              : " + toString(_nb_branch_complete) + "\n";
48      }
49
50    return msg;
51
52    log_printf(FUNC,Pattern_History_Table,"msg_error","End");
53  };
54
55}; // end namespace pattern_history_table
56}; // end namespace two_level_branch_predictor
57}; // end namespace meta_predictor
58
59}; // end namespace core
60}; // end namespace multi_front_end
61}; // end namespace front_end
62}; // end namespace prediction_unit
63}; // end namespace direction
64
65
66}; // end namespace behavioural
67}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.