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

Last change on this file was 82, checked in by rosiere, 16 years ago
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 82 2008-05-01 16:48:45Z 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  Parameters_test Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Rename_select,FUNCTION,"Begin");
26
27    Parameters_test test("Rename_select");
28
29    if ((_nb_front_end_select == 0) or
30        (_nb_front_end_select > _nb_front_end))
31      test.error(_("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      test.error(toString(_("Unsupported priority scheme. Supported scheme are : %s and %s.\n"),toString(PRIORITY_STATIC).c_str(),toString(PRIORITY_ROUND_ROBIN).c_str()));
36   
37    if ((_load_balancing != LOAD_BALANCING_BALANCE) and
38        (_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY))
39      test.error(toString(_("Unsupported load_balancing scheme. Supported scheme are : %s and %s.\n"),toString(LOAD_BALANCING_BALANCE).c_str(),toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY).c_str()));
40
41    return test;
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.