/*
 * $Id$
 *
 * [ Description ]
 * 
 * Test 0
 */

#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/SelfTest/include/test.h"

#define NB_PARAMS 4

void usage (string exec)
{
  cerr << "<Usage> " << exec << " name_instance list_params" << endl
       << "list_params is :" << endl
       << " - size_counter       (unsigned int)" << endl
       << " - nb_counter         (unsigned int)" << endl
       << " - nb_prediction      (unsigned int)" << endl
       << " - nb_branch_complete (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]);

  const string   name               = argv[1];
  const uint32_t size_counter       = atoi(argv[2]);
  const uint32_t nb_counter         = atoi(argv[3]);
  const uint32_t nb_prediction      = atoi(argv[4]);
  const uint32_t nb_branch_complete = atoi(argv[5]);

  morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::pattern_history_table::Parameters param (size_counter       ,
																       nb_counter         ,
																       nb_prediction      ,
																       nb_branch_complete );

  test (name,param);

  return (EXIT_SUCCESS);
}
