[72] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Types.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/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_execute_unit { |
---|
| 18 | namespace execute_unit { |
---|
| 19 | namespace functionnal_unit { |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #undef FUNCTION |
---|
| 23 | #define FUNCTION "Functionnal_unit::msg_error" |
---|
[78] | 24 | Parameters_test Parameters::msg_error(void) |
---|
[72] | 25 | { |
---|
| 26 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
| 27 | |
---|
[78] | 28 | Parameters_test test("Functionnal_unit"); |
---|
[72] | 29 | |
---|
[77] | 30 | for (uint32_t i=0; i<_nb_type; i++) |
---|
| 31 | for (uint32_t j=0; j<_nb_operation; j++) |
---|
[76] | 32 | if (_timing[i][j]._delay != _timing[i][j]._latence) |
---|
[78] | 33 | test.error("For the type '"+toString(i)+"', and the operation '"+toString(j)+"', the delay and the latence must be equal."); |
---|
[72] | 34 | |
---|
[76] | 35 | if (_have_groupe_MAC and ((_timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MAC ]._latence == 0) or |
---|
| 36 | (_timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MACRC]._latence == 0) or |
---|
| 37 | (_timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MSB ]._latence == 0))) |
---|
[78] | 38 | test.error("The functionnal unit implement a MAC unit, the latence to operation OPERATION_ALU_L_MAC, OPERATION_ALU_L_MACRC and OPERATION_ALU_L_MSB must be higher than 0."); |
---|
[72] | 39 | |
---|
[78] | 40 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
[72] | 41 | |
---|
[78] | 42 | return test; |
---|
[72] | 43 | }; |
---|
| 44 | |
---|
| 45 | }; // end namespace functionnal_unit |
---|
| 46 | }; // end namespace execute_unit |
---|
| 47 | }; // end namespace multi_execute_unit |
---|
| 48 | }; // end namespace execute_loop |
---|
| 49 | }; // end namespace multi_execute_loop |
---|
| 50 | }; // end namespace core |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|