source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Parameters_msg_error.cpp @ 145

Last change on this file since 145 was 145, checked in by rosiere, 14 years ago

1) add test with SPECINT2K
2) new config of Selftest
3) modif RAT to support multiple depth_save ... but not finish (need fix Update Prediction Table)
4) add Function_pointer but need fix

  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 145 2010-10-13 18:15:51Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Test.h"
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_execute_loop {
16namespace execute_loop {
17namespace multi_execute_unit {
18namespace execute_unit {
19namespace load_store_unit {
20
21
22#undef  FUNCTION
23#define FUNCTION "Load_store_unit::msg_error"
24  Parameters_test Parameters::msg_error(void)
25  {
26    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
27   
28    Parameters_test test("Load_store_unit");
29
30    switch (_speculative_load)
31      {
32      case SPECULATIVE_LOAD_COMMIT :
33      // case SPECULATIVE_LOAD_ACCESS :
34        {
35          break;
36        }
37      case NO_SPECULATIVE_LOAD     :
38      default                      :
39        {
40          test.error(toString(_("Speculative load scheme '%s' is not yet supported.\n"),toString(_speculative_load).c_str()));
41          break;
42        }
43      }
44
45    if (_nb_bypass_memory > 0)
46      switch (_speculative_load)
47        {
48        case SPECULATIVE_LOAD_COMMIT :
49          {
50            break;
51          }
52        case NO_SPECULATIVE_LOAD     :
53        // case SPECULATIVE_LOAD_ACCESS :
54        default                      :
55          {
56            test.error(toString(_("In the load scheme '%s', they have none bypass.\n"),toString(_speculative_load).c_str()));
57            break;
58          }
59        }
60     
61    if (not (_size_store_queue >= 2))
62      test.error(_("Store queue must have at less two slot.\n"));
63
64    if (not (_nb_bypass_memory <= _size_load_queue))
65      test.error(_("Bypass number must be less than load_queue's size.\n"));
66
67    if (not is_multiple(_nb_store_queue_bank,_nb_inst_memory))
68      test.error(_("Number of bank of store queue must be a multiple of number input instruction.\n"));
69
70    if (not is_multiple(_nb_load_queue_bank,_nb_inst_memory))
71      test.error(_("Number of bank of load queue must be a multiple of number input instruction.\n"));
72   
73    switch (_speculative_commit_predictor_scheme)
74      {
75      case PREDICTOR_NEVER_TAKE  :
76      case PREDICTOR_ALWAYS_TAKE :
77        {
78          break;
79        }
80      case PREDICTOR_COUNTER     :
81        {
82          test.error(toString(_("Predictor scheme \"%s\" is not yet supported.\n"),toString(_speculative_commit_predictor_scheme).c_str()));
83
84          break;
85        }
86      case PREDICTOR_STATIC      :
87      case PREDICTOR_LAST_TAKE   :
88      case PREDICTOR_LOCAL       :
89      case PREDICTOR_GLOBAL      :
90      case PREDICTOR_META        :
91      case PREDICTOR_CUSTOM      :
92        {
93          test.error(toString(_("Predictor scheme \"%s\" is unsupported for load scheme.\n"),toString(_speculative_commit_predictor_scheme).c_str()));
94          break;
95        }
96      }
97   
98    if (_nb_cache_port > 1)
99      test.warning(_("nb_cache_port > 1 is unsupported (Coming Soon).\n")); 
100
101    if (_nb_inst_memory > 1)
102      test.warning(_("nb_inst_memory > 1 is unsupported (Coming Soon).\n")); 
103
104    log_printf(FUNC,Load_store_unit,FUNCTION,"End");
105
106    return test;
107
108  };
109
110}; // end namespace load_store_unit
111}; // end namespace execute_unit
112}; // end namespace multi_execute_unit
113}; // end namespace execute_loop
114}; // end namespace multi_execute_loop
115}; // end namespace core
116
117}; // end namespace behavioural
118}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.