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_Front_end/Front_end/Prediction_unit/Direction
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1024
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
     
    1215#include "Behavioural/include/Allocation.h"
    1316
    14 #define NB_ITERATION  1024
    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_front_end::front_end::prediction_unit::direction::direction_glue::Parameters * _param)
     
    5224#endif
    5325
    54   Direction_Glue * _Direction_Glue = new Direction_Glue (name.c_str(),
     26  Direction_Glue * _Direction_Glue = new Direction_Glue
     27    (name.c_str(),
    5528#ifdef STATISTICS
    56                                              _parameters_statistics,
    57 #endif
    58                                              _param);
     29     _parameters_statistics,
     30#endif
     31     _param,
     32     USE_ALL);
    5933 
    6034#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/include/Direction_Glue.h

    r81 r82  
    114114#endif
    115115   Parameters                                  * param,
    116    morpheo::behavioural::Tusage_t                usage=USE_ALL
     116   morpheo::behavioural::Tusage_t                usage
    117117   );
    118118  public  :          ~Direction_Glue             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1024
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
     
    1215#include "Behavioural/include/Allocation.h"
    1316
    14 #define NB_ITERATION  1024
    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_front_end::front_end::prediction_unit::direction::Parameters * _param)
     
    5224#endif
    5325
    54   Direction * _Direction = new Direction (name.c_str(),
     26  Direction * _Direction = new Direction
     27    (name.c_str(),
    5528#ifdef STATISTICS
    56                                              _parameters_statistics,
    57 #endif
    58                                              _param);
     29     _parameters_statistics,
     30#endif
     31     _param,
     32     USE_ALL);
    5933 
    6034#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/include/Direction.h

    r81 r82  
    102102#endif
    103103   Parameters                                  * param,
    104    morpheo::behavioural::Tusage_t                usage=USE_ALL
     104   morpheo::behavioural::Tusage_t                usage
    105105   );
    106106  public  :          ~Direction             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Direction_allocation.cpp

    r81 r82  
    2121#undef  FUNCTION
    2222#define FUNCTION "Direction::allocation"
    23   void Direction::allocation (
     23  void Direction::allocation
     24  (
    2425#ifdef STATISTICS
    25                                morpheo::behavioural::Parameters_Statistics * param_statistics
     26   morpheo::behavioural::Parameters_Statistics * param_statistics
    2627#else
    27                                void
     28   void
    2829#endif
    29                                )
     30   )
    3031  {
    3132    log_printf(FUNC,Direction,FUNCTION,"Begin");
     
    8586    {
    8687      name = _name+"_glue";
    87       std::cout << "Create   : " << name << std::endl;
     88      log_printf(INFO,Prediction_unit,FUNCTION,_("Create   : %s"),name.c_str());
    8889     
    8990      _component_glue = new morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::direction_glue::Direction_Glue
     
    9293         ,param_statistics
    9394#endif
    94          ,_param->_param_glue);
     95         ,_param->_param_glue
     96         ,_usage);
    9597     
    9698      _component->set_component (_component_glue->_component
     
    106108    {
    107109      src = _name+"_glue";
    108       std::cout << "Instance : " << src << std::endl;
     110      log_printf(INFO,Prediction_unit,FUNCTION,_("Instance : %s"),src.c_str());
    109111     
    110112      {
     
    177179    }
    178180    // ~~~~~[ Others ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    179      _component->test_map();
     181//      _component->test_map();
    180182
    181183#ifdef POSITION
Note: See TracChangeset for help on using the changeset viewer.