source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/src/main.cpp @ 146

Last change on this file since 146 was 146, checked in by rosiere, 13 years ago

1) Integration of RegisterFile_Internal_Banked in RegisterFile?
2) Erase "read_write" interface in RegisterFile_Monolithic component
3) Add smith predictor parameters in Load_store_pointer_unit.
4) Fix not statistics flags

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1/*
2 * $Id: main.cpp 146 2011-02-01 20:57:54Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/include/test.h"
9
10#define NB_PARAMS 4
11
12void usage (string exec)
13{
14  cerr << "<Usage> " << exec << " name_instance list_params" << endl
15       << "list_params is :" << endl
16       << " - nb_port_read       (unsigned int)" << endl
17       << " - nb_port_write      (unsigned int)" << endl
18       << " - nb_word            (unsigned int)" << endl
19       << " - size_word          (unsigned int)" << endl;
20  exit (1);
21}
22
23#ifndef SYSTEMC
24int main    (int argc, char * argv[])
25#else
26int sc_main (int argc, char * argv[])
27#endif
28{
29  if (argc <  2+NB_PARAMS)
30    usage (argv[0]);
31
32  const string   name               = argv[1];
33  const uint32_t nb_port_read       = atoi(argv[2]);
34  const uint32_t nb_port_write      = atoi(argv[3]);
35  const uint32_t nb_word            = atoi(argv[4]);
36  const uint32_t size_word          = atoi(argv[5]);
37 
38  morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters * param = new morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters
39    (nb_port_read ,
40     nb_port_write,
41     nb_word      ,
42     size_word    );
43 
44  test (name,param);
45
46  return (EXIT_SUCCESS);
47}
Note: See TracBrowser for help on using the repository browser.