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, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 2.1 KB
RevLine 
[59]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"
[78]23  Parameters_test Parameters::msg_error(void)
[59]24  {
25    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
26   
[78]27    Parameters_test test("Load_store_unit");
[59]28
29    switch (_speculative_load)
30      {
31      case SPECULATIVE_LOAD_COMMIT :
32        {
[78]33          if (not (_nb_bypass_memory == 0))
[88]34            test.error(_("Bypass memory is not supported. Please wait a next revision.\n"));
[78]35 
[59]36          break;
37        }
38      case NO_SPECULATIVE_LOAD     :
39      case SPECULATIVE_LOAD_ACCESS :
[78]40      // case SPECULATIVE_LOAD_BYPASS :
[59]41      default                      :
42        {
[78]43          if (not (_nb_bypass_memory == 0))
[88]44            test.error(toString(_("In the load scheme '%s', they have none bypass.\n"),toString(_speculative_load).c_str()));
[78]45
[88]46          test.error(toString(_("Speculative load scheme '%s' is not supported. Please wait a next revision.\n"),toString(_speculative_load).c_str()));
[59]47          break;
48        }
49      }
50
[78]51    if (not (_size_store_queue >= 2))
[88]52      test.error(_("Store queue must have at less two slot.\n"));
[59]53
[78]54    if (not (_nb_bypass_memory <= _size_load_queue))
[88]55      test.error(_("Bypass number must be less than load_queue's size.\n"));
[78]56
[88]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
[59]63    log_printf(FUNC,Load_store_unit,FUNCTION,"End");
[78]64
65    return test;
66
[59]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.