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

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 88 2008-12-10 18:31:39Z 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          _is_link [x] = true;
39      }
40
41    for (uint32_t i=0; i<_nb_rename_unit; i++)
42      if (_is_link[i] == false)
43        test.error(toString(_("Rename_unit [%d] is not linked with front_end.\n"),i));
44
45    log_end(OOO_Engine,FUNCTION);
46
47    return test;
48  };
49
50}; // end namespace ooo_engine
51}; // end namespace multi_ooo_engine
52}; // end namespace core
53
54}; // end namespace behavioural
55}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.