Changeset 117 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/SelfTest/src/main.cpp
- Timestamp:
- May 16, 2009, 4:42:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/SelfTest/src/main.cpp
r112 r117 9 9 #include "Behavioural/include/Allocation.h" 10 10 11 #define NB_PARAMS 2 411 #define NB_PARAMS 23 12 12 13 13 void usage (int argc, char * argv[]) … … 22 22 err (_(" * nb_inst_insert [nb_rename_unit] (uint32_t )\n")); 23 23 err (_(" * nb_inst_retire [nb_rename_unit] (uint32_t )\n")); 24 24 //err (_(" * nb_inst_issue (uint32_t )\n")); 25 25 err (_(" * nb_inst_execute [nb_execute_loop] (uint32_t )\n")); 26 26 err (_(" * nb_inst_reexecute (uint32_t )\n")); … … 43 43 err (_(" * issue_priority (Tpriority_t )\n")); 44 44 err (_(" * issue_load_balancing (Tload_balancing_t )\n")); 45 err (_(" * table_routing [nb_rename_unit][nb_inst_issue] (bool )\n"));46 err (_(" * table_issue_type [nb_inst_issue][nb_type] (bool )\n"));47 err (_(" * TYPE_ALU \n"));48 err (_(" * TYPE_SHIFT \n"));49 err (_(" * TYPE_MOVE \n"));50 err (_(" * TYPE_TEST \n"));51 err (_(" * TYPE_MUL \n"));52 err (_(" * TYPE_DIV \n"));53 err (_(" * TYPE_EXTEND \n"));54 err (_(" * TYPE_FIND \n"));55 err (_(" * TYPE_SPECIAL\n"));56 err (_(" * TYPE_CUSTOM \n"));57 err (_(" * TYPE_BRANCH \n"));58 err (_(" * TYPE_MEMORY \n"));45 // err (_(" * table_routing [nb_rename_unit][nb_inst_issue] (bool )\n")); 46 // err (_(" * table_issue_type [nb_inst_issue][nb_type] (bool )\n")); 47 // err (_(" * TYPE_ALU \n")); 48 // err (_(" * TYPE_SHIFT \n")); 49 // err (_(" * TYPE_MOVE \n")); 50 // err (_(" * TYPE_TEST \n")); 51 // err (_(" * TYPE_MUL \n")); 52 // err (_(" * TYPE_DIV \n")); 53 // err (_(" * TYPE_EXTEND \n")); 54 // err (_(" * TYPE_FIND \n")); 55 // err (_(" * TYPE_SPECIAL\n")); 56 // err (_(" * TYPE_CUSTOM \n")); 57 // err (_(" * TYPE_BRANCH \n")); 58 // err (_(" * TYPE_MEMORY \n")); 59 59 err (_(" * size_reexecute_queue (uint32_t )\n")); 60 60 err (_(" * reexecute_priority (Tpriority_t )\n")); … … 120 120 _nb_inst_retire [i] = fromString<uint32_t>(argv[x++]); 121 121 122 122 //uint32_t _nb_inst_issue = fromString<uint32_t >(argv[x++]); 123 123 uint32_t * _nb_inst_execute = new uint32_t [_nb_execute_loop]; 124 124 for (uint32_t i=0; i<_nb_execute_loop; i++) … … 152 152 Tpriority_t _issue_priority = fromString<Tpriority_t >(argv[x++]); 153 153 Tload_balancing_t _issue_load_balancing = fromString<Tload_balancing_t>(argv[x++]); 154 bool ** _table_routing = new bool * [_nb_rename_unit]; 155 for (uint32_t i=0; i<_nb_rename_unit; i++) 156 { 157 _table_routing [i] = new bool [_nb_inst_issue]; 158 for (uint32_t j=0; j<_nb_inst_issue; j++) 159 _table_routing [i][j] = fromString<bool>(argv[x++]); 160 } 161 162 if (argc <= static_cast<int>(2+NB_PARAMS+3*_nb_front_end+2*_sum_nb_context+10*_nb_rename_unit+_nb_execute_loop+_nb_rename_unit*_nb_inst_issue+12*_nb_inst_issue)) 154 // bool ** _table_routing = new bool * [_nb_rename_unit]; 155 // for (uint32_t i=0; i<_nb_rename_unit; i++) 156 // { 157 // _table_routing [i] = new bool [_nb_inst_issue]; 158 // for (uint32_t j=0; j<_nb_inst_issue; j++) 159 // _table_routing [i][j] = fromString<bool>(argv[x++]); 160 // } 161 162 if (argc <= static_cast<int>(2+NB_PARAMS+3*_nb_front_end+2*_sum_nb_context+10*_nb_rename_unit+_nb_execute_loop//+_nb_rename_unit*_nb_inst_issue+12*_nb_inst_issue 163 )) 163 164 usage (argc, argv); 164 165 165 bool ** _table_issue_type = new bool * [_nb_inst_issue];166 for (uint32_t i=0; i<_nb_inst_issue; i++)167 {168 _table_issue_type [i] = new bool [MAX_TYPE];169 for (uint32_t j=0; j<MAX_TYPE; j++)170 _table_issue_type [i][j] = false;171 172 _table_issue_type [i][TYPE_ALU ] = fromString<bool>(argv[x++]);173 _table_issue_type [i][TYPE_SHIFT ] = fromString<bool>(argv[x++]);174 _table_issue_type [i][TYPE_MOVE ] = fromString<bool>(argv[x++]);175 _table_issue_type [i][TYPE_TEST ] = fromString<bool>(argv[x++]);176 _table_issue_type [i][TYPE_MUL ] = fromString<bool>(argv[x++]);177 _table_issue_type [i][TYPE_DIV ] = fromString<bool>(argv[x++]);178 _table_issue_type [i][TYPE_EXTEND ] = fromString<bool>(argv[x++]);179 _table_issue_type [i][TYPE_FIND ] = fromString<bool>(argv[x++]);180 _table_issue_type [i][TYPE_SPECIAL] = fromString<bool>(argv[x++]);181 _table_issue_type [i][TYPE_CUSTOM ] = fromString<bool>(argv[x++]);182 _table_issue_type [i][TYPE_BRANCH ] = fromString<bool>(argv[x++]);183 _table_issue_type [i][TYPE_MEMORY ] = fromString<bool>(argv[x++]);184 }166 // bool ** _table_issue_type = new bool * [_nb_inst_issue]; 167 // for (uint32_t i=0; i<_nb_inst_issue; i++) 168 // { 169 // _table_issue_type [i] = new bool [MAX_TYPE]; 170 // for (uint32_t j=0; j<MAX_TYPE; j++) 171 // _table_issue_type [i][j] = false; 172 173 // _table_issue_type [i][TYPE_ALU ] = fromString<bool>(argv[x++]); 174 // _table_issue_type [i][TYPE_SHIFT ] = fromString<bool>(argv[x++]); 175 // _table_issue_type [i][TYPE_MOVE ] = fromString<bool>(argv[x++]); 176 // _table_issue_type [i][TYPE_TEST ] = fromString<bool>(argv[x++]); 177 // _table_issue_type [i][TYPE_MUL ] = fromString<bool>(argv[x++]); 178 // _table_issue_type [i][TYPE_DIV ] = fromString<bool>(argv[x++]); 179 // _table_issue_type [i][TYPE_EXTEND ] = fromString<bool>(argv[x++]); 180 // _table_issue_type [i][TYPE_FIND ] = fromString<bool>(argv[x++]); 181 // _table_issue_type [i][TYPE_SPECIAL] = fromString<bool>(argv[x++]); 182 // _table_issue_type [i][TYPE_CUSTOM ] = fromString<bool>(argv[x++]); 183 // _table_issue_type [i][TYPE_BRANCH ] = fromString<bool>(argv[x++]); 184 // _table_issue_type [i][TYPE_MEMORY ] = fromString<bool>(argv[x++]); 185 // } 185 186 186 187 uint32_t _size_reexecute_queue = fromString<uint32_t >(argv[x++]); … … 220 221 } 221 222 222 if (argc != static_cast<int>(2+NB_PARAMS+3*_nb_front_end+2*_sum_nb_context+10*_nb_rename_unit+_nb_execute_loop+_nb_rename_unit*_nb_inst_issue+12*_nb_inst_issue+3*_sum_nb_load_store_queue)) 223 if (argc != static_cast<int>(2+NB_PARAMS+3*_nb_front_end+2*_sum_nb_context+10*_nb_rename_unit+_nb_execute_loop+// _nb_rename_unit*_nb_inst_issue+12*_nb_inst_issue 224 3*_sum_nb_load_store_queue)) 223 225 usage (argc, argv); 224 226 … … 294 296 _nb_inst_insert , 295 297 _nb_inst_retire , 296 298 // _nb_inst_issue , 297 299 _nb_inst_execute , 298 300 _nb_inst_reexecute , … … 315 317 _issue_priority , 316 318 _issue_load_balancing , 317 _table_routing ,318 _table_issue_type ,319 // _table_routing , 320 // _table_issue_type , 319 321 _size_reexecute_queue , 320 322 _reexecute_priority , … … 400 402 delete [] _rename_select_priority ; 401 403 402 for (uint32_t i=0; i<_nb_inst_issue; i++)403 delete [] _table_issue_type [i];404 delete [] _table_issue_type;405 406 for (uint32_t i=0; i<_nb_rename_unit; i++)407 delete [] _table_routing [i];408 delete [] _table_routing;404 // for (uint32_t i=0; i<_nb_inst_issue; i++) 405 // delete [] _table_issue_type [i]; 406 // delete [] _table_issue_type; 407 408 // for (uint32_t i=0; i<_nb_rename_unit; i++) 409 // delete [] _table_routing [i]; 410 // delete [] _table_routing; 409 411 410 412 delete [] _link_rename_unit_with_front_end;
Note: See TracChangeset
for help on using the changeset viewer.