[73] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 118 2009-05-20 22:01:32Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Types.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Parameters.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace core { |
---|
| 15 | namespace multi_execute_loop { |
---|
| 16 | namespace execute_loop { |
---|
| 17 | namespace multi_write_unit { |
---|
| 18 | namespace write_unit { |
---|
| 19 | namespace write_queue { |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #undef FUNCTION |
---|
| 23 | #define FUNCTION "Write_queue::msg_error" |
---|
[78] | 24 | Parameters_test Parameters::msg_error(void) |
---|
[73] | 25 | { |
---|
| 26 | log_printf(FUNC,Write_queue,FUNCTION,"Begin"); |
---|
| 27 | |
---|
[113] | 28 | Parameters_test test (_type); |
---|
[73] | 29 | |
---|
[118] | 30 | if ((_bypass_write_scheme == BYPASS_WRITE_FROM_ALU) and (_nb_bypass_write > _size_queue)) |
---|
[113] | 31 | test.error("The write_queue can't have more bypass_write than entry in the queue.\n"); |
---|
[118] | 32 | if ((_bypass_write_scheme == BYPASS_WRITE_FROM_QUEUE) and (_nb_bypass_write > _size_queue-1)) |
---|
| 33 | test.error("The write_queue can't have more bypass_write than entry in the queue -1 (the write_queue[0] is unnecessary).\n"); |
---|
[74] | 34 | |
---|
[78] | 35 | log_printf(FUNC,Write_queue,FUNCTION,"End"); |
---|
[73] | 36 | |
---|
[78] | 37 | return test; |
---|
[73] | 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace write_queue |
---|
| 41 | }; // end namespace write_unit |
---|
| 42 | }; // end namespace multi_write_unit |
---|
| 43 | }; // end namespace execute_loop |
---|
| 44 | }; // end namespace multi_execute_loop |
---|
| 45 | }; // end namespace core |
---|
| 46 | |
---|
| 47 | }; // end namespace behavioural |
---|
| 48 | }; // end namespace morpheo |
---|