1 | /* |
---|
2 | * $Id: Parameters_msg_error.cpp 136 2009-10-20 18:52:15Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Types.h" |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/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 ifetch_unit { |
---|
18 | namespace ifetch_queue { |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Ifetch_queue::msg_error" |
---|
22 | Parameters_test Parameters::msg_error(void) |
---|
23 | { |
---|
24 | log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | Parameters_test test ("Ifetch_queue"); |
---|
27 | |
---|
28 | if (not is_multiple (_nb_instruction_in_queue,_nb_instruction)) |
---|
29 | test.error(_("Size of ifetch queue must be a multiple of nb_instruction.\n")); |
---|
30 | |
---|
31 | switch (_queue_scheme) |
---|
32 | { |
---|
33 | case IFETCH_QUEUE_SCHEME_NO_ASSOC : |
---|
34 | case IFETCH_QUEUE_SCHEME_FULL_ASSOC : |
---|
35 | { |
---|
36 | break; |
---|
37 | } |
---|
38 | default : |
---|
39 | { |
---|
40 | test.error(toString(_("Ifetch queue scheme '%s' is not supported. Please wait a next revision.\n"),toString(_queue_scheme).c_str())); |
---|
41 | break; |
---|
42 | } |
---|
43 | } |
---|
44 | |
---|
45 | if (_size_queue == 1) |
---|
46 | test.warning(_("To best perfomance, size_queue must be > 1.\n")); |
---|
47 | |
---|
48 | log_printf(FUNC,Ifetch_queue,FUNCTION,"End"); |
---|
49 | |
---|
50 | return test; |
---|
51 | }; |
---|
52 | |
---|
53 | }; // end namespace ifetch_queue |
---|
54 | }; // end namespace ifetch_unit |
---|
55 | }; // end namespace front_end |
---|
56 | }; // end namespace multi_front_end |
---|
57 | }; // end namespace core |
---|
58 | |
---|
59 | }; // end namespace behavioural |
---|
60 | }; // end namespace morpheo |
---|