source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Parameters_msg_error.cpp @ 82

Last change on this file since 82 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.7 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_Front_end/Front_end/Decod_unit/Decod/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace decod_unit {
18namespace decod {
19
20
21#undef  FUNCTION
22#define FUNCTION "Decod::msg_error"
23  Parameters_test Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Decod,FUNCTION,"Begin");
26   
27    Parameters_test test("Decod");
28
29    if (_nb_inst_decod == 0)
30      test.error(_("nb_inst_decod must be > 0.\n"));
31
32    if ((_size_general_data != 32) and
33        (_size_general_data != 64))
34      test.error(_("size_general_data must be equal at 32 or 64 bits.\n"));
35
36    if ((_nb_branch_speculated == 0) or
37        (_nb_branch_speculated > _nb_context))
38      test.error(_("nb_branch_speculated must be in [1:nb_context].\n"));
39
40    if ((_nb_context_select == 0) or
41        (_nb_context_select > _nb_context))
42      test.error(_("nb_context_select must be in [1:nb_context].\n"));
43
44    if ((_priority != PRIORITY_ROUND_ROBIN))
45      test.error(toString(_("Unsupported priority scheme. Supported scheme are : %s.\n"),toString(PRIORITY_ROUND_ROBIN).c_str()));
46   
47    if ((_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY))
48      test.error(toString(_("Unsupported load_balancing scheme. Supported scheme are : %s.\n"),toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY).c_str()));
49
50    return test;
51
52    log_printf(FUNC,Decod,FUNCTION,"End");
53  };
54
55}; // end namespace decod
56}; // end namespace decod_unit
57}; // end namespace front_end
58}; // end namespace multi_front_end
59}; // end namespace core
60
61}; // end namespace behavioural
62}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.