source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/src/Parameters_msg_error.cpp @ 81

Last change on this file since 81 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.5 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/include/Types.h"
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_ooo_engine {
16namespace ooo_engine {
17namespace rename_unit {
18namespace rename_select {
19
20
21#undef  FUNCTION
22#define FUNCTION "Rename_select::msg_error"
23  std::string Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Rename_select,FUNCTION,"Begin");
26
27    std::string msg = "";
28
29    if ((_nb_front_end_select == 0) or
30        (_nb_front_end_select > _nb_front_end))
31      msg += "  - nb_front_end_select must be in [1:nb_front_end].\n";
32
33    if ((_priority != PRIORITY_STATIC) and
34        (_priority != PRIORITY_ROUND_ROBIN))
35      msg += "  - Unsupported priority scheme. Supported scheme are : "+toString(PRIORITY_STATIC)+" and "+toString(PRIORITY_ROUND_ROBIN)+".\n";
36   
37    if ((_load_balancing != LOAD_BALANCING_BALANCE) and
38        (_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY))
39      msg += "  - Unsupported load_balancing scheme. Supported scheme are : "+toString(LOAD_BALANCING_BALANCE)+" and "+toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY)+".\n";
40
41    return msg;
42
43    log_printf(FUNC,Rename_select,FUNCTION,"End");
44  };
45
46}; // end namespace rename_select
47}; // end namespace rename_unit
48}; // end namespace ooo_engine
49}; // end namespace multi_ooo_engine
50}; // end namespace core
51
52}; // end namespace behavioural
53}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.