Changeset 138 for trunk/Platforms/Test/src/sc_main.cpp
- Timestamp:
- May 12, 2010, 7:34:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Platforms/Test/src/sc_main.cpp
r115 r138 20 20 ) 21 21 { 22 cerr << "<Usage> " << argv[0] << endl 23 << "In input stream : " << endl 24 << " * filename_simulator (string )" << endl 25 << " * filename_generator (string )" << endl 26 << " * filename_instance (string )" << endl 27 << " * filename_software (string )" << endl 28 << " * nb_cache_dedicated (uint32_t)" << endl 29 << " * nb_cache_shared (uint32_t)" << endl 30 << " * size cache L1 (byte) (uint32_t)" << endl 31 << " * ratio cache (uint32_t)" << endl; 22 msgError("<Usage> %s\n",argv[0]); 23 msgError("In input stream :\n"); 24 msgError(" * filename_simulator (string )\n"); 25 msgError(" * filename_generator (string )\n"); 26 msgError(" * filename_instance (string )\n"); 27 msgError(" * filename_software (string )\n"); 28 msgError(" * nb_cache_dedicated (uint32_t)\n"); 29 msgError(" * nb_cache_shared (uint32_t)\n"); 30 msgError(" * size cache L1 (byte) (uint32_t)\n"); 31 msgError(" * ratio cache (uint32_t)\n"); 32 32 33 exit (EXIT_FAILURE); 33 34 }; … … 41 42 #endif 42 43 { 43 cout << "<sc_main> Begin" << endl;44 msgInformation("<sc_main> Begin\n"); 44 45 45 46 #ifdef MTI_SYSTEMC … … 52 53 #endif 53 54 55 msgInformation(" "); 54 56 for (int32_t i=0; i<argc; ++i) 55 cout << argv[i] << " ";56 cout << endl;57 msg("%s ",argv[i]); 58 msg("\n"); 57 59 58 60 //============================================================================== … … 72 74 uint32_t cache_size = fromString<uint32_t>(argv[x++]); 73 75 uint32_t cache_ratio = fromString<uint32_t>(argv[x++]); 74 75 // string filename_simulator;76 // string filename_generator;77 // string filename_instance ;78 // string filename_software ;79 // uint32_t nb_cache_dedicated;80 // uint32_t nb_cache_shared ;81 // uint32_t cache_size ;82 // uint32_t cache_ratio ;83 84 // cout << "get filename_simulator ? " << endl;85 // cin >> filename_simulator ;86 87 // cout << "get filename_generator ? " << endl;88 // cin >> filename_generator ;89 90 // cout << "get filename_instance ? " << endl;91 // cin >> filename_instance ;92 93 // cout << "get filename_software ? " << endl;94 // cin >> filename_software ;95 96 // cout << "get nb_cache_dedicated ? " << endl;97 // cin >> nb_cache_dedicated ;98 99 // cout << "get nb_cache_shared ? " << endl;100 // cin >> nb_cache_shared ;101 102 // cout << "get size cache L1 (byte) ? " << endl;103 // cin >> cache_size ;104 105 // cout << "get ratio cache ? " << endl;106 // cin >> cache_ratio ;107 76 108 77 morpheo::behavioural::custom::custom_information_t (*get_custom_information) (void) = NULL; … … 118 87 get_custom_information); 119 88 120 cout << " * return : " << _return << endl;121 cout << "<sc_main> End" << endl;89 msgInformation(" * return : %d\n",_return); 90 msgInformation("<sc_main> End\n"); 122 91 123 92 #ifndef MTI_SYSTEMC
Note: See TracChangeset
for help on using the changeset viewer.