1 | /* |
---|
2 | * $Id: Parameters_msg_error.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Parameters.h" |
---|
9 | #include <sstream> |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_execute_loop { |
---|
15 | namespace execute_loop { |
---|
16 | namespace multi_execute_unit { |
---|
17 | namespace execute_unit { |
---|
18 | namespace load_store_unit { |
---|
19 | |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "Load_store_unit::msg_error" |
---|
23 | Parameters_test Parameters::msg_error(void) |
---|
24 | { |
---|
25 | log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | Parameters_test test("Load_store_unit"); |
---|
28 | |
---|
29 | switch (_speculative_load) |
---|
30 | { |
---|
31 | case SPECULATIVE_LOAD_COMMIT : |
---|
32 | { |
---|
33 | if (not (_nb_bypass_memory == 0)) |
---|
34 | test.error("Bypass memory is not supported. Please wait a next revision."); |
---|
35 | |
---|
36 | break; |
---|
37 | } |
---|
38 | case NO_SPECULATIVE_LOAD : |
---|
39 | case SPECULATIVE_LOAD_ACCESS : |
---|
40 | // case SPECULATIVE_LOAD_BYPASS : |
---|
41 | default : |
---|
42 | { |
---|
43 | if (not (_nb_bypass_memory == 0)) |
---|
44 | test.error("In the load scheme '"+toString(_speculative_load)+"', they have none bypass."); |
---|
45 | |
---|
46 | test.error("Speculative load scheme '"+toString(_speculative_load)+"' is not supported. Please wait a next revision."); |
---|
47 | break; |
---|
48 | } |
---|
49 | } |
---|
50 | |
---|
51 | if (not (_size_store_queue >= 2)) |
---|
52 | test.error("Store queue must have at less two slot."); |
---|
53 | |
---|
54 | if (not (_nb_bypass_memory <= _size_load_queue)) |
---|
55 | test.error("Bypass number must be less than load_queue's size."); |
---|
56 | |
---|
57 | log_printf(FUNC,Load_store_unit,FUNCTION,"End"); |
---|
58 | |
---|
59 | return test; |
---|
60 | |
---|
61 | }; |
---|
62 | |
---|
63 | }; // end namespace load_store_unit |
---|
64 | }; // end namespace execute_unit |
---|
65 | }; // end namespace multi_execute_unit |
---|
66 | }; // end namespace execute_loop |
---|
67 | }; // end namespace multi_execute_loop |
---|
68 | }; // end namespace core |
---|
69 | |
---|
70 | }; // end namespace behavioural |
---|
71 | }; // end namespace morpheo |
---|