Last change
on this file since 96 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Rev | Line | |
---|
[88] | 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_Front_end/Front_end/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 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Front_end::msg_error" |
---|
| 21 | Parameters_test Parameters::msg_error(void) |
---|
| 22 | { |
---|
| 23 | log_begin(Front_end,FUNCTION); |
---|
| 24 | |
---|
| 25 | Parameters_test test ("Front_end"); |
---|
| 26 | |
---|
| 27 | std::vector<uint32_t> translate_context_from_decod_unit [_nb_decod_unit]; |
---|
| 28 | for (uint32_t i=0; i<_nb_context; ++i) |
---|
| 29 | { |
---|
| 30 | uint32_t x = _link_context_to_decod_unit[i]; |
---|
| 31 | if (x < _nb_decod_unit) |
---|
| 32 | translate_context_from_decod_unit [x].push_back(i); |
---|
| 33 | else |
---|
| 34 | test.error(toString(_("context[%d] is linked with an invalid decod_unit.\n"),i)); |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | for (uint32_t i=0; i<_nb_decod_unit; ++i) |
---|
| 38 | if (translate_context_from_decod_unit [i].size() == 0) |
---|
| 39 | test.error(toString(_("decod_unit[%d] is not linked with a ifetch_unit.\n"),i)); |
---|
| 40 | |
---|
| 41 | log_end(Front_end,FUNCTION); |
---|
| 42 | |
---|
| 43 | return test; |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | }; // end namespace front_end |
---|
| 47 | }; // end namespace multi_front_end |
---|
| 48 | }; // end namespace core |
---|
| 49 | |
---|
| 50 | }; // end namespace behavioural |
---|
| 51 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.