/*
 * $Id: main.cpp 81 2008-04-15 18:40:01Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/Counter/SelfTest/include/test.h"

#define NB_PARAMS 2

void usage (string exec)
{
  cerr << "<Usage> " << 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 << "<test0> : Classic usage" << endl;
  cout << "<test0> : 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);
}

