Changeset 66 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/SelfTest/src/main.cpp
- Timestamp:
- Dec 6, 2007, 11:03:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/SelfTest/src/main.cpp
r55 r66 8 8 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/SelfTest/include/test.h" 9 9 10 #define NB_PARAMS 010 #define NB_PARAMS 13 11 11 12 12 void usage (int argc, char * argv[]) … … 16 16 << " - size_queue (unsigned int)" << endl 17 17 << " - nb_context (unsigned int)" << endl 18 << " - nb_front_end (unsigned int)" << endl 19 << " - nb_ooo_engine (unsigned int)" << endl 18 20 << " - nb_packet (unsigned int)" << endl 19 21 << " - size_general_data (unsigned int)" << endl … … 40 42 #endif 41 43 { 42 if (argc <2+NB_PARAMS)44 if (argc != 2+NB_PARAMS) 43 45 usage (argc, argv); 44 46 45 const string name = argv[1]; 46 const uint32_t size_queue = atoi(argv[ 2]); 47 const uint32_t nb_context = atoi(argv[ 3]); 48 const uint32_t nb_packet = atoi(argv[ 4]); 49 const uint32_t size_general_data = atoi(argv[ 5]); 50 const uint32_t size_special_data = atoi(argv[ 6]); 51 const uint32_t nb_general_register = atoi(argv[ 7]); 52 const uint32_t nb_special_register = atoi(argv[ 8]); 53 const uint32_t nb_operation = atoi(argv[ 9]); 54 const uint32_t nb_type = atoi(argv[10]); 55 const uint32_t nb_gpr_write = atoi(argv[11]); 56 const uint32_t nb_spr_write = atoi(argv[12]); 47 uint32_t x=1; 48 const string name = argv[x++]; 49 const uint32_t size_queue = atoi(argv[x++]); 50 const uint32_t nb_context = atoi(argv[x++]); 51 const uint32_t nb_front_end = atoi(argv[x++]); 52 const uint32_t nb_ooo_engine = atoi(argv[x++]); 53 const uint32_t nb_packet = atoi(argv[x++]); 54 const uint32_t size_general_data = atoi(argv[x++]); 55 const uint32_t size_special_data = atoi(argv[x++]); 56 const uint32_t nb_general_register = atoi(argv[x++]); 57 const uint32_t nb_special_register = atoi(argv[x++]); 58 const uint32_t nb_operation = atoi(argv[x++]); 59 const uint32_t nb_type = atoi(argv[x++]); 60 const uint32_t nb_gpr_write = atoi(argv[x++]); 61 const uint32_t nb_spr_write = atoi(argv[x++]); 57 62 58 63 try … … 61 66 ( size_queue 62 67 ,nb_context 68 ,nb_front_end 69 ,nb_ooo_engine 63 70 ,nb_packet 64 71 ,size_general_data
Note: See TracChangeset
for help on using the changeset viewer.