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

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Types.h"
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_ooo_engine {
16namespace ooo_engine {
17namespace rename_unit {
18namespace load_store_pointer_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Load_Store_pointer_unit::msg_error"
23  std::string Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin");
26
27    std::string msg = "";
28
29    for (uint32_t i=0; i<_nb_load_store_queue; i++)
30      {
31        if (not (_size_store_queue [i] > 1))
32          msg += "  - The size of store_queue["+toString(i)+"] must be greater or equal at 2.\n";
33        if (not (_size_load_queue  [i] > 0))
34          msg += "  - The size of load_queue["+toString(i)+"] must be greater or equal at 1.\n";
35      }
36
37    bool map_lsq [_nb_load_store_queue];
38    for (uint32_t i=0; i<_nb_load_store_queue; i++)
39      map_lsq [i] = false;
40    for (uint32_t i=0; i<_nb_front_end; i++)
41      for (uint32_t j=0; j<_nb_context[i]; j++)
42        if (_link_load_store_unit_with_thread[i][j] < _nb_load_store_queue)
43          map_lsq [_link_load_store_unit_with_thread[i][j]] = true;
44        else
45          msg += "  - The number of load_store_unit for the thread ["+toString(i)+"]["+toString(j)+"] is too high.\n";
46         
47    for (uint32_t i=0; i<_nb_load_store_queue; i++)
48      if (map_lsq [i] == false)
49        msg += "  - The load store unit ["+toString(i)+"] is not linked with a thread.\n";
50   
51    return msg;
52
53    log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End");
54  };
55
56}; // end namespace load_store_pointer_unit
57}; // end namespace rename_unit
58}; // end namespace ooo_engine
59}; // end namespace multi_ooo_engine
60}; // end namespace core
61
62}; // end namespace behavioural
63}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.