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

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.7 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/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    if (_size_queue == 1)
46      test.information ("Instructions are issued In-Order.\n");
47    else
48      test.information ("Instructions are issued Out-Of-Order.\n");
49
50    log_end(Commit_unit,FUNCTION);
51
52    return test;
53  };
54
55}; // end namespace commit_unit
56}; // end namespace ooo_engine
57}; // end namespace multi_ooo_engine
58}; // end namespace core
59
60}; // end namespace behavioural
61}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.