source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/SelfTest/src/main.cpp @ 78

Last change on this file since 78 was 78, checked in by rosiere, 16 years ago

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 1.2 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/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_entity     (unsigned int)" << endl
17       << " - nb_access     (unsigned int)" << endl
18//        << " - nb_update     (unsigned int)" << endl
19       << " - size_table    (unsigned int)" << endl
20       << " - table_global  (bool        )" << endl;
21  exit (1);
22}
23
24#ifndef SYSTEMC
25int main    (int argc, char * argv[])
26#else
27int sc_main (int argc, char * argv[])
28#endif
29{
30  if (argc != 2+NB_PARAMS)
31    usage (argv[0]);
32
33  const string   name         = argv[1];
34  const uint32_t nb_entity    = atoi(argv[2]);
35  const uint32_t nb_access    = atoi(argv[3]);
36//   const uint32_t nb_update    = atoi(argv[4]);
37  const uint32_t size_table   = atoi(argv[4]);
38  const bool     table_global = atoi(argv[5]); 
39  morpheo::behavioural::generic::victim::victim_pseudo_lru::Parameters param
40    (nb_entity ,
41     nb_access ,
42//      nb_update ,
43     size_table,
44     table_global);
45
46  test (name,param);
47
48  return (EXIT_SUCCESS);
49}
Note: See TracBrowser for help on using the repository browser.