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

Last change on this file since 111 was 111, checked in by rosiere, 15 years ago

1) Decod_queue : multi implementation (one_fifo, multi_fifo)
2) Issue_queue : multi implementation (in_order, out_of_order)
3) Direction : Add Meta predictor
4) Context_State : re add Branch_complete, More priority to Load miss (is not speculative)
5) Return_Address_Stack : update reg_PREDICT pointer on decod miss prediction
6) UPT : Fix bug in multi event
7) Prediction_glue : in read_stack case, insert in UPT pc_next
8) Rename select : when rob have an event (need flush), read_r{a,b,c} and write_r{d,e} is set at 0

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 111 2009-02-27 18:37:40Z 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      case PREDICTOR_COUNTER     :
42      case PREDICTOR_LOCAL       :
43      case PREDICTOR_GLOBAL      :
44      case PREDICTOR_META        :
45      case PREDICTOR_CUSTOM      :
46        {
47          break;
48        }
49      default :
50        {
51          test.error("Unimplemented predictor_scheme : \""+toString(_predictor_scheme)+"\". (Coming Soon)");
52          break;
53        }
54      }
55
56    log_printf(FUNC,Direction,FUNCTION,"End");
57
58    return test;
59  };
60
61}; // end namespace direction
62}; // end namespace prediction_unit
63}; // end namespace front_end
64}; // end namespace multi_front_end
65}; // end namespace core
66
67}; // end namespace behavioural
68}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.