/* * $Id$ * * [ Description ] * */ #include "Behavioural/Generic/Counter/SelfTest/include/test.h" #define NB_PARAMS 2 void usage (string exec) { cerr << " " << exec << " name_instance list_params" << endl << "list_params is :" << endl << " - size_data (unsigned int)" << endl << " - nb_port (unsigned int)" << endl; exit (1); } #ifndef SYSTEMC int main (int argc, char * argv[]) #else int sc_main (int argc, char * argv[]) #endif { if (argc != 2+NB_PARAMS) usage (argv[0]); cout << " : Classic usage" << endl; cout << " : Typical parameters" << endl; const string name = argv[1]; const uint32_t size_data = atoi(argv[2]); const uint32_t nb_port = atoi(argv[3]); morpheo::behavioural::generic::counter::Parameters param (size_data, nb_port ); test (name,param); return (EXIT_SUCCESS); }