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

Last change on this file since 145 was 145, checked in by rosiere, 14 years ago

1) add test with SPECINT2K
2) new config of Selftest
3) modif RAT to support multiple depth_save ... but not finish (need fix Update Prediction Table)
4) add Function_pointer but need fix

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 145 2010-10-13 18:15:51Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Types.h"
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_ooo_engine {
16namespace ooo_engine {
17
18
19#undef  FUNCTION
20#define FUNCTION "OOO_Engine::msg_error"
21  Parameters_test Parameters::msg_error(void)
22  {
23    log_begin(OOO_Engine,FUNCTION);
24
25    Parameters_test test ("OOO_Engine");
26
27    bool _is_link [_nb_rename_unit];
28    for (uint32_t i=0; i<_nb_rename_unit; i++)
29      _is_link[i] = false;
30
31    for (uint32_t i=0; i<_nb_front_end; i++)
32      {
33        uint32_t x = _link_rename_unit_with_front_end [i];
34
35        if (x >= _nb_rename_unit)
36          test.error(toString(_("Front_end [%d] is linked with invalid rename_unit.\n"),i));
37        else
38          {
39            if (_is_link [x])
40              test.error(toString(_("Front_end [%d] can't be connected with multiple rename_unit.\n"),i));
41            else
42              _is_link [x] = true;
43          }
44      }
45
46    for (uint32_t i=0; i<_nb_rename_unit; i++)
47      if (_is_link[i] == false)
48        test.error(toString(_("Rename_unit [%d] is not linked with front_end.\n"),i));
49
50    log_end(OOO_Engine,FUNCTION);
51
52    return test;
53  };
54
55}; // end namespace ooo_engine
56}; // end namespace multi_ooo_engine
57}; // end namespace core
58
59}; // end namespace behavioural
60}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.