[78] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 82 2008-05-01 16:48:45Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Types.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/include/Parameters.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace core { |
---|
| 15 | namespace multi_front_end { |
---|
| 16 | namespace front_end { |
---|
| 17 | namespace decod_unit { |
---|
| 18 | namespace decod { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Decod::msg_error" |
---|
[82] | 23 | Parameters_test Parameters::msg_error(void) |
---|
[78] | 24 | { |
---|
| 25 | log_printf(FUNC,Decod,FUNCTION,"Begin"); |
---|
[82] | 26 | |
---|
| 27 | Parameters_test test("Decod"); |
---|
[78] | 28 | |
---|
| 29 | if (_nb_inst_decod == 0) |
---|
[82] | 30 | test.error(_("nb_inst_decod must be > 0.\n")); |
---|
[78] | 31 | |
---|
| 32 | if ((_size_general_data != 32) and |
---|
| 33 | (_size_general_data != 64)) |
---|
[82] | 34 | test.error(_("size_general_data must be equal at 32 or 64 bits.\n")); |
---|
[78] | 35 | |
---|
| 36 | if ((_nb_branch_speculated == 0) or |
---|
| 37 | (_nb_branch_speculated > _nb_context)) |
---|
[82] | 38 | test.error(_("nb_branch_speculated must be in [1:nb_context].\n")); |
---|
[78] | 39 | |
---|
| 40 | if ((_nb_context_select == 0) or |
---|
| 41 | (_nb_context_select > _nb_context)) |
---|
[82] | 42 | test.error(_("nb_context_select must be in [1:nb_context].\n")); |
---|
[78] | 43 | |
---|
| 44 | if ((_priority != PRIORITY_ROUND_ROBIN)) |
---|
[82] | 45 | test.error(toString(_("Unsupported priority scheme. Supported scheme are : %s.\n"),toString(PRIORITY_ROUND_ROBIN).c_str())); |
---|
[78] | 46 | |
---|
| 47 | if ((_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY)) |
---|
[82] | 48 | test.error(toString(_("Unsupported load_balancing scheme. Supported scheme are : %s.\n"),toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY).c_str())); |
---|
[78] | 49 | |
---|
[82] | 50 | return test; |
---|
[78] | 51 | |
---|
| 52 | log_printf(FUNC,Decod,FUNCTION,"End"); |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | }; // end namespace decod |
---|
| 56 | }; // end namespace decod_unit |
---|
| 57 | }; // end namespace front_end |
---|
| 58 | }; // end namespace multi_front_end |
---|
| 59 | }; // end namespace core |
---|
| 60 | |
---|
| 61 | }; // end namespace behavioural |
---|
| 62 | }; // end namespace morpheo |
---|