source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/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.5 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/SelfTest/include/test.h"
9
10#define NB_PARAMS 2
11
12void usage (int argc, char * argv[])
13{
14  err (_("<Usage> %s name_instance list_params.\n"),argv[0]);
15  err (_("list_params is :\n"));
16  err (_(" * nb_inst_insert (uint32_t)\n"));
17  err (_(" * nb_inst_retire (uint32_t)\n"));
18
19  exit (1);
20}
21
22#ifndef SYSTEMC
23int main    (int argc, char * argv[])
24#else
25int sc_main (int argc, char * argv[])
26#endif
27{
28  if (argc != static_cast<int>(2+NB_PARAMS))
29    usage (argc, argv);
30
31  uint32_t x = 1;
32
33  string name = argv[x++];
34  uint32_t _nb_inst_insert = atoi(argv[x++]);
35  uint32_t _nb_inst_retire = atoi(argv[x++]);
36
37  int _return = EXIT_SUCCESS;
38  try 
39    {
40      morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Parameters * param = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Parameters
41        (_nb_inst_insert,
42         _nb_inst_retire);
43     
44      msg(_("%s"),param->print(1).c_str());
45     
46      test (name,param);
47    }
48  catch (morpheo::ErrorMorpheo & error)
49    {
50      msg (_("<%s> : %s.\n"),name.c_str(), error.what ());
51      _return = EXIT_FAILURE;
52    }
53  catch (...)
54    {
55      err (_("<%s> : This test must generate a error.\n"),name.c_str());
56      _return = EXIT_FAILURE;
57    }
58
59  return (_return);
60}
Note: See TracBrowser for help on using the repository browser.