source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Context_State/src/Parameters_msg_error.cpp @ 83

Last change on this file since 83 was 83, checked in by rosiere, 16 years ago

Add component : Context_State (manage miss prediction, exception , decod_enable, synchronisation instruction ...)

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 83 2008-05-09 18:00:21Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Types.h"
9#include "Behavioural/Core/Multi_Front_end/Front_end/Context_State/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace context_state {
18
19
20#undef  FUNCTION
21#define FUNCTION "Context_State::msg_error"
22  Parameters_test Parameters::msg_error(void)
23  {
24    log_begin(Context_State,FUNCTION);
25
26    Parameters_test test ("Context_State");
27
28    bool _is_link_decod_unit_from_context [_nb_decod_unit];
29    for (uint32_t i=0; i<_nb_decod_unit; i++)
30      _is_link_decod_unit_from_context [i] = false;
31    for (uint32_t i=0; i<_nb_context; i++)
32      {
33        if (_link_context_to_decod_unit [i] < _nb_decod_unit)
34          _is_link_decod_unit_from_context [_link_context_to_decod_unit[i]] = true;
35        else
36          test.error(toString(_("The context [%d] is linked with invalid decod_unit."),i));
37      }
38
39    for (uint32_t i=0; i<_nb_decod_unit; i++)
40      if (_is_link_decod_unit_from_context [i] == false)
41        test.error(toString(_("The decod_unit [%d] have none context as source."),i));
42
43    bool _is_link_ooo_engine_from_decod_unit [_nb_ooo_engine];
44    for (uint32_t i=0; i<_nb_ooo_engine; i++)
45      _is_link_ooo_engine_from_decod_unit [i] = false;
46
47    for (uint32_t i=0; i<_nb_decod_unit; i++)
48      {
49        if (_link_decod_unit_to_ooo_engine [i] < _nb_ooo_engine)
50          _is_link_ooo_engine_from_decod_unit [_link_decod_unit_to_ooo_engine[i]] = true;
51        else
52          test.error(toString(_("The decod_unit [%d] is linked with invalid ooo_engine."),i));
53      }
54
55    for (uint32_t i=0; i<_nb_ooo_engine; i++)
56      if (_is_link_ooo_engine_from_decod_unit [i] == false)
57        test.error(toString(_("The ooo_engine [%d] have none decod_unit as source."),i));
58
59    log_end(Context_State,FUNCTION);
60
61    return test;
62  };
63
64}; // end namespace context_state
65}; // end namespace front_end
66}; // end namespace multi_front_end
67}; // end namespace core
68
69}; // end namespace behavioural
70}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.