[78] | 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/Register_translation_unit/Free_List_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 rename_unit { |
---|
| 18 | namespace register_translation_unit { |
---|
| 19 | namespace free_list_unit { |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #undef FUNCTION |
---|
| 23 | #define FUNCTION "Free_List_unit::msg_error" |
---|
| 24 | std::string Parameters::msg_error(void) |
---|
| 25 | { |
---|
| 26 | log_printf(FUNC,Free_List_unit,FUNCTION,"Begin"); |
---|
| 27 | |
---|
| 28 | std::string msg = ""; |
---|
| 29 | |
---|
| 30 | if (_nb_general_register <= _nb_thread*_nb_general_register_logic) |
---|
| 31 | msg += " - The number of physical general register is insufficient.\n"; |
---|
| 32 | if (_nb_special_register <= _nb_thread*_nb_special_register_logic) |
---|
| 33 | msg += " - The number of physical special register is insufficient.\n"; |
---|
| 34 | if (not is_multiple (_nb_bank, _nb_pop)) |
---|
| 35 | msg += " - Number of pop must be a multiple of number of bank.\n"; |
---|
| 36 | if (not is_power2 (_nb_bank)) |
---|
| 37 | msg += " - Number of bank must be a power of 2.\n"; |
---|
| 38 | |
---|
| 39 | if ((_priority != PRIORITY_STATIC) and |
---|
| 40 | (_priority != PRIORITY_ROUND_ROBIN)) |
---|
| 41 | msg += " - Unsupported priority scheme. Supported scheme are "+toString(PRIORITY_STATIC)+" and "+toString(PRIORITY_ROUND_ROBIN)+".\n"; |
---|
| 42 | |
---|
| 43 | return msg; |
---|
| 44 | |
---|
| 45 | log_printf(FUNC,Free_List_unit,FUNCTION,"End"); |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace free_list_unit |
---|
| 49 | }; // end namespace register_translation_unit |
---|
| 50 | }; // end namespace rename_unit |
---|
| 51 | }; // end namespace ooo_engine |
---|
| 52 | }; // end namespace multi_ooo_engine |
---|
| 53 | }; // end namespace core |
---|
| 54 | |
---|
| 55 | }; // end namespace behavioural |
---|
| 56 | }; // end namespace morpheo |
---|