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" |
---|
23 | Parameters_test Parameters::msg_error(void) |
---|
24 | { |
---|
25 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | Parameters_test test ("Load_Store_pointer_unit"); |
---|
28 | |
---|
29 | for (uint32_t i=0; i<_nb_load_store_queue; i++) |
---|
30 | { |
---|
31 | if (not (_size_store_queue [i] > 1)) |
---|
32 | test.error(toString(_("The size of store_queue[%d] must be greater or equal at 2.\n"),i)); |
---|
33 | if (not (_size_load_queue [i] > 0)) |
---|
34 | test.error(toString(_("The size of load_queue[%d] must be greater or equal at 1.\n"),i)); |
---|
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 |
---|
45 | test.error(toString(_("The number of load_store_unit for the thread [%d][%d] is too high.\n"),i,j)); |
---|
46 | |
---|
47 | for (uint32_t i=0; i<_nb_load_store_queue; i++) |
---|
48 | if (map_lsq [i] == false) |
---|
49 | test.error(toString(_("The load store unit [%d] is not linked with a thread.\n"),i)); |
---|
50 | |
---|
51 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End"); |
---|
52 | |
---|
53 | return test; |
---|
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 |
---|