[78] | 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/Rename_unit/Load_Store_pointer_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 load_store_pointer_unit { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Load_Store_pointer_unit::msg_error" |
---|
[82] | 23 | Parameters_test Parameters::msg_error(void) |
---|
[78] | 24 | { |
---|
| 25 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin"); |
---|
| 26 | |
---|
[82] | 27 | Parameters_test test ("Load_Store_pointer_unit"); |
---|
[78] | 28 | |
---|
| 29 | for (uint32_t i=0; i<_nb_load_store_queue; i++) |
---|
| 30 | { |
---|
| 31 | if (not (_size_store_queue [i] > 1)) |
---|
[82] | 32 | test.error(toString(_("The size of store_queue[%d] must be greater or equal at 2.\n"),i)); |
---|
[78] | 33 | if (not (_size_load_queue [i] > 0)) |
---|
[82] | 34 | test.error(toString(_("The size of load_queue[%d] must be greater or equal at 1.\n"),i)); |
---|
[78] | 35 | } |
---|
| 36 | |
---|
| 37 | bool map_lsq [_nb_load_store_queue]; |
---|
| 38 | for (uint32_t i=0; i<_nb_load_store_queue; i++) |
---|
| 39 | map_lsq [i] = false; |
---|
| 40 | for (uint32_t i=0; i<_nb_front_end; i++) |
---|
| 41 | for (uint32_t j=0; j<_nb_context[i]; j++) |
---|
| 42 | if (_link_load_store_unit_with_thread[i][j] < _nb_load_store_queue) |
---|
| 43 | map_lsq [_link_load_store_unit_with_thread[i][j]] = true; |
---|
| 44 | else |
---|
[82] | 45 | test.error(toString(_("The number of load_store_unit for the thread [%d][%d] is too high.\n"),i,j)); |
---|
[78] | 46 | |
---|
| 47 | for (uint32_t i=0; i<_nb_load_store_queue; i++) |
---|
| 48 | if (map_lsq [i] == false) |
---|
[82] | 49 | test.error(toString(_("The load store unit [%d] is not linked with a thread.\n"),i)); |
---|
[78] | 50 | |
---|
[88] | 51 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End"); |
---|
| 52 | |
---|
[82] | 53 | return test; |
---|
[78] | 54 | }; |
---|
| 55 | |
---|
| 56 | }; // end namespace load_store_pointer_unit |
---|
| 57 | }; // end namespace rename_unit |
---|
| 58 | }; // end namespace ooo_engine |
---|
| 59 | }; // end namespace multi_ooo_engine |
---|
| 60 | }; // end namespace core |
---|
| 61 | |
---|
| 62 | }; // end namespace behavioural |
---|
| 63 | }; // end namespace morpheo |
---|