Changeset 78 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/src/Parameters_msg_error.cpp
- Timestamp:
- Mar 27, 2008, 11:04:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/src/Parameters_msg_error.cpp
r77 r78 21 21 #undef FUNCTION 22 22 #define FUNCTION "Read_unit_to_Execution_unit::msg_error" 23 std::stringParameters::msg_error(void)23 Parameters_test Parameters::msg_error(void) 24 24 { 25 25 log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"Begin"); 26 26 27 std::string msg = "";27 Parameters_test test ("Read_unit_to_Execution_unit"); 28 28 29 29 // TYPE | multiple? | Optionnal? | Exclusive? | Comment … … 90 90 // Test uniq type 91 91 if (type_present [j][k] and type_uniq[k]) 92 msg += " - The execute_unit '"+toString(i)+"' can execute operation of type '"+toString_type(k)+"' at the thread '"+toString(j)+"'. But an another execute_unit can be execute the same type for the same thread. And the type must be uniq !.\n";92 test.error("The execute_unit '"+toString(i)+"' can execute operation of type '"+toString_type(k)+"' at the thread '"+toString(j)+"'. But an another execute_unit can be execute the same type for the same thread. And the type must be uniq !."); 93 93 94 94 type_present [j][k] = true; … … 99 99 for (uint32_t i=0; i<_nb_thread; i++) 100 100 if (not type_present [i][j]) 101 msg += " - The thread '"+toString(i)+"' can't access at the execute_unit to execute the type's operation '"+toString_type(j)+"' (and this type is not optionnal !).\n";101 test.error("The thread '"+toString(i)+"' can't access at the execute_unit to execute the type's operation '"+toString_type(j)+"' (and this type is not optionnal !)."); 102 102 103 103 // Test all excluve type … … 108 108 if ((j != k) and (_table_execute_type[i][k] == true)) 109 109 { 110 msg += " - The execute_unit ["+toString(i)+"] implement the type '"+toString_type(j)+"', and this type is exclusive with all others type.\n";110 test.error("The execute_unit ["+toString(i)+"] implement the type '"+toString_type(j)+"', and this type is exclusive with all others type."); 111 111 break; 112 112 } … … 120 120 121 121 if (j == _nb_thread) 122 msg += " - The execute_unit ["+toString(i)+"] have none source's thread.\n";122 test.error("The execute_unit ["+toString(i)+"] have none source's thread."); 123 123 } 124 125 return msg;126 124 125 if ( (_priority != PRIORITY_STATIC ) and 126 (_priority != PRIORITY_ROUND_ROBIN)) 127 test.error("Unsupported priority scheme. It must be Static or Round Robin."); 128 127 129 log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"End"); 130 131 return test; 128 132 }; 129 133
Note: See TracChangeset
for help on using the changeset viewer.