Changeset 101 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/main.cpp
- Timestamp:
- Jan 15, 2009, 6:19:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/main.cpp
r100 r101 8 8 #include "Behavioural/Generic/Queue/SelfTest/include/test.h" 9 9 10 #define NB_PARAMS 310 #define NB_PARAMS 5 11 11 12 12 void usage (int argc, char * argv[]) … … 14 14 cerr << "<Usage> " << argv[0] << " name_instance list_params" << endl 15 15 << "list_params is :" << endl 16 << " - size_queue (uint32_t)" << endl 17 << " - size_data (uint32_t)" << endl 18 << " - nb_port_slot (uint32_t)" << endl 16 << " - size_queue (uint32_t)" << endl 17 << " - size_data (uint32_t)" << endl 18 << " - nb_port_slot (uint32_t)" << endl 19 << " - have_port_write (bool )" << endl 20 << " - have_port_read (bool )" << endl 19 21 << "" << endl; 20 22 … … 37 39 uint32_t x = 1; 38 40 39 const string name = argv[x++]; 40 const uint32_t size_queue = atoi(argv[x++]); 41 const uint32_t size_data = atoi(argv[x++]); 42 const uint32_t nb_port_slot = atoi(argv[x++]); 43 41 const string name = argv[x++]; 42 const uint32_t size_queue = fromString<uint32_t>(argv[x++]); 43 const uint32_t size_data = fromString<uint32_t>(argv[x++]); 44 const uint32_t nb_port_slot = fromString<uint32_t>(argv[x++]); 45 const bool have_port_write = fromString<bool>(argv[x++]); 46 const bool have_port_read = fromString<bool>(argv[x++]); 44 47 try 45 48 { … … 47 50 (size_queue, 48 51 size_data , 49 nb_port_slot 52 nb_port_slot, 53 have_port_write, 54 have_port_read 50 55 ); 51 56
Note: See TracChangeset
for help on using the changeset viewer.