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

Last change on this file since 78 was 78, checked in by rosiere, 16 years ago

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 1.5 KB
Line 
1/*
2 * $Id$
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.