Changeset 111 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/SelfTest/src
- Timestamp:
- Feb 27, 2009, 7:37:40 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/SelfTest/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/SelfTest/src/main.cpp
r88 r111 8 8 #include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/SelfTest/include/test.h" 9 9 10 #define NB_PARAMS 410 #define NB_PARAMS 5 11 11 12 12 void usage (int argc, char * argv[]) … … 14 14 err (_("<Usage> %s name_instance list_params.\n"),argv[0]); 15 15 err (_("list_params is :\n")); 16 err (_(" * nb_context (uint32_t)\n")); 17 err (_(" * nb_inst_decod (uint32_t)\n")); 18 err (_(" * size_queue (uint32_t)\n")); 19 err (_(" * size_general_data (uint32_t)\n")); 20 err (_(" * nb_branch_speculated [nb_context] (uint32_t)\n")); 16 err (_(" * nb_context (uint32_t )\n")); 17 err (_(" * nb_inst_decod (uint32_t )\n")); 18 err (_(" * size_queue (uint32_t )\n")); 19 err (_(" * queue_scheme (Tdecod_queue_scheme_t)\n")); 20 err (_(" * size_general_data (uint32_t )\n")); 21 err (_(" * nb_branch_speculated [nb_context] (uint32_t )\n")); 21 22 22 23 exit (1); … … 38 39 uint32_t _nb_inst_decod = fromString<uint32_t>(argv[x++]); 39 40 uint32_t _size_queue = fromString<uint32_t>(argv[x++]); 41 Tdecod_queue_scheme_t _queue_scheme = fromString<Tdecod_queue_scheme_t>(argv[x++]); 40 42 uint32_t _size_general_data = fromString<uint32_t>(argv[x++]); 41 43 … … 54 56 _nb_inst_decod , 55 57 _size_queue , 58 _queue_scheme , 56 59 _size_general_data, 57 60 _nb_branch_speculated, -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/SelfTest/src/test.cpp
r108 r111 7 7 */ 8 8 9 #define NB_ITERATION 1289 #define NB_ITERATION 512 10 10 #define CYCLE_MAX (128*NB_ITERATION) 11 11 … … 20 20 21 21 #ifdef STATISTICS 22 morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5, 50);22 morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,CYCLE_MAX); 23 23 #endif 24 24 … … 234 234 address_tmp [i] = address_src [i]; 235 235 236 uint32_t x = rand()%_param->_nb_inst_decod; 236 uint32_t x = rand()%_param->_nb_inst_decod; 237 237 238 for (uint32_t i=0; i<_param->_nb_inst_decod; i++) 238 239 { … … 242 243 in_DECOD_IN_CONTEXT_ID [i]->write(context); 243 244 in_DECOD_IN_DEPTH [i]->write(depth [context]); 245 #ifdef DEBUG 246 in_DECOD_IN_ADDRESS [i]->write(address_tmp [context]); 247 #endif 244 248 in_DECOD_IN_ADDRESS_NEXT [i]->write(address_tmp [context]); 245 249 … … 250 254 { 251 255 uint32_t x = rand()%_param->_nb_inst_decod; 256 252 257 for (uint32_t i=0; i<_param->_nb_inst_decod; i++) 253 258 { … … 270 275 nb_inst [context] ++; 271 276 address_src [context] ++; 277 278 LABEL(" * nb_inst : %d",nb_inst [context]); 272 279 } 273 280 } … … 284 291 TEST(Tdepth_t ,out_DECOD_OUT_DEPTH [i]->read(),depth [context]); 285 292 TEST(Taddress_t,out_DECOD_OUT_ADDRESS_NEXT [i]->read(),address_dest [context]); 286 293 #ifdef DEBUG 294 TEST(Taddress_t,out_DECOD_OUT_ADDRESS [i]->read(),address_dest [context]); 295 #endif 287 296 nb_inst [context] --; 288 297 address_dest [context] ++; 298 299 LABEL(" * nb_inst : %d",nb_inst [context]); 289 300 } 290 301 }
Note: See TracChangeset
for help on using the changeset viewer.