Ignore:
Timestamp:
May 1, 2008, 6:48:45 PM (16 years ago)
Author:
rosiere
Message:
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit
Files:
33 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  256
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
     
    1215#include "Behavioural/include/Allocation.h"
    1316#include <list>
    14 
    15 #define NB_ITERATION  256
    16 #define CYCLE_MAX     (128*NB_ITERATION)
    17 
    18 #define LABEL(str...)                                                   \
    19   {                                                                     \
    20     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    21     msg (str);                                                          \
    22     msg (_("\n"));                                                      \
    23   } while(0)
    24 
    25 #define SC_START(cycle_offset)                                                       \
    26   do                                                                                 \
    27     {                                                                                \
    28       /*cout << "SC_START (begin)" << endl;*/                                        \
    29                                                                                      \
    30       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    31       if (cycle_offset != 0)                                                         \
    32         {                                                                            \
    33           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    34         }                                                                            \
    35                                                                                      \
    36       if (cycle_current > CYCLE_MAX)                                                 \
    37         {                                                                            \
    38           TEST_KO("Maximal cycles Reached");                                         \
    39         }                                                                            \
    40                                                                                      \
    41       sc_start(cycle_offset);                                                        \
    42                                                                                      \
    43       /*cout << "SC_START (end  )" << endl;*/                                        \
    44     } while(0)
    4517
    4618class request_t
     
    7850#endif
    7951
    80   Load_Store_pointer_unit * _Load_Store_pointer_unit = new Load_Store_pointer_unit (name.c_str(),
     52  Load_Store_pointer_unit * _Load_Store_pointer_unit = new Load_Store_pointer_unit
     53    (name.c_str(),
    8154#ifdef STATISTICS
    82                                              _parameters_statistics,
     55     _parameters_statistics,
    8356#endif
    84                                              _param);
     57     _param,
     58     USE_ALL);
    8559 
    8660#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/include/Load_Store_pointer_unit.h

    r81 r82  
    120120#endif
    121121   Parameters                                  * param,
    122    morpheo::behavioural::Tusage_t                usage=USE_ALL
     122   morpheo::behavioural::Tusage_t                usage
    123123   );
    124124  public  :          ~Load_Store_pointer_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/include/Parameters.h

    r81 r82  
    5555  public : ~Parameters () ;
    5656
    57   public :        std::string  msg_error  (void);
     57  public :        Parameters_test msg_error  (void);
    5858
    59   public :        std::string   print      (uint32_t depth);
    60   public : friend std::ostream& operator<< (std::ostream& output_stream,
    61                                             morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::load_store_pointer_unit::Parameters & x);
     59  public :        std::string     print      (uint32_t depth);
     60  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     61                                              morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::load_store_pointer_unit::Parameters & x);
    6262  };
    6363
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/src/Parameters_msg_error.cpp

    r81 r82  
    2121#undef  FUNCTION
    2222#define FUNCTION "Load_Store_pointer_unit::msg_error"
    23   std::string Parameters::msg_error(void)
     23  Parameters_test Parameters::msg_error(void)
    2424  {
    2525    log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin");
    2626
    27     std::string msg = "";
     27    Parameters_test test ("Load_Store_pointer_unit");
    2828
    2929    for (uint32_t i=0; i<_nb_load_store_queue; i++)
    3030      {
    3131        if (not (_size_store_queue [i] > 1))
    32           msg += "  - The size of store_queue["+toString(i)+"] must be greater or equal at 2.\n";
     32          test.error(toString(_("The size of store_queue[%d] must be greater or equal at 2.\n"),i));
    3333        if (not (_size_load_queue  [i] > 0))
    34           msg += "  - The size of load_queue["+toString(i)+"] must be greater or equal at 1.\n";
     34          test.error(toString(_("The size of load_queue[%d] must be greater or equal at 1.\n"),i));
    3535      }
    3636
     
    4343          map_lsq [_link_load_store_unit_with_thread[i][j]] = true;
    4444        else
    45           msg += "  - The number of load_store_unit for the thread ["+toString(i)+"]["+toString(j)+"] is too high.\n";
     45          test.error(toString(_("The number of load_store_unit for the thread [%d][%d] is too high.\n"),i,j));
    4646         
    4747    for (uint32_t i=0; i<_nb_load_store_queue; i++)
    4848      if (map_lsq [i] == false)
    49         msg += "  - The load store unit ["+toString(i)+"] is not linked with a thread.\n";
     49        test.error(toString(_("The load store unit [%d] is not linked with a thread.\n"),i));
    5050   
    51     return msg;
     51    return test;
    5252
    5353    log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  32
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
     
    1215#include <list>
    1316
    14 #define NB_ITERATION  32
    15 #define CYCLE_MAX     (128*NB_ITERATION)
    16 
    17 #define LABEL(str...)                                                   \
    18   {                                                                     \
    19     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    20     msg (str);                                                          \
    21     msg (_("\n"));                                                      \
    22   } while(0)
    23 
    24 #define SC_START(cycle_offset)                                                       \
    25   do                                                                                 \
    26     {                                                                                \
    27       /*cout << "SC_START (begin)" << endl;*/                                        \
    28                                                                                      \
    29       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    30       if (cycle_offset != 0)                                                         \
    31         {                                                                            \
    32           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    33         }                                                                            \
    34                                                                                      \
    35       if (cycle_current > CYCLE_MAX)                                                 \
    36         {                                                                            \
    37           TEST_KO("Maximal cycles Reached");                                         \
    38         }                                                                            \
    39                                                                                      \
    40       sc_start(cycle_offset);                                                        \
    41                                                                                      \
    42       /*cout << "SC_START (end  )" << endl;*/                                        \
    43     } while(0)
    44 
    4517void test (string name,
    4618           morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::dependency_checking_unit::Parameters * _param)
     
    5224#endif
    5325
    54   Dependency_checking_unit * _Dependency_checking_unit = new Dependency_checking_unit (name.c_str(),
     26  Dependency_checking_unit * _Dependency_checking_unit = new Dependency_checking_unit
     27    (name.c_str(),
    5528#ifdef STATISTICS
    56                                              _parameters_statistics,
     29     _parameters_statistics,
    5730#endif
    58                                              _param);
     31     _param,
     32     USE_ALL);
    5933 
    6034#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/include/Dependency_checking_unit.h

    r81 r82  
    132132#endif
    133133   Parameters                                  * param,
    134    morpheo::behavioural::Tusage_t                usage=USE_ALL
     134   morpheo::behavioural::Tusage_t                usage
    135135   );
    136136  public  :          ~Dependency_checking_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/include/Parameters.h

    r81 r82  
    4848  public : ~Parameters () ;
    4949
    50   public :        std::string  msg_error  (void);
     50  public :        Parameters_test msg_error  (void);
    5151
    52   public :        std::string   print      (uint32_t depth);
    53   public : friend std::ostream& operator<< (std::ostream& output_stream,
    54                                             morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::dependency_checking_unit::Parameters & x);
     52  public :        std::string     print      (uint32_t depth);
     53  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     54                                              morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::dependency_checking_unit::Parameters & x);
    5555  };
    5656
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/src/Parameters_msg_error.cpp

    r81 r82  
    2222#undef  FUNCTION
    2323#define FUNCTION "Dependency_checking_unit::msg_error"
    24   std::string Parameters::msg_error(void)
     24  Parameters_test Parameters::msg_error(void)
    2525  {
    2626    log_printf(FUNC,Dependency_checking_unit,FUNCTION,"Begin");
    2727
    28     std::string msg = "";
     28    Parameters_test test ("Dependency_checking_unit");
    2929
    30     return msg;
     30    return test;
    3131
    3232    log_printf(FUNC,Dependency_checking_unit,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    12 
    13 #define NB_ITERATION  1
    14 #define CYCLE_MAX     (128*NB_ITERATION)
    15 
    16 #define LABEL(str...)                                                   \
    17   {                                                                     \
    18     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    19     msg (str);                                                          \
    20     msg (_("\n"));                                                      \
    21   } while(0)
    22 
    23 #define SC_START(cycle_offset)                                                       \
    24   do                                                                                 \
    25     {                                                                                \
    26       /*cout << "SC_START (begin)" << endl;*/                                        \
    27                                                                                      \
    28       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    29       if (cycle_offset != 0)                                                         \
    30         {                                                                            \
    31           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    32         }                                                                            \
    33                                                                                      \
    34       if (cycle_current > CYCLE_MAX)                                                 \
    35         {                                                                            \
    36           TEST_KO("Maximal cycles Reached");                                         \
    37         }                                                                            \
    38                                                                                      \
    39       sc_start(cycle_offset);                                                        \
    40                                                                                      \
    41       /*cout << "SC_START (end  )" << endl;*/                                        \
    42     } while(0)
    4315
    4416void test (string name,
     
    5123#endif
    5224
    53   Free_List_unit * _Free_List_unit = new Free_List_unit (name.c_str(),
     25  Free_List_unit * _Free_List_unit = new Free_List_unit
     26    (name.c_str(),
    5427#ifdef STATISTICS
    55                                              _parameters_statistics,
    56 #endif
    57                                              _param);
     28     _parameters_statistics,
     29#endif
     30     _param,
     31     USE_ALL);
    5832 
    5933#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Free_List_unit.h

    r81 r82  
    117117#endif
    118118   Parameters                                  * param,
    119    morpheo::behavioural::Tusage_t                usage=USE_ALL
     119   morpheo::behavioural::Tusage_t                usage
    120120   );
    121121  public  :          ~Free_List_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Parameters.h

    r81 r82  
    5656  public : ~Parameters () ;
    5757
    58   public :        std::string  msg_error  (void);
     58  public :        Parameters_test msg_error  (void);
    5959
    60   public :        std::string   print      (uint32_t depth);
    61   public : friend std::ostream& operator<< (std::ostream& output_stream,
    62                                             morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::free_list_unit::Parameters & x);
     60  public :        std::string     print      (uint32_t depth);
     61  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     62                                              morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::free_list_unit::Parameters & x);
    6363  };
    6464
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Parameters_msg_error.cpp

    r81 r82  
    2222#undef  FUNCTION
    2323#define FUNCTION "Free_List_unit::msg_error"
    24   std::string Parameters::msg_error(void)
     24  Parameters_test Parameters::msg_error(void)
    2525  {
    2626    log_printf(FUNC,Free_List_unit,FUNCTION,"Begin");
    2727
    28     std::string msg = "";
     28    Parameters_test test ("Free_List_unit");
    2929
    3030    if (_nb_general_register <= _nb_thread*_nb_general_register_logic)
    31       msg += "  - The number of physical general register is insufficient.\n";
     31      test.error(_("The number of physical general register is insufficient.\n"));
    3232    if (_nb_special_register <= _nb_thread*_nb_special_register_logic)
    33       msg += "  - The number of physical special register is insufficient.\n";
     33      test.error(_("The number of physical special register is insufficient.\n"));
    3434    if (not is_multiple (_nb_bank, _nb_pop))
    35       msg += "  - Number of pop must be a multiple of number of bank.\n";
     35      test.error(_("Number of pop must be a multiple of number of bank.\n"));
    3636    if (not is_power2 (_nb_bank))
    37       msg += "  - Number of bank must be a power of 2.\n";
     37      test.error(_("Number of bank must be a power of 2.\n"));
    3838
    3939    if ((_priority != PRIORITY_STATIC) and
    4040        (_priority != PRIORITY_ROUND_ROBIN))
    41       msg += "  - Unsupported priority scheme. Supported scheme are "+toString(PRIORITY_STATIC)+" and "+toString(PRIORITY_ROUND_ROBIN)+".\n";
     41      test.error(toString(_("Unsupported priority scheme. Supported scheme are %s and %s.\n"),toString(PRIORITY_STATIC).c_str(),toString(PRIORITY_ROUND_ROBIN).c_str()));
    4242
    43     return msg;
     43    return test;
    4444
    4545    log_printf(FUNC,Free_List_unit,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  64
     10#define CYCLE_MAX     (1024*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
     
    1215#include "Behavioural/include/Allocation.h"
    1316
    14 #define NB_ITERATION  64
    15 #define CYCLE_MAX     (1024*NB_ITERATION)
    16 
    17 #define LABEL(str...)                                                   \
    18   {                                                                     \
    19     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    20     msg (str);                                                          \
    21     msg (_("\n"));                                                      \
    22   } while(0)
    23 
    24 #define SC_START(cycle_offset)                                                       \
    25   do                                                                                 \
    26     {                                                                                \
    27       /*cout << "SC_START (begin)" << endl;*/                                        \
    28                                                                                      \
    29       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    30       if (cycle_offset != 0)                                                         \
    31         {                                                                            \
    32           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    33         }                                                                            \
    34                                                                                      \
    35       if (cycle_current > CYCLE_MAX)                                                 \
    36         {                                                                            \
    37           TEST_KO("Maximal cycles Reached");                                         \
    38         }                                                                            \
    39                                                                                      \
    40       sc_start(cycle_offset);                                                        \
    41                                                                                      \
    42       /*cout << "SC_START (end  )" << endl;*/                                        \
    43     } while(0)
    44 
    4517void test (string name,
    4618           morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Parameters * _param)
     
    5224#endif
    5325
    54   Register_Address_Translation_unit * _Register_Address_Translation_unit = new Register_Address_Translation_unit (name.c_str(),
     26  Register_Address_Translation_unit * _Register_Address_Translation_unit = new Register_Address_Translation_unit
     27    (name.c_str(),
    5528#ifdef STATISTICS
    56                                              _parameters_statistics,
     29     _parameters_statistics,
    5730#endif
    58                                              _param);
     31     _param,
     32     USE_ALL);
    5933 
    6034#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Parameters.h

    r81 r82  
    5151  public : ~Parameters () ;
    5252
    53   public :        std::string  msg_error  (void);
     53  public :        Parameters_test msg_error  (void);
    5454
    55   public :        std::string   print      (uint32_t depth);
    56   public : friend std::ostream& operator<< (std::ostream& output_stream,
    57                                             morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Parameters & x);
     55  public :        std::string     print      (uint32_t depth);
     56  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     57                                              morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Parameters & x);
    5858  };
    5959
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Register_Address_Translation_unit.h

    r81 r82  
    135135#endif
    136136   Parameters                                  * param,
    137    morpheo::behavioural::Tusage_t                usage=USE_ALL
     137   morpheo::behavioural::Tusage_t                usage
    138138   );
    139139  public  :          ~Register_Address_Translation_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/src/Parameters_msg_error.cpp

    r81 r82  
    1919namespace register_address_translation_unit {
    2020
    21 
    2221#undef  FUNCTION
    2322#define FUNCTION "Register_Address_Translation_unit::msg_error"
    24   std::string Parameters::msg_error(void)
     23  Parameters_test Parameters::msg_error(void)
    2524  {
    2625    log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin");
    2726
    28     std::string msg = "";
     27    Parameters_test test ("Register_Address_Translation_unit");
    2928
    30     return msg;
     29    return test;
    3130
    3231    log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  256
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    12 
    13 #define NB_ITERATION  256
    14 #define CYCLE_MAX     (128*NB_ITERATION)
    15 
    16 #define LABEL(str...)                                                   \
    17   {                                                                     \
    18     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    19     msg (str);                                                          \
    20     msg (_("\n"));                                                      \
    21   } while(0)
    22 
    23 #define SC_START(cycle_offset)                                                       \
    24   do                                                                                 \
    25     {                                                                                \
    26       /*cout << "SC_START (begin)" << endl;*/                                        \
    27                                                                                      \
    28       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    29       if (cycle_offset != 0)                                                         \
    30         {                                                                            \
    31           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    32         }                                                                            \
    33                                                                                      \
    34       if (cycle_current > CYCLE_MAX)                                                 \
    35         {                                                                            \
    36           TEST_KO("Maximal cycles Reached");                                         \
    37         }                                                                            \
    38                                                                                      \
    39       sc_start(cycle_offset);                                                        \
    40                                                                                      \
    41       /*cout << "SC_START (end  )" << endl;*/                                        \
    42     } while(0)
    4315
    4416void test (string name,
     
    5123#endif
    5224
    53   Register_translation_unit_Glue * _Register_translation_unit_Glue = new Register_translation_unit_Glue (name.c_str(),
     25  Register_translation_unit_Glue * _Register_translation_unit_Glue = new Register_translation_unit_Glue
     26    (name.c_str(),
    5427#ifdef STATISTICS
    55                                              _parameters_statistics,
    56 #endif
    57                                              _param);
     28     _parameters_statistics,
     29#endif
     30     _param,
     31     USE_ALL);
    5832 
    5933#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Parameters.h

    r81 r82  
    3535  public : ~Parameters () ;
    3636
    37   public :        std::string  msg_error  (void);
     37  public :        Parameters_test msg_error  (void);
    3838
    39   public :        std::string   print      (uint32_t depth);
    40   public : friend std::ostream& operator<< (std::ostream& output_stream,
    41                                             morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Parameters & x);
     39  public :        std::string     print      (uint32_t depth);
     40  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     41                                              morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Parameters & x);
    4242  };
    4343
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Register_translation_unit_Glue.h

    r81 r82  
    107107#endif
    108108   Parameters                                  * param,
    109    morpheo::behavioural::Tusage_t                usage=USE_ALL
     109   morpheo::behavioural::Tusage_t                usage
    110110   );
    111111  public  :          ~Register_translation_unit_Glue             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/src/Parameters_msg_error.cpp

    r81 r82  
    2222#undef  FUNCTION
    2323#define FUNCTION "Register_translation_unit_Glue::msg_error"
    24   std::string Parameters::msg_error(void)
     24  Parameters_test Parameters::msg_error(void)
    2525  {
    2626    log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin");
    2727
    28     std::string msg = "";
     28    Parameters_test test ("Register_translation_unit_Glue");
    2929
    30     return msg;
     30    return test;
    3131
    3232    log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    12 
    13 #define NB_ITERATION  1
    14 #define CYCLE_MAX     (128*NB_ITERATION)
    15 
    16 #define LABEL(str...)                                                   \
    17   {                                                                     \
    18     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    19     msg (str);                                                          \
    20     msg (_("\n"));                                                      \
    21   } while(0)
    22 
    23 #define SC_START(cycle_offset)                                                       \
    24   do                                                                                 \
    25     {                                                                                \
    26       /*cout << "SC_START (begin)" << endl;*/                                        \
    27                                                                                      \
    28       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    29       if (cycle_offset != 0)                                                         \
    30         {                                                                            \
    31           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    32         }                                                                            \
    33                                                                                      \
    34       if (cycle_current > CYCLE_MAX)                                                 \
    35         {                                                                            \
    36           TEST_KO("Maximal cycles Reached");                                         \
    37         }                                                                            \
    38                                                                                      \
    39       sc_start(cycle_offset);                                                        \
    40                                                                                      \
    41       /*cout << "SC_START (end  )" << endl;*/                                        \
    42     } while(0)
    4315
    4416void test (string name,
     
    5123#endif
    5224
    53   Register_translation_unit * _Register_translation_unit = new Register_translation_unit (name.c_str(),
     25  Register_translation_unit * _Register_translation_unit = new Register_translation_unit
     26    (name.c_str(),
    5427#ifdef STATISTICS
    55                                              _parameters_statistics,
    56 #endif
    57                                              _param);
     28     _parameters_statistics,
     29#endif
     30     _param,
     31     USE_ALL);
    5832 
    5933#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    1215#include <list>
    13 
    14 #define NB_ITERATION  1
    15 #define CYCLE_MAX     (128*NB_ITERATION)
    16 
    17 #define LABEL(str...)                                                   \
    18   {                                                                     \
    19     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    20     msg (str);                                                          \
    21     msg (_("\n"));                                                      \
    22   } while(0)
    23 
    24 #define SC_START(cycle_offset)                                                       \
    25   do                                                                                 \
    26     {                                                                                \
    27       /*cout << "SC_START (begin)" << endl;*/                                        \
    28                                                                                      \
    29       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    30       if (cycle_offset != 0)                                                         \
    31         {                                                                            \
    32           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    33         }                                                                            \
    34                                                                                      \
    35       if (cycle_current > CYCLE_MAX)                                                 \
    36         {                                                                            \
    37           TEST_KO("Maximal cycles Reached");                                         \
    38         }                                                                            \
    39                                                                                      \
    40       sc_start(cycle_offset);                                                        \
    41                                                                                      \
    42       /*cout << "SC_START (end  )" << endl;*/                                        \
    43     } while(0)
    4416
    4517
     
    6234#endif
    6335
    64   Stat_List_unit * _Stat_List_unit = new Stat_List_unit (name.c_str(),
     36  Stat_List_unit * _Stat_List_unit = new Stat_List_unit
     37    (name.c_str(),
    6538#ifdef STATISTICS
    66                                              _parameters_statistics,
     39     _parameters_statistics,
    6740#endif
    68                                              _param);
     41     _param,
     42     USE_ALL);
    6943 
    7044#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Parameters.h

    r81 r82  
    6868  public : ~Parameters () ;
    6969
    70   public :        std::string  msg_error  (void);
     70  public :        Parameters_test msg_error  (void);
    7171
    72   public :        std::string   print      (uint32_t depth);
    73   public : friend std::ostream& operator<< (std::ostream& output_stream,
    74                                             morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::stat_list_unit::Parameters & x);
     72  public :        std::string     print      (uint32_t depth);
     73  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     74                                              morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::stat_list_unit::Parameters & x);
    7575  };
    7676
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Stat_List_unit.h

    r81 r82  
    136136#endif
    137137   Parameters                                  * param,
    138    morpheo::behavioural::Tusage_t                usage=USE_ALL
     138   morpheo::behavioural::Tusage_t                usage
    139139   );
    140140  public  :          ~Stat_List_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/src/Parameters_msg_error.cpp

    r81 r82  
    2222#undef  FUNCTION
    2323#define FUNCTION "Stat_List_unit::msg_error"
    24   std::string Parameters::msg_error(void)
     24  Parameters_test Parameters::msg_error(void)
    2525  {
    2626    log_printf(FUNC,Stat_List_unit,FUNCTION,"Begin");
    2727
    28     std::string msg = "";
     28    Parameters_test test("Stat_List_unit");
    2929
    3030    if (not is_multiple(_nb_bank, _nb_reg_free))
    31       msg += "  - nb_bank must be a multiple of nb_reg_free.\n";
     31      test.error(_("nb_bank must be a multiple of nb_reg_free.\n"));
    3232
    3333    if (_nb_general_register < _nb_gpr_use_init)
    34       msg += "  - the number of physical general register is insuffisant. (you need less "+toString(_nb_gpr_use_init)+" registers.\n";
     34      test.error(toString(_("the number of physical general register is insuffisant. (you need less %d registers.\n"),_nb_gpr_use_init));
    3535
    3636    if (_nb_special_register < _nb_spr_use_init)
    37       msg += "  - the number of physical special register is insuffisant. (you need less "+toString(_nb_spr_use_init)+" registers.\n";
     37      test.error(toString(_("the number of physical special register is insuffisant. (you need less %d registers.\n"),_nb_spr_use_init));
    3838   
    3939    if (not is_power2(_nb_general_register))
    40       msg += "  - the number of physical general register must be a power of 2.\n";
     40      test.error(_("the number of physical general register must be a power of 2.\n"));
    4141
    4242    if (not is_power2(_nb_special_register))
    43       msg += "  - the number of physical special register must be a power of 2.\n";
     43      test.error(_("the number of physical special register must be a power of 2.\n"));
    4444
    4545    if (not is_power2(_nb_bank))
    46       msg += "  - the number of bank must be a power of 2.\n";
     46      test.error(_("the number of bank must be a power of 2.\n"));
    4747
    48     return msg;
     48    return test;
    4949
    5050    log_printf(FUNC,Stat_List_unit,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/include/Parameters.h

    r81 r82  
    6666  public : ~Parameters () ;
    6767
    68   public :        std::string  msg_error  (void);
     68  public :        Parameters_test msg_error  (void);
    6969
    70   public :        std::string   print      (uint32_t depth);
    71   public : friend std::ostream& operator<< (std::ostream& output_stream,
    72                                             morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::Parameters & x);
     70  public :        std::string     print      (uint32_t depth);
     71  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     72                                              morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::Parameters & x);
    7373  };
    7474
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/include/Register_translation_unit.h

    r81 r82  
    155155#endif
    156156   Parameters                                  * param,
    157    morpheo::behavioural::Tusage_t                usage=USE_ALL
     157   morpheo::behavioural::Tusage_t                usage
    158158   );
    159159  public  :          ~Register_translation_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/src/Parameters_msg_error.cpp

    r81 r82  
    2121#undef  FUNCTION
    2222#define FUNCTION "Register_translation_unit::msg_error"
    23   std::string Parameters::msg_error(void)
     23  Parameters_test Parameters::msg_error(void)
    2424  {
    2525    log_printf(FUNC,Register_translation_unit,FUNCTION,"Begin");
    2626
    27     std::string msg = "";
     27    Parameters_test test("Register_translation_unit");
    2828
    29     return msg;
     29    return test;
    3030
    3131    log_printf(FUNC,Register_translation_unit,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/src/Register_translation_unit_allocation.cpp

    r81 r82  
    137137          ,param_statistics
    138138#endif
    139           ,_param->_param_dependency_checking_unit);
     139          ,_param->_param_dependency_checking_unit
     140          ,_usage);
    140141       
    141142       _component->set_component (_component_dependency_checking_unit->_component
     
    155156          ,param_statistics
    156157#endif
    157           ,_param->_param_free_list_unit);
     158          ,_param->_param_free_list_unit
     159          ,_usage);
    158160       
    159161       _component->set_component (_component_free_list_unit->_component
     
    173175          ,param_statistics
    174176#endif
    175           ,_param->_param_register_address_translation_unit);
     177          ,_param->_param_register_address_translation_unit
     178          ,_usage);
    176179       
    177180       _component->set_component (_component_register_address_translation_unit->_component
     
    191194          ,param_statistics
    192195#endif
    193           ,_param->_param_stat_list_unit);
     196          ,_param->_param_stat_list_unit
     197          ,_usage);
    194198       
    195199       _component->set_component (_component_stat_list_unit->_component
     
    209213          ,param_statistics
    210214#endif
    211           ,_param->_param_register_translation_unit_glue);
     215          ,_param->_param_register_translation_unit_glue
     216          ,_usage);
    212217       
    213218       _component->set_component (_component_register_translation_unit_glue->_component
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/SelfTest/src/test.cpp

    r81 r82  
    66 * Test
    77 */
     8#define NB_ITERATION  256
     9#define CYCLE_MAX     (128*NB_ITERATION)
    810
    911#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/SelfTest/include/test.h"
     
    1214#include "Behavioural/include/Allocation.h"
    1315
    14 #define NB_ITERATION  256
    15 #define CYCLE_MAX     (128*NB_ITERATION)
    16 
    17 #define LABEL(str...)                                                   \
    18   {                                                                     \
    19     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    20     msg (str);                                                          \
    21     msg (_("\n"));                                                      \
    22   } while(0)
    23 
    24 #define SC_START(cycle_offset)                                                       \
    25   do                                                                                 \
    26     {                                                                                \
    27       /*cout << "SC_START (begin)" << endl;*/                                        \
    28                                                                                      \
    29       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    30       if (cycle_offset != 0)                                                         \
    31         {                                                                            \
    32           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    33         }                                                                            \
    34                                                                                      \
    35       if (cycle_current > CYCLE_MAX)                                                 \
    36         {                                                                            \
    37           TEST_KO("Maximal cycles Reached");                                         \
    38         }                                                                            \
    39                                                                                      \
    40       sc_start(cycle_offset);                                                        \
    41                                                                                      \
    42       /*cout << "SC_START (end  )" << endl;*/                                        \
    43     } while(0)
    44 
    4516void test (string name,
    4617           morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::rename_select::Parameters * _param)
     
    5223#endif
    5324
    54   Rename_select * _Rename_select = new Rename_select (name.c_str(),
     25  Rename_select * _Rename_select = new Rename_select
     26    (name.c_str(),
    5527#ifdef STATISTICS
    56                                              _parameters_statistics,
     28     _parameters_statistics,
    5729#endif
    58                                              _param);
     30     _param,
     31     USE_ALL);
    5932 
    6033#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/include/Parameters.h

    r81 r82  
    5858  public : ~Parameters () ;
    5959
    60   public :        std::string  msg_error  (void);
     60  public :        Parameters_test msg_error  (void);
    6161
    62   public :        std::string   print      (uint32_t depth);
    63   public : friend std::ostream& operator<< (std::ostream& output_stream,
    64                                             morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::rename_select::Parameters & x);
     62  public :        std::string     print      (uint32_t depth);
     63  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     64                                              morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::rename_select::Parameters & x);
    6565  };
    6666
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/include/Rename_select.h

    r81 r82  
    134134#endif
    135135   Parameters                                  * param,
    136    morpheo::behavioural::Tusage_t                usage=USE_ALL
     136   morpheo::behavioural::Tusage_t                usage
    137137   );
    138138  public  :          ~Rename_select             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/src/Parameters_msg_error.cpp

    r81 r82  
    2121#undef  FUNCTION
    2222#define FUNCTION "Rename_select::msg_error"
    23   std::string Parameters::msg_error(void)
     23  Parameters_test Parameters::msg_error(void)
    2424  {
    2525    log_printf(FUNC,Rename_select,FUNCTION,"Begin");
    2626
    27     std::string msg = "";
     27    Parameters_test test("Rename_select");
    2828
    2929    if ((_nb_front_end_select == 0) or
    3030        (_nb_front_end_select > _nb_front_end))
    31       msg += "  - nb_front_end_select must be in [1:nb_front_end].\n";
     31      test.error(_("nb_front_end_select must be in [1:nb_front_end].\n"));
    3232
    3333    if ((_priority != PRIORITY_STATIC) and
    3434        (_priority != PRIORITY_ROUND_ROBIN))
    35       msg += "  - Unsupported priority scheme. Supported scheme are : "+toString(PRIORITY_STATIC)+" and "+toString(PRIORITY_ROUND_ROBIN)+".\n";
     35      test.error(toString(_("Unsupported priority scheme. Supported scheme are : %s and %s.\n"),toString(PRIORITY_STATIC).c_str(),toString(PRIORITY_ROUND_ROBIN).c_str()));
    3636   
    3737    if ((_load_balancing != LOAD_BALANCING_BALANCE) and
    3838        (_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY))
    39       msg += "  - Unsupported load_balancing scheme. Supported scheme are : "+toString(LOAD_BALANCING_BALANCE)+" and "+toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY)+".\n";
     39      test.error(toString(_("Unsupported load_balancing scheme. Supported scheme are : %s and %s.\n"),toString(LOAD_BALANCING_BALANCE).c_str(),toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY).c_str()));
    4040
    41     return msg;
     41    return test;
    4242
    4343    log_printf(FUNC,Rename_select,FUNCTION,"End");
Note: See TracChangeset for help on using the changeset viewer.