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
RevLine 
[2]1/*
2 * $Id: main.cpp 146 2011-02-01 20:57:54Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
[15]8#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/include/test.h"
[2]9
[146]10#define NB_PARAMS 4
[2]11
12void usage (string exec)
13{
14  cerr << "<Usage> " << exec << " name_instance list_params" << endl
15       << "list_params is :" << endl
[55]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;
[2]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{
[6]29  if (argc <  2+NB_PARAMS)
[2]30    usage (argv[0]);
31
[55]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]);
[146]35  const uint32_t nb_word            = atoi(argv[4]);
36  const uint32_t size_word          = atoi(argv[5]);
[2]37 
[55]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 
[2]44  test (name,param);
45
46  return (EXIT_SUCCESS);
47}
Note: See TracBrowser for help on using the repository browser.