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 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace core { |
---|
15 | namespace multi_ooo_engine { |
---|
16 | namespace ooo_engine { |
---|
17 | namespace 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 |
---|