Ignore:
Timestamp:
Jul 8, 2009, 8:40:08 PM (15 years ago)
Author:
rosiere
Message:

1) add constant method
2) test with systemc 2.2.0

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/include/test.h

    r88 r131  
    1515#include <sys/time.h>
    1616
     17#define NB_ITERATION  128
     18#define CYCLE_MAX     (128*NB_ITERATION)
     19
     20#include "Common/include/Time.h"
     21#include "Common/include/Test.h"
    1722#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h"
    18 #include "Common/include/Time.h"
    1923
    2024using namespace std;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/src/main.cpp

    r88 r131  
    8585    _nb_inst_retire_rob  [i] = atoi(argv[x++]);
    8686 
     87  int _return = EXIT_SUCCESS;
    8788  try
    8889    {
     
    114115  catch (morpheo::ErrorMorpheo & error)
    115116    {
    116       cout << "<" << name << "> : " <<  error.what ();
    117       exit (EXIT_FAILURE);
    118     }
    119   catch (...)
    120     {
    121       cerr << "<" << name << "> : This test must generate a error" << endl;
    122       exit (EXIT_FAILURE);
     117      msg (_("<%s> :\n%s"),name.c_str(), error.what ());
     118      _return = EXIT_FAILURE;
    123119    }
    124120
    125   return (EXIT_SUCCESS);
     121  try
     122    {
     123      if (_return == EXIT_SUCCESS)
     124        TEST_OK("OOO_Engine : no error");
     125      else
     126        TEST_KO("OOO_Engine : a lot of error");
     127    }
     128  catch (morpheo::ErrorMorpheo & error)
     129    {
     130//       msg (_("<%s> :\n%s"),name.c_str(), error.what ());
     131      _return = EXIT_FAILURE;
     132    }
     133
     134  return (_return);
    126135}
    127136
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/src/test.cpp

    r128 r131  
    77 */
    88
    9 #define NB_ITERATION  1
    10 #define CYCLE_MAX     (10240*NB_ITERATION)
    11 
    129#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/include/test.h"
    13 #include "Common/include/Test.h"
    1410
    1511void test (string name,
     
    2218#endif
    2319
    24   _model.set_model(NAME_Register_unit            ,MODEL_SYSTEMC, true);
    25   _model.set_model(NAME_RegisterFile             ,MODEL_SYSTEMC, true);
    26   _model.set_model(NAME_RegisterFile_Monolithic  ,MODEL_SYSTEMC, true);
    27   _model.set_model(NAME_RegisterFile_Multi_Banked,MODEL_SYSTEMC, true);
    28   _model.set_model(NAME_Register_unit_Glue       ,MODEL_SYSTEMC, true);
     20  _model.set_model(MODEL_SYSTEMC,true);
    2921
    3022  Tusage_t _usage = USE_ALL;
Note: See TracChangeset for help on using the changeset viewer.