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

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

1) OOO_egine : add stat to depiste low perf source
2) Commit : add stat
3) LSU_Pointer : retire - always ack (else combinatory loop). insert - max nb_inst_memory
4) TopLevel? : add debug_idle_time to stop combinatory loop.
5) Issue_queue : add reexecute_queue, new implementation (routage after issue_queue)
6) Decod / Predictor : add "can_continue"

  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 110 2009-02-19 16:31:47Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Types.h"
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_ooo_engine {
16namespace ooo_engine {
17namespace commit_unit {
18
19
20#undef  FUNCTION
21#define FUNCTION "Commit_unit::msg_error"
22  Parameters_test Parameters::msg_error(void)
23  {
24    log_begin(Commit_unit,FUNCTION);
25
26    Parameters_test test ("Commit_unit");
27
28    for (uint32_t i=0; i<_nb_rename_unit; i++)
29      if (_nb_bank < _nb_inst_insert [i])
30        test.error (toString(_("For the nb_rename_unit[%d] : nb_bank must be >= nb_inst_insert.\n"),i));
31   
32    for (uint32_t i=0; i<_nb_rename_unit; i++)
33      if (_nb_bank < _nb_inst_retire [i])
34        test.error (toString(_("For the nb_rename_unit[%d] : nb_bank must be >= nb_inst_retire.\n"),i));
35   
36    if (_nb_rename_unit_select > _nb_rename_unit)
37      test.error(_("nb_rename_unit must be >= nb_rename_unit_select.\n"));
38
39    if (not is_multiple(_size_queue, _nb_bank))
40      test.error(_("nb_bank must be a multiple of size_queue.\n"));
41
42    if (_nb_inst_reexecute != 1)
43      test.error(_("nb_inst_reexecute must be set at 1. Anothers value is unsupported.\n"));
44
45    for (uint32_t i=0; i<_nb_front_end; ++i)
46      for (uint32_t j=0; j<_nb_context[i]; ++j)
47        if (_translate_num_context_to_num_thread [i][j] >= _nb_thread)
48          test.error(toString(_("num_thread [%d][%d] (%d) is >= at nb_thread (%d).\n"),i,j,_translate_num_context_to_num_thread [i][j],_nb_thread));
49   
50    for (uint32_t i=0; i<_nb_front_end; ++i)
51      for (uint32_t j=0; j<_nb_context[i]-1; ++j)
52        for (uint32_t x=i; x<_nb_front_end; ++x)
53          for (uint32_t y=j+1; y<_nb_context[i]; ++y)
54            if (_translate_num_context_to_num_thread [i][j] == _translate_num_context_to_num_thread [x][y])
55              test.error(toString(_("To context [%d][%d] and [%d][%d], num_thread is the same (%d).\n"),i,j,x,y,_translate_num_context_to_num_thread [i][j]));
56             
57
58    if (_size_queue == 1)
59      test.information (_("Instructions are issued In-Order.\n"));
60    else
61      test.information (_("Instructions are issued Out-Of-Order.\n"));
62
63    log_end(Commit_unit,FUNCTION);
64
65    return test;
66  };
67
68}; // end namespace commit_unit
69}; // end namespace ooo_engine
70}; // end namespace multi_ooo_engine
71}; // end namespace core
72
73}; // end namespace behavioural
74}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.