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 @ 82

Last change on this file since 82 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.8 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/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Parameters.h"
9#include <sstream>
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace multi_execute_unit {
17namespace execute_unit {
18namespace load_store_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Load_store_unit::msg_error"
23  Parameters_test Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
26   
27    Parameters_test test("Load_store_unit");
28
29    switch (_speculative_load)
30      {
31      case SPECULATIVE_LOAD_COMMIT :
32        {
33          if (not (_nb_bypass_memory == 0))
34            test.error("Bypass memory is not supported. Please wait a next revision.");
35 
36          break;
37        }
38      case NO_SPECULATIVE_LOAD     :
39      case SPECULATIVE_LOAD_ACCESS :
40      // case SPECULATIVE_LOAD_BYPASS :
41      default                      :
42        {
43          if (not (_nb_bypass_memory == 0))
44            test.error("In the load scheme '"+toString(_speculative_load)+"', they have none bypass.");
45
46          test.error("Speculative load scheme '"+toString(_speculative_load)+"' is not supported. Please wait a next revision.");
47          break;
48        }
49      }
50
51    if (not (_size_store_queue >= 2))
52      test.error("Store queue must have at less two slot.");
53
54    if (not (_nb_bypass_memory <= _size_load_queue))
55      test.error("Bypass number must be less than load_queue's size.");
56
57    log_printf(FUNC,Load_store_unit,FUNCTION,"End");
58
59    return test;
60
61  };
62
63}; // end namespace load_store_unit
64}; // end namespace execute_unit
65}; // end namespace multi_execute_unit
66}; // end namespace execute_loop
67}; // end namespace multi_execute_loop
68}; // end namespace core
69
70}; // end namespace behavioural
71}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.