source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Parameters_msg_error.cpp @ 88

Last change on this file since 88 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.5 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/include/Types.h"
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace prediction_unit {
18namespace direction {
19
20
21#undef  FUNCTION
22#define FUNCTION "Direction::msg_error"
23  Parameters_test Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Direction,FUNCTION,"Begin");
26
27    Parameters_test test ("Direction");
28
29    if (_nb_inst_predict == 0)
30      test.error("nb_inst_predict must be > 0.");
31
32    if (_nb_inst_update == 0)
33      test.error("nb_inst_update must be > 0.");
34
35    switch (_predictor_scheme)
36      {
37      case PREDICTOR_NEVER_TAKE  :
38      case PREDICTOR_ALWAYS_TAKE :
39      case PREDICTOR_STATIC      :
40      case PREDICTOR_LAST_TAKE   : 
41        {
42          break;
43        }
44      case PREDICTOR_COUNTER     :
45      case PREDICTOR_LOCAL       :
46      case PREDICTOR_GLOBAL      :
47      case PREDICTOR_META        :
48      case PREDICTOR_CUSTOM      :
49        {
50          test.error("Unimplemented predictor_scheme : \""+toString(_predictor_scheme)+"\". (Coming Soon)");
51          break;
52        }
53      }
54
55    log_printf(FUNC,Direction,FUNCTION,"End");
56
57    return test;
58  };
59
60}; // end namespace direction
61}; // end namespace prediction_unit
62}; // end namespace front_end
63}; // end namespace multi_front_end
64}; // end namespace core
65
66}; // end namespace behavioural
67}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.