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

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 88 2008-12-10 18:31:39Z 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.\n"));
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(toString(_("In the load scheme '%s', they have none bypass.\n"),toString(_speculative_load).c_str()));
45
46          test.error(toString(_("Speculative load scheme '%s' is not supported. Please wait a next revision.\n"),toString(_speculative_load).c_str()));
47          break;
48        }
49      }
50
51    if (not (_size_store_queue >= 2))
52      test.error(_("Store queue must have at less two slot.\n"));
53
54    if (not (_nb_bypass_memory <= _size_load_queue))
55      test.error(_("Bypass number must be less than load_queue's size.\n"));
56
57    if (_nb_cache_port > 1)
58      test.warning(_("nb_cache_port > 1 is unsupported (Coming Soon).\n")); 
59
60    if (_nb_inst_memory > 1)
61      test.warning(_("nb_inst_memory > 1 is unsupported (Coming Soon).\n")); 
62
63    log_printf(FUNC,Load_store_unit,FUNCTION,"End");
64
65    return test;
66
67  };
68
69}; // end namespace load_store_unit
70}; // end namespace execute_unit
71}; // end namespace multi_execute_unit
72}; // end namespace execute_loop
73}; // end namespace multi_execute_loop
74}; // end namespace core
75
76}; // end namespace behavioural
77}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.