Changeset 120 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit
- Timestamp:
- May 26, 2009, 9:01:47 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/include/Parameters.h
r88 r120 44 44 public : bool ** _table_execute_type ; //[nb_execute_unit][nb_type] 45 45 public : bool ** _table_execute_thread ; //[nb_execute_unit][nb_thread] 46 public : bool * _num_thread_valid ; //[nb_thread] 46 47 47 48 public : uint32_t _max_nb_read_unit_port ; … … 83 84 bool ** table_execute_type , 84 85 bool ** table_execute_thread , 86 bool * num_thread_valid , 85 87 bool is_toplevel=false ); 86 88 // public : Parameters (Parameters & param) ; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/src/Parameters.cpp
r109 r120 38 38 bool ** table_execute_type , 39 39 bool ** table_execute_thread , 40 bool * num_thread_valid , 40 41 bool is_toplevel ) 41 42 { … … 56 57 _table_execute_type = table_execute_type ; 57 58 _table_execute_thread = table_execute_thread; 59 _num_thread_valid = num_thread_valid ; 58 60 59 61 log_printf(TRACE,Read_unit_to_Execution_unit,FUNCTION," * table_routing [nb_read_unit][nb_execute_unit][nb_execute_unit_port]"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/src/Parameters_msg_error.cpp
r109 r120 41 41 // TYPE_BRANCH | X | | | 42 42 // TYPE_MEMORY | | | X | 43 44 43 bool type_present [_nb_thread][_nb_type]; 45 44 for (uint32_t i=0; i<_nb_thread; i++) … … 49 48 for (uint32_t i=0; i<_nb_execute_unit; i++) 50 49 for (uint32_t j=0; j<_nb_thread; j++) 51 if (_table_execute_thread [i][j] == true) 50 if (_num_thread_valid [j] and 51 (_table_execute_thread [i][j] == true)) 52 52 // this execute_unit execute this thread ! 53 53 for (Ttype_t k=0; k<_nb_type; k++) … … 66 66 if (not is_type_valid(j)) 67 67 for (uint32_t i=0; i<_nb_thread; i++) 68 if (type_present [i][j]) 68 if (_num_thread_valid [j] and 69 (type_present [i][j])) 69 70 test.error(toString(_("The thread '%d' can execute the type's operation '%s' but this type is invalid.\n"),i,toString(j).c_str())); 70 71 … … 72 73 if (is_type_valid(j) and not is_type_optionnal(j)) 73 74 for (uint32_t i=0; i<_nb_thread; i++) 74 if (not type_present [i][j]) 75 if (_num_thread_valid [i] and 76 (not type_present [i][j])) 75 77 test.error(toString(_("The thread '%d' can't access at the execute_unit to execute the type's operation '%s' (and this type is not optional !).\n"),i,toString(j).c_str())); 76 78
Note: See TracChangeset
for help on using the changeset viewer.